source: abnfparser/bap/configure @ 2082

Last change on this file since 2082 was 449, checked in by fielding@…, 11 years ago

If lex is actually flex (as it is on Mac OS X), then the -l flag is
required in order to support yylineo. make uses LFLAGS to set flags
for the automatic rule for running lex.

File size: 109.4 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for bap 1.2.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization.  ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14  emulate sh
15  NULLCMD=:
16  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17  # is contrary to our usage.  Disable this feature.
18  alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20  set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42  LC_TELEPHONE LC_TIME
43do
44  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45    eval $as_var=C; export $as_var
46  else
47    $as_unset $as_var
48  fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68         X"$0" : 'X\(//\)$' \| \
69         X"$0" : 'X\(/\)$' \| \
70         .     : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73          /^X\/\(\/\/\)$/{ s//\1/; q; }
74          /^X\/\(\/\).*/{ s//\1/; q; }
75          s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88  echo "#! /bin/sh" >conf$$.sh
89  echo  "exit 0"   >>conf$$.sh
90  chmod +x conf$$.sh
91  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92    PATH_SEPARATOR=';'
93  else
94    PATH_SEPARATOR=:
95  fi
96  rm -f conf$$.sh
97fi
98
99
100  as_lineno_1=$LINENO
101  as_lineno_2=$LINENO
102  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103  test "x$as_lineno_1" != "x$as_lineno_2" &&
104  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105  # Find who we are.  Look in the path if we contain no path at all
106  # relative or not.
107  case $0 in
108    *[\\/]* ) as_myself=$0 ;;
109    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117       ;;
118  esac
119  # We did not find ourselves, most probably we were run as `sh COMMAND'
120  # in which case we are not to be found in the path.
121  if test "x$as_myself" = x; then
122    as_myself=$0
123  fi
124  if test ! -f "$as_myself"; then
125    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126   { (exit 1); exit 1; }; }
127  fi
128  case $CONFIG_SHELL in
129  '')
130    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133  IFS=$as_save_IFS
134  test -z "$as_dir" && as_dir=.
135  for as_base in sh bash ksh sh5; do
136         case $as_dir in
137         /*)
138           if ("$as_dir/$as_base" -c '
139  as_lineno_1=$LINENO
140  as_lineno_2=$LINENO
141  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142  test "x$as_lineno_1" != "x$as_lineno_2" &&
143  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146             CONFIG_SHELL=$as_dir/$as_base
147             export CONFIG_SHELL
148             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149           fi;;
150         esac
151       done
152done
153;;
154  esac
155
156  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157  # uniformly replaced by the line number.  The first 'sed' inserts a
158  # line-number line before each line; the second 'sed' does the real
159  # work.  The second script uses 'N' to pair each line-number line
160  # with the numbered line, and appends trailing '-' during
161  # substitution so that $LINENO is not a special case at line end.
162  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164  sed '=' <$as_myself |
165    sed '
166      N
167      s,$,-,
168      : loop
169      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170      t loop
171      s,-$,,
172      s,^['$as_cr_digits']*\n,,
173    ' >$as_me.lineno &&
174  chmod +x $as_me.lineno ||
175    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176   { (exit 1); exit 1; }; }
177
178  # Don't try to exec as it changes $[0], causing all sort of problems
179  # (the dirname of $[0] is not the place where we might find the
180  # original and so on.  Autoconf is especially sensible to this).
181  . ./$as_me.lineno
182  # Exit status is that of the last command.
183  exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188  *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T='      ' ;;
190  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203  # We could just check for DJGPP; but this test a) works b) is more generic
204  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205  if test -f conf$$.exe; then
206    # Don't use ln at all; we don't have any links
207    as_ln_s='cp -p'
208  else
209    as_ln_s='ln -s'
210  fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  test -d ./-p && rmdir ./-p
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS="   $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete.  It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME='bap'
269PACKAGE_TARNAME='bap'
270PACKAGE_VERSION='1.2'
271PACKAGE_STRING='bap 1.2'
272PACKAGE_BUGREPORT=''
273
274ac_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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT YACC LEX LEXLIB LEX_OUTPUT_ROOT FLEXFLAGS LIBOBJS LTLIBOBJS'
275ac_subst_files=''
276
277# Initialize some variables set by options.
278ac_init_help=
279ac_init_version=false
280# The variables have the same names as the options, with
281# dashes changed to underlines.
282cache_file=/dev/null
283exec_prefix=NONE
284no_create=
285no_recursion=
286prefix=NONE
287program_prefix=NONE
288program_suffix=NONE
289program_transform_name=s,x,x,
290silent=
291site=
292srcdir=
293verbose=
294x_includes=NONE
295x_libraries=NONE
296
297# Installation directory options.
298# These are left unexpanded so users can "make install exec_prefix=/foo"
299# and all the variables that are supposed to be based on exec_prefix
300# by default will actually change.
301# Use braces instead of parens because sh, perl, etc. also accept them.
302bindir='${exec_prefix}/bin'
303sbindir='${exec_prefix}/sbin'
304libexecdir='${exec_prefix}/libexec'
305datadir='${prefix}/share'
306sysconfdir='${prefix}/etc'
307sharedstatedir='${prefix}/com'
308localstatedir='${prefix}/var'
309libdir='${exec_prefix}/lib'
310includedir='${prefix}/include'
311oldincludedir='/usr/include'
312infodir='${prefix}/info'
313mandir='${prefix}/man'
314
315ac_prev=
316for ac_option
317do
318  # If the previous option needs an argument, assign it.
319  if test -n "$ac_prev"; then
320    eval "$ac_prev=\$ac_option"
321    ac_prev=
322    continue
323  fi
324
325  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
326
327  # Accept the important Cygnus configure options, so we can diagnose typos.
328
329  case $ac_option in
330
331  -bindir | --bindir | --bindi | --bind | --bin | --bi)
332    ac_prev=bindir ;;
333  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
334    bindir=$ac_optarg ;;
335
336  -build | --build | --buil | --bui | --bu)
337    ac_prev=build_alias ;;
338  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
339    build_alias=$ac_optarg ;;
340
341  -cache-file | --cache-file | --cache-fil | --cache-fi \
342  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
343    ac_prev=cache_file ;;
344  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
345  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
346    cache_file=$ac_optarg ;;
347
348  --config-cache | -C)
349    cache_file=config.cache ;;
350
351  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
352    ac_prev=datadir ;;
353  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
354  | --da=*)
355    datadir=$ac_optarg ;;
356
357  -disable-* | --disable-*)
358    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
359    # Reject names that are not valid shell variable names.
360    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
361      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
362   { (exit 1); exit 1; }; }
363    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
364    eval "enable_$ac_feature=no" ;;
365
366  -enable-* | --enable-*)
367    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
368    # Reject names that are not valid shell variable names.
369    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
370      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
371   { (exit 1); exit 1; }; }
372    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
373    case $ac_option in
374      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
375      *) ac_optarg=yes ;;
376    esac
377    eval "enable_$ac_feature='$ac_optarg'" ;;
378
379  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
380  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
381  | --exec | --exe | --ex)
382    ac_prev=exec_prefix ;;
383  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
384  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
385  | --exec=* | --exe=* | --ex=*)
386    exec_prefix=$ac_optarg ;;
387
388  -gas | --gas | --ga | --g)
389    # Obsolete; use --with-gas.
390    with_gas=yes ;;
391
392  -help | --help | --hel | --he | -h)
393    ac_init_help=long ;;
394  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
395    ac_init_help=recursive ;;
396  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
397    ac_init_help=short ;;
398
399  -host | --host | --hos | --ho)
400    ac_prev=host_alias ;;
401  -host=* | --host=* | --hos=* | --ho=*)
402    host_alias=$ac_optarg ;;
403
404  -includedir | --includedir | --includedi | --included | --include \
405  | --includ | --inclu | --incl | --inc)
406    ac_prev=includedir ;;
407  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
408  | --includ=* | --inclu=* | --incl=* | --inc=*)
409    includedir=$ac_optarg ;;
410
411  -infodir | --infodir | --infodi | --infod | --info | --inf)
412    ac_prev=infodir ;;
413  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
414    infodir=$ac_optarg ;;
415
416  -libdir | --libdir | --libdi | --libd)
417    ac_prev=libdir ;;
418  -libdir=* | --libdir=* | --libdi=* | --libd=*)
419    libdir=$ac_optarg ;;
420
421  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
422  | --libexe | --libex | --libe)
423    ac_prev=libexecdir ;;
424  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
425  | --libexe=* | --libex=* | --libe=*)
426    libexecdir=$ac_optarg ;;
427
428  -localstatedir | --localstatedir | --localstatedi | --localstated \
429  | --localstate | --localstat | --localsta | --localst \
430  | --locals | --local | --loca | --loc | --lo)
431    ac_prev=localstatedir ;;
432  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
433  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
434  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
435    localstatedir=$ac_optarg ;;
436
437  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
438    ac_prev=mandir ;;
439  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
440    mandir=$ac_optarg ;;
441
442  -nfp | --nfp | --nf)
443    # Obsolete; use --without-fp.
444    with_fp=no ;;
445
446  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
447  | --no-cr | --no-c | -n)
448    no_create=yes ;;
449
450  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
451  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
452    no_recursion=yes ;;
453
454  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
455  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
456  | --oldin | --oldi | --old | --ol | --o)
457    ac_prev=oldincludedir ;;
458  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
459  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
460  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
461    oldincludedir=$ac_optarg ;;
462
463  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
464    ac_prev=prefix ;;
465  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
466    prefix=$ac_optarg ;;
467
468  -program-prefix | --program-prefix | --program-prefi | --program-pref \
469  | --program-pre | --program-pr | --program-p)
470    ac_prev=program_prefix ;;
471  -program-prefix=* | --program-prefix=* | --program-prefi=* \
472  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
473    program_prefix=$ac_optarg ;;
474
475  -program-suffix | --program-suffix | --program-suffi | --program-suff \
476  | --program-suf | --program-su | --program-s)
477    ac_prev=program_suffix ;;
478  -program-suffix=* | --program-suffix=* | --program-suffi=* \
479  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
480    program_suffix=$ac_optarg ;;
481
482  -program-transform-name | --program-transform-name \
483  | --program-transform-nam | --program-transform-na \
484  | --program-transform-n | --program-transform- \
485  | --program-transform | --program-transfor \
486  | --program-transfo | --program-transf \
487  | --program-trans | --program-tran \
488  | --progr-tra | --program-tr | --program-t)
489    ac_prev=program_transform_name ;;
490  -program-transform-name=* | --program-transform-name=* \
491  | --program-transform-nam=* | --program-transform-na=* \
492  | --program-transform-n=* | --program-transform-=* \
493  | --program-transform=* | --program-transfor=* \
494  | --program-transfo=* | --program-transf=* \
495  | --program-trans=* | --program-tran=* \
496  | --progr-tra=* | --program-tr=* | --program-t=*)
497    program_transform_name=$ac_optarg ;;
498
499  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
500  | -silent | --silent | --silen | --sile | --sil)
501    silent=yes ;;
502
503  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
504    ac_prev=sbindir ;;
505  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
506  | --sbi=* | --sb=*)
507    sbindir=$ac_optarg ;;
508
509  -sharedstatedir | --sharedstatedir | --sharedstatedi \
510  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
511  | --sharedst | --shareds | --shared | --share | --shar \
512  | --sha | --sh)
513    ac_prev=sharedstatedir ;;
514  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
515  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
516  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
517  | --sha=* | --sh=*)
518    sharedstatedir=$ac_optarg ;;
519
520  -site | --site | --sit)
521    ac_prev=site ;;
522  -site=* | --site=* | --sit=*)
523    site=$ac_optarg ;;
524
525  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
526    ac_prev=srcdir ;;
527  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
528    srcdir=$ac_optarg ;;
529
530  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
531  | --syscon | --sysco | --sysc | --sys | --sy)
532    ac_prev=sysconfdir ;;
533  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
534  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
535    sysconfdir=$ac_optarg ;;
536
537  -target | --target | --targe | --targ | --tar | --ta | --t)
538    ac_prev=target_alias ;;
539  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
540    target_alias=$ac_optarg ;;
541
542  -v | -verbose | --verbose | --verbos | --verbo | --verb)
543    verbose=yes ;;
544
545  -version | --version | --versio | --versi | --vers | -V)
546    ac_init_version=: ;;
547
548  -with-* | --with-*)
549    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
550    # Reject names that are not valid shell variable names.
551    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
552      { echo "$as_me: error: invalid package name: $ac_package" >&2
553   { (exit 1); exit 1; }; }
554    ac_package=`echo $ac_package| sed 's/-/_/g'`
555    case $ac_option in
556      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
557      *) ac_optarg=yes ;;
558    esac
559    eval "with_$ac_package='$ac_optarg'" ;;
560
561  -without-* | --without-*)
562    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
563    # Reject names that are not valid shell variable names.
564    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565      { echo "$as_me: error: invalid package name: $ac_package" >&2
566   { (exit 1); exit 1; }; }
567    ac_package=`echo $ac_package | sed 's/-/_/g'`
568    eval "with_$ac_package=no" ;;
569
570  --x)
571    # Obsolete; use --with-x.
572    with_x=yes ;;
573
574  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
575  | --x-incl | --x-inc | --x-in | --x-i)
576    ac_prev=x_includes ;;
577  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
578  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
579    x_includes=$ac_optarg ;;
580
581  -x-libraries | --x-libraries | --x-librarie | --x-librari \
582  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
583    ac_prev=x_libraries ;;
584  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
585  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
586    x_libraries=$ac_optarg ;;
587
588  -*) { echo "$as_me: error: unrecognized option: $ac_option
589Try \`$0 --help' for more information." >&2
590   { (exit 1); exit 1; }; }
591    ;;
592
593  *=*)
594    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
595    # Reject names that are not valid shell variable names.
596    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
597      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
598   { (exit 1); exit 1; }; }
599    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
600    eval "$ac_envvar='$ac_optarg'"
601    export $ac_envvar ;;
602
603  *)
604    # FIXME: should be removed in autoconf 3.0.
605    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
606    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
607      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
608    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
609    ;;
610
611  esac
612done
613
614if test -n "$ac_prev"; then
615  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
616  { echo "$as_me: error: missing argument to $ac_option" >&2
617   { (exit 1); exit 1; }; }
618fi
619
620# Be sure to have absolute paths.
621for ac_var in exec_prefix prefix
622do
623  eval ac_val=$`echo $ac_var`
624  case $ac_val in
625    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
626    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
627   { (exit 1); exit 1; }; };;
628  esac
629done
630
631# Be sure to have absolute paths.
632for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
633              localstatedir libdir includedir oldincludedir infodir mandir
634do
635  eval ac_val=$`echo $ac_var`
636  case $ac_val in
637    [\\/$]* | ?:[\\/]* ) ;;
638    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
639   { (exit 1); exit 1; }; };;
640  esac
641done
642
643# There might be people who depend on the old broken behavior: `$host'
644# used to hold the argument of --host etc.
645# FIXME: To remove some day.
646build=$build_alias
647host=$host_alias
648target=$target_alias
649
650# FIXME: To remove some day.
651if test "x$host_alias" != x; then
652  if test "x$build_alias" = x; then
653    cross_compiling=maybe
654    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
655    If a cross compiler is detected then cross compile mode will be used." >&2
656  elif test "x$build_alias" != "x$host_alias"; then
657    cross_compiling=yes
658  fi
659fi
660
661ac_tool_prefix=
662test -n "$host_alias" && ac_tool_prefix=$host_alias-
663
664test "$silent" = yes && exec 6>/dev/null
665
666
667# Find the source files, if location was not specified.
668if test -z "$srcdir"; then
669  ac_srcdir_defaulted=yes
670  # Try the directory containing this script, then its parent.
671  ac_confdir=`(dirname "$0") 2>/dev/null ||
672$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
673         X"$0" : 'X\(//\)[^/]' \| \
674         X"$0" : 'X\(//\)$' \| \
675         X"$0" : 'X\(/\)' \| \
676         .     : '\(.\)' 2>/dev/null ||
677echo X"$0" |
678    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
679          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
680          /^X\(\/\/\)$/{ s//\1/; q; }
681          /^X\(\/\).*/{ s//\1/; q; }
682          s/.*/./; q'`
683  srcdir=$ac_confdir
684  if test ! -r $srcdir/$ac_unique_file; then
685    srcdir=..
686  fi
687else
688  ac_srcdir_defaulted=no
689fi
690if test ! -r $srcdir/$ac_unique_file; then
691  if test "$ac_srcdir_defaulted" = yes; then
692    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
693   { (exit 1); exit 1; }; }
694  else
695    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
696   { (exit 1); exit 1; }; }
697  fi
698fi
699(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
700  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
701   { (exit 1); exit 1; }; }
702srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
703ac_env_build_alias_set=${build_alias+set}
704ac_env_build_alias_value=$build_alias
705ac_cv_env_build_alias_set=${build_alias+set}
706ac_cv_env_build_alias_value=$build_alias
707ac_env_host_alias_set=${host_alias+set}
708ac_env_host_alias_value=$host_alias
709ac_cv_env_host_alias_set=${host_alias+set}
710ac_cv_env_host_alias_value=$host_alias
711ac_env_target_alias_set=${target_alias+set}
712ac_env_target_alias_value=$target_alias
713ac_cv_env_target_alias_set=${target_alias+set}
714ac_cv_env_target_alias_value=$target_alias
715ac_env_CC_set=${CC+set}
716ac_env_CC_value=$CC
717ac_cv_env_CC_set=${CC+set}
718ac_cv_env_CC_value=$CC
719ac_env_CFLAGS_set=${CFLAGS+set}
720ac_env_CFLAGS_value=$CFLAGS
721ac_cv_env_CFLAGS_set=${CFLAGS+set}
722ac_cv_env_CFLAGS_value=$CFLAGS
723ac_env_LDFLAGS_set=${LDFLAGS+set}
724ac_env_LDFLAGS_value=$LDFLAGS
725ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
726ac_cv_env_LDFLAGS_value=$LDFLAGS
727ac_env_CPPFLAGS_set=${CPPFLAGS+set}
728ac_env_CPPFLAGS_value=$CPPFLAGS
729ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
730ac_cv_env_CPPFLAGS_value=$CPPFLAGS
731
732#
733# Report the --help message.
734#
735if test "$ac_init_help" = "long"; then
736  # Omit some internal or obsolete options to make the list less imposing.
737  # This message is too long to be a string in the A/UX 3.1 sh.
738  cat <<_ACEOF
739\`configure' configures bap 1.2 to adapt to many kinds of systems.
740
741Usage: $0 [OPTION]... [VAR=VALUE]...
742
743To assign environment variables (e.g., CC, CFLAGS...), specify them as
744VAR=VALUE.  See below for descriptions of some of the useful variables.
745
746Defaults for the options are specified in brackets.
747
748Configuration:
749  -h, --help              display this help and exit
750      --help=short        display options specific to this package
751      --help=recursive    display the short help of all the included packages
752  -V, --version           display version information and exit
753  -q, --quiet, --silent   do not print \`checking...' messages
754      --cache-file=FILE   cache test results in FILE [disabled]
755  -C, --config-cache      alias for \`--cache-file=config.cache'
756  -n, --no-create         do not create output files
757      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
758
759_ACEOF
760
761  cat <<_ACEOF
762Installation directories:
763  --prefix=PREFIX         install architecture-independent files in PREFIX
764                          [$ac_default_prefix]
765  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
766                          [PREFIX]
767
768By default, \`make install' will install all the files in
769\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
770an installation prefix other than \`$ac_default_prefix' using \`--prefix',
771for instance \`--prefix=\$HOME'.
772
773For better control, use the options below.
774
775Fine tuning of the installation directories:
776  --bindir=DIR           user executables [EPREFIX/bin]
777  --sbindir=DIR          system admin executables [EPREFIX/sbin]
778  --libexecdir=DIR       program executables [EPREFIX/libexec]
779  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
780  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
781  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
782  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
783  --libdir=DIR           object code libraries [EPREFIX/lib]
784  --includedir=DIR       C header files [PREFIX/include]
785  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
786  --infodir=DIR          info documentation [PREFIX/info]
787  --mandir=DIR           man documentation [PREFIX/man]
788_ACEOF
789
790  cat <<\_ACEOF
791_ACEOF
792fi
793
794if test -n "$ac_init_help"; then
795  case $ac_init_help in
796     short | recursive ) echo "Configuration of bap 1.2:";;
797   esac
798  cat <<\_ACEOF
799
800Some influential environment variables:
801  CC          C compiler command
802  CFLAGS      C compiler flags
803  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
804              nonstandard directory <lib dir>
805  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
806              headers in a nonstandard directory <include dir>
807
808Use these variables to override the choices made by `configure' or to help
809it to find libraries and programs with nonstandard names/locations.
810
811_ACEOF
812fi
813
814if test "$ac_init_help" = "recursive"; then
815  # If there are subdirs, report their specific --help.
816  ac_popdir=`pwd`
817  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
818    test -d $ac_dir || continue
819    ac_builddir=.
820
821if test "$ac_dir" != .; then
822  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
823  # A "../" for each directory in $ac_dir_suffix.
824  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
825else
826  ac_dir_suffix= ac_top_builddir=
827fi
828
829case $srcdir in
830  .)  # No --srcdir option.  We are building in place.
831    ac_srcdir=.
832    if test -z "$ac_top_builddir"; then
833       ac_top_srcdir=.
834    else
835       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
836    fi ;;
837  [\\/]* | ?:[\\/]* )  # Absolute path.
838    ac_srcdir=$srcdir$ac_dir_suffix;
839    ac_top_srcdir=$srcdir ;;
840  *) # Relative path.
841    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
842    ac_top_srcdir=$ac_top_builddir$srcdir ;;
843esac
844
845# Do not use `cd foo && pwd` to compute absolute paths, because
846# the directories may not exist.
847case `pwd` in
848.) ac_abs_builddir="$ac_dir";;
849*)
850  case "$ac_dir" in
851  .) ac_abs_builddir=`pwd`;;
852  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
853  *) ac_abs_builddir=`pwd`/"$ac_dir";;
854  esac;;
855esac
856case $ac_abs_builddir in
857.) ac_abs_top_builddir=${ac_top_builddir}.;;
858*)
859  case ${ac_top_builddir}. in
860  .) ac_abs_top_builddir=$ac_abs_builddir;;
861  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
862  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
863  esac;;
864esac
865case $ac_abs_builddir in
866.) ac_abs_srcdir=$ac_srcdir;;
867*)
868  case $ac_srcdir in
869  .) ac_abs_srcdir=$ac_abs_builddir;;
870  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
871  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
872  esac;;
873esac
874case $ac_abs_builddir in
875.) ac_abs_top_srcdir=$ac_top_srcdir;;
876*)
877  case $ac_top_srcdir in
878  .) ac_abs_top_srcdir=$ac_abs_builddir;;
879  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
880  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
881  esac;;
882esac
883
884    cd $ac_dir
885    # Check for guested configure; otherwise get Cygnus style configure.
886    if test -f $ac_srcdir/configure.gnu; then
887      echo
888      $SHELL $ac_srcdir/configure.gnu  --help=recursive
889    elif test -f $ac_srcdir/configure; then
890      echo
891      $SHELL $ac_srcdir/configure  --help=recursive
892    elif test -f $ac_srcdir/configure.ac ||
893           test -f $ac_srcdir/configure.in; then
894      echo
895      $ac_configure --help
896    else
897      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
898    fi
899    cd $ac_popdir
900  done
901fi
902
903test -n "$ac_init_help" && exit 0
904if $ac_init_version; then
905  cat <<\_ACEOF
906bap configure 1.2
907generated by GNU Autoconf 2.59
908
909Copyright (C) 2003 Free Software Foundation, Inc.
910This configure script is free software; the Free Software Foundation
911gives unlimited permission to copy, distribute and modify it.
912_ACEOF
913  exit 0
914fi
915exec 5>config.log
916cat >&5 <<_ACEOF
917This file contains any messages produced by compilers while
918running configure, to aid debugging if configure makes a mistake.
919
920It was created by bap $as_me 1.2, which was
921generated by GNU Autoconf 2.59.  Invocation command line was
922
923  $ $0 $@
924
925_ACEOF
926{
927cat <<_ASUNAME
928## --------- ##
929## Platform. ##
930## --------- ##
931
932hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
933uname -m = `(uname -m) 2>/dev/null || echo unknown`
934uname -r = `(uname -r) 2>/dev/null || echo unknown`
935uname -s = `(uname -s) 2>/dev/null || echo unknown`
936uname -v = `(uname -v) 2>/dev/null || echo unknown`
937
938/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
939/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
940
941/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
942/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
943/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
944hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
945/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
946/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
947/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
948
949_ASUNAME
950
951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
952for as_dir in $PATH
953do
954  IFS=$as_save_IFS
955  test -z "$as_dir" && as_dir=.
956  echo "PATH: $as_dir"
957done
958
959} >&5
960
961cat >&5 <<_ACEOF
962
963
964## ----------- ##
965## Core tests. ##
966## ----------- ##
967
968_ACEOF
969
970
971# Keep a trace of the command line.
972# Strip out --no-create and --no-recursion so they do not pile up.
973# Strip out --silent because we don't want to record it for future runs.
974# Also quote any args containing shell meta-characters.
975# Make two passes to allow for proper duplicate-argument suppression.
976ac_configure_args=
977ac_configure_args0=
978ac_configure_args1=
979ac_sep=
980ac_must_keep_next=false
981for ac_pass in 1 2
982do
983  for ac_arg
984  do
985    case $ac_arg in
986    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
987    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
988    | -silent | --silent | --silen | --sile | --sil)
989      continue ;;
990    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
991      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
992    esac
993    case $ac_pass in
994    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
995    2)
996      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
997      if test $ac_must_keep_next = true; then
998        ac_must_keep_next=false # Got value, back to normal.
999      else
1000        case $ac_arg in
1001          *=* | --config-cache | -C | -disable-* | --disable-* \
1002          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1003          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1004          | -with-* | --with-* | -without-* | --without-* | --x)
1005            case "$ac_configure_args0 " in
1006              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1007            esac
1008            ;;
1009          -* ) ac_must_keep_next=true ;;
1010        esac
1011      fi
1012      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1013      # Get rid of the leading space.
1014      ac_sep=" "
1015      ;;
1016    esac
1017  done
1018done
1019$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1020$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1021
1022# When interrupted or exit'd, cleanup temporary files, and complete
1023# config.log.  We remove comments because anyway the quotes in there
1024# would cause problems or look ugly.
1025# WARNING: Be sure not to use single quotes in there, as some shells,
1026# such as our DU 5.0 friend, will then `close' the trap.
1027trap 'exit_status=$?
1028  # Save into config.log some information that might help in debugging.
1029  {
1030    echo
1031
1032    cat <<\_ASBOX
1033## ---------------- ##
1034## Cache variables. ##
1035## ---------------- ##
1036_ASBOX
1037    echo
1038    # The following way of writing the cache mishandles newlines in values,
1039{
1040  (set) 2>&1 |
1041    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1042    *ac_space=\ *)
1043      sed -n \
1044        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1045          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1046      ;;
1047    *)
1048      sed -n \
1049        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1050      ;;
1051    esac;
1052}
1053    echo
1054
1055    cat <<\_ASBOX
1056## ----------------- ##
1057## Output variables. ##
1058## ----------------- ##
1059_ASBOX
1060    echo
1061    for ac_var in $ac_subst_vars
1062    do
1063      eval ac_val=$`echo $ac_var`
1064      echo "$ac_var='"'"'$ac_val'"'"'"
1065    done | sort
1066    echo
1067
1068    if test -n "$ac_subst_files"; then
1069      cat <<\_ASBOX
1070## ------------- ##
1071## Output files. ##
1072## ------------- ##
1073_ASBOX
1074      echo
1075      for ac_var in $ac_subst_files
1076      do
1077        eval ac_val=$`echo $ac_var`
1078        echo "$ac_var='"'"'$ac_val'"'"'"
1079      done | sort
1080      echo
1081    fi
1082
1083    if test -s confdefs.h; then
1084      cat <<\_ASBOX
1085## ----------- ##
1086## confdefs.h. ##
1087## ----------- ##
1088_ASBOX
1089      echo
1090      sed "/^$/d" confdefs.h | sort
1091      echo
1092    fi
1093    test "$ac_signal" != 0 &&
1094      echo "$as_me: caught signal $ac_signal"
1095    echo "$as_me: exit $exit_status"
1096  } >&5
1097  rm -f core *.core &&
1098  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1099    exit $exit_status
1100     ' 0
1101for ac_signal in 1 2 13 15; do
1102  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1103done
1104ac_signal=0
1105
1106# confdefs.h avoids OS command line length limits that DEFS can exceed.
1107rm -rf conftest* confdefs.h
1108# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1109echo >confdefs.h
1110
1111# Predefined preprocessor variables.
1112
1113cat >>confdefs.h <<_ACEOF
1114#define PACKAGE_NAME "$PACKAGE_NAME"
1115_ACEOF
1116
1117
1118cat >>confdefs.h <<_ACEOF
1119#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1120_ACEOF
1121
1122
1123cat >>confdefs.h <<_ACEOF
1124#define PACKAGE_VERSION "$PACKAGE_VERSION"
1125_ACEOF
1126
1127
1128cat >>confdefs.h <<_ACEOF
1129#define PACKAGE_STRING "$PACKAGE_STRING"
1130_ACEOF
1131
1132
1133cat >>confdefs.h <<_ACEOF
1134#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1135_ACEOF
1136
1137
1138# Let the site file select an alternate cache file if it wants to.
1139# Prefer explicitly selected file to automatically selected ones.
1140if test -z "$CONFIG_SITE"; then
1141  if test "x$prefix" != xNONE; then
1142    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1143  else
1144    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1145  fi
1146fi
1147for ac_site_file in $CONFIG_SITE; do
1148  if test -r "$ac_site_file"; then
1149    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1150echo "$as_me: loading site script $ac_site_file" >&6;}
1151    sed 's/^/| /' "$ac_site_file" >&5
1152    . "$ac_site_file"
1153  fi
1154done
1155
1156if test -r "$cache_file"; then
1157  # Some versions of bash will fail to source /dev/null (special
1158  # files actually), so we avoid doing that.
1159  if test -f "$cache_file"; then
1160    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1161echo "$as_me: loading cache $cache_file" >&6;}
1162    case $cache_file in
1163      [\\/]* | ?:[\\/]* ) . $cache_file;;
1164      *)                      . ./$cache_file;;
1165    esac
1166  fi
1167else
1168  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1169echo "$as_me: creating cache $cache_file" >&6;}
1170  >$cache_file
1171fi
1172
1173# Check that the precious variables saved in the cache have kept the same
1174# value.
1175ac_cache_corrupted=false
1176for ac_var in `(set) 2>&1 |
1177               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1178  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1179  eval ac_new_set=\$ac_env_${ac_var}_set
1180  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1181  eval ac_new_val="\$ac_env_${ac_var}_value"
1182  case $ac_old_set,$ac_new_set in
1183    set,)
1184      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1185echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1186      ac_cache_corrupted=: ;;
1187    ,set)
1188      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1189echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1190      ac_cache_corrupted=: ;;
1191    ,);;
1192    *)
1193      if test "x$ac_old_val" != "x$ac_new_val"; then
1194        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1195echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1196        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1197echo "$as_me:   former value:  $ac_old_val" >&2;}
1198        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1199echo "$as_me:   current value: $ac_new_val" >&2;}
1200        ac_cache_corrupted=:
1201      fi;;
1202  esac
1203  # Pass precious variables to config.status.
1204  if test "$ac_new_set" = set; then
1205    case $ac_new_val in
1206    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1207      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1208    *) ac_arg=$ac_var=$ac_new_val ;;
1209    esac
1210    case " $ac_configure_args " in
1211      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1212      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1213    esac
1214  fi
1215done
1216if $ac_cache_corrupted; then
1217  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1218echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1219  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1220echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1221   { (exit 1); exit 1; }; }
1222fi
1223
1224ac_ext=c
1225ac_cpp='$CPP $CPPFLAGS'
1226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1228ac_compiler_gnu=$ac_cv_c_compiler_gnu
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257ac_ext=c
1258ac_cpp='$CPP $CPPFLAGS'
1259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1261ac_compiler_gnu=$ac_cv_c_compiler_gnu
1262if test -n "$ac_tool_prefix"; then
1263  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1264set dummy ${ac_tool_prefix}gcc; ac_word=$2
1265echo "$as_me:$LINENO: checking for $ac_word" >&5
1266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1267if test "${ac_cv_prog_CC+set}" = set; then
1268  echo $ECHO_N "(cached) $ECHO_C" >&6
1269else
1270  if test -n "$CC"; then
1271  ac_cv_prog_CC="$CC" # Let the user override the test.
1272else
1273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1274for as_dir in $PATH
1275do
1276  IFS=$as_save_IFS
1277  test -z "$as_dir" && as_dir=.
1278  for ac_exec_ext in '' $ac_executable_extensions; do
1279  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1280    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1281    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1282    break 2
1283  fi
1284done
1285done
1286
1287fi
1288fi
1289CC=$ac_cv_prog_CC
1290if test -n "$CC"; then
1291  echo "$as_me:$LINENO: result: $CC" >&5
1292echo "${ECHO_T}$CC" >&6
1293else
1294  echo "$as_me:$LINENO: result: no" >&5
1295echo "${ECHO_T}no" >&6
1296fi
1297
1298fi
1299if test -z "$ac_cv_prog_CC"; then
1300  ac_ct_CC=$CC
1301  # Extract the first word of "gcc", so it can be a program name with args.
1302set dummy gcc; ac_word=$2
1303echo "$as_me:$LINENO: checking for $ac_word" >&5
1304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1305if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1306  echo $ECHO_N "(cached) $ECHO_C" >&6
1307else
1308  if test -n "$ac_ct_CC"; then
1309  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1310else
1311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1312for as_dir in $PATH
1313do
1314  IFS=$as_save_IFS
1315  test -z "$as_dir" && as_dir=.
1316  for ac_exec_ext in '' $ac_executable_extensions; do
1317  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1318    ac_cv_prog_ac_ct_CC="gcc"
1319    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1320    break 2
1321  fi
1322done
1323done
1324
1325fi
1326fi
1327ac_ct_CC=$ac_cv_prog_ac_ct_CC
1328if test -n "$ac_ct_CC"; then
1329  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1330echo "${ECHO_T}$ac_ct_CC" >&6
1331else
1332  echo "$as_me:$LINENO: result: no" >&5
1333echo "${ECHO_T}no" >&6
1334fi
1335
1336  CC=$ac_ct_CC
1337else
1338  CC="$ac_cv_prog_CC"
1339fi
1340
1341if test -z "$CC"; then
1342  if test -n "$ac_tool_prefix"; then
1343  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1344set dummy ${ac_tool_prefix}cc; ac_word=$2
1345echo "$as_me:$LINENO: checking for $ac_word" >&5
1346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1347if test "${ac_cv_prog_CC+set}" = set; then
1348  echo $ECHO_N "(cached) $ECHO_C" >&6
1349else
1350  if test -n "$CC"; then
1351  ac_cv_prog_CC="$CC" # Let the user override the test.
1352else
1353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1354for as_dir in $PATH
1355do
1356  IFS=$as_save_IFS
1357  test -z "$as_dir" && as_dir=.
1358  for ac_exec_ext in '' $ac_executable_extensions; do
1359  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1360    ac_cv_prog_CC="${ac_tool_prefix}cc"
1361    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1362    break 2
1363  fi
1364done
1365done
1366
1367fi
1368fi
1369CC=$ac_cv_prog_CC
1370if test -n "$CC"; then
1371  echo "$as_me:$LINENO: result: $CC" >&5
1372echo "${ECHO_T}$CC" >&6
1373else
1374  echo "$as_me:$LINENO: result: no" >&5
1375echo "${ECHO_T}no" >&6
1376fi
1377
1378fi
1379if test -z "$ac_cv_prog_CC"; then
1380  ac_ct_CC=$CC
1381  # Extract the first word of "cc", so it can be a program name with args.
1382set dummy cc; ac_word=$2
1383echo "$as_me:$LINENO: checking for $ac_word" >&5
1384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1385if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1386  echo $ECHO_N "(cached) $ECHO_C" >&6
1387else
1388  if test -n "$ac_ct_CC"; then
1389  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1390else
1391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1392for as_dir in $PATH
1393do
1394  IFS=$as_save_IFS
1395  test -z "$as_dir" && as_dir=.
1396  for ac_exec_ext in '' $ac_executable_extensions; do
1397  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1398    ac_cv_prog_ac_ct_CC="cc"
1399    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1400    break 2
1401  fi
1402done
1403done
1404
1405fi
1406fi
1407ac_ct_CC=$ac_cv_prog_ac_ct_CC
1408if test -n "$ac_ct_CC"; then
1409  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1410echo "${ECHO_T}$ac_ct_CC" >&6
1411else
1412  echo "$as_me:$LINENO: result: no" >&5
1413echo "${ECHO_T}no" >&6
1414fi
1415
1416  CC=$ac_ct_CC
1417else
1418  CC="$ac_cv_prog_CC"
1419fi
1420
1421fi
1422if test -z "$CC"; then
1423  # Extract the first word of "cc", so it can be a program name with args.
1424set dummy cc; ac_word=$2
1425echo "$as_me:$LINENO: checking for $ac_word" >&5
1426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1427if test "${ac_cv_prog_CC+set}" = set; then
1428  echo $ECHO_N "(cached) $ECHO_C" >&6
1429else
1430  if test -n "$CC"; then
1431  ac_cv_prog_CC="$CC" # Let the user override the test.
1432else
1433  ac_prog_rejected=no
1434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1435for as_dir in $PATH
1436do
1437  IFS=$as_save_IFS
1438  test -z "$as_dir" && as_dir=.
1439  for ac_exec_ext in '' $ac_executable_extensions; do
1440  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1441    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1442       ac_prog_rejected=yes
1443       continue
1444     fi
1445    ac_cv_prog_CC="cc"
1446    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1447    break 2
1448  fi
1449done
1450done
1451
1452if test $ac_prog_rejected = yes; then
1453  # We found a bogon in the path, so make sure we never use it.
1454  set dummy $ac_cv_prog_CC
1455  shift
1456  if test $# != 0; then
1457    # We chose a different compiler from the bogus one.
1458    # However, it has the same basename, so the bogon will be chosen
1459    # first if we set CC to just the basename; use the full file name.
1460    shift
1461    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1462  fi
1463fi
1464fi
1465fi
1466CC=$ac_cv_prog_CC
1467if test -n "$CC"; then
1468  echo "$as_me:$LINENO: result: $CC" >&5
1469echo "${ECHO_T}$CC" >&6
1470else
1471  echo "$as_me:$LINENO: result: no" >&5
1472echo "${ECHO_T}no" >&6
1473fi
1474
1475fi
1476if test -z "$CC"; then
1477  if test -n "$ac_tool_prefix"; then
1478  for ac_prog in cl
1479  do
1480    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1481set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1482echo "$as_me:$LINENO: checking for $ac_word" >&5
1483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1484if test "${ac_cv_prog_CC+set}" = set; then
1485  echo $ECHO_N "(cached) $ECHO_C" >&6
1486else
1487  if test -n "$CC"; then
1488  ac_cv_prog_CC="$CC" # Let the user override the test.
1489else
1490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1491for as_dir in $PATH
1492do
1493  IFS=$as_save_IFS
1494  test -z "$as_dir" && as_dir=.
1495  for ac_exec_ext in '' $ac_executable_extensions; do
1496  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1497    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1498    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1499    break 2
1500  fi
1501done
1502done
1503
1504fi
1505fi
1506CC=$ac_cv_prog_CC
1507if test -n "$CC"; then
1508  echo "$as_me:$LINENO: result: $CC" >&5
1509echo "${ECHO_T}$CC" >&6
1510else
1511  echo "$as_me:$LINENO: result: no" >&5
1512echo "${ECHO_T}no" >&6
1513fi
1514
1515    test -n "$CC" && break
1516  done
1517fi
1518if test -z "$CC"; then
1519  ac_ct_CC=$CC
1520  for ac_prog in cl
1521do
1522  # Extract the first word of "$ac_prog", so it can be a program name with args.
1523set dummy $ac_prog; ac_word=$2
1524echo "$as_me:$LINENO: checking for $ac_word" >&5
1525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1526if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1527  echo $ECHO_N "(cached) $ECHO_C" >&6
1528else
1529  if test -n "$ac_ct_CC"; then
1530  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1531else
1532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1533for as_dir in $PATH
1534do
1535  IFS=$as_save_IFS
1536  test -z "$as_dir" && as_dir=.
1537  for ac_exec_ext in '' $ac_executable_extensions; do
1538  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1539    ac_cv_prog_ac_ct_CC="$ac_prog"
1540    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1541    break 2
1542  fi
1543done
1544done
1545
1546fi
1547fi
1548ac_ct_CC=$ac_cv_prog_ac_ct_CC
1549if test -n "$ac_ct_CC"; then
1550  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1551echo "${ECHO_T}$ac_ct_CC" >&6
1552else
1553  echo "$as_me:$LINENO: result: no" >&5
1554echo "${ECHO_T}no" >&6
1555fi
1556
1557  test -n "$ac_ct_CC" && break
1558done
1559
1560  CC=$ac_ct_CC
1561fi
1562
1563fi
1564
1565
1566test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1567See \`config.log' for more details." >&5
1568echo "$as_me: error: no acceptable C compiler found in \$PATH
1569See \`config.log' for more details." >&2;}
1570   { (exit 1); exit 1; }; }
1571
1572# Provide some information about the compiler.
1573echo "$as_me:$LINENO:" \
1574     "checking for C compiler version" >&5
1575ac_compiler=`set X $ac_compile; echo $2`
1576{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1577  (eval $ac_compiler --version </dev/null >&5) 2>&5
1578  ac_status=$?
1579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1580  (exit $ac_status); }
1581{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1582  (eval $ac_compiler -v </dev/null >&5) 2>&5
1583  ac_status=$?
1584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1585  (exit $ac_status); }
1586{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1587  (eval $ac_compiler -V </dev/null >&5) 2>&5
1588  ac_status=$?
1589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1590  (exit $ac_status); }
1591
1592cat >conftest.$ac_ext <<_ACEOF
1593/* confdefs.h.  */
1594_ACEOF
1595cat confdefs.h >>conftest.$ac_ext
1596cat >>conftest.$ac_ext <<_ACEOF
1597/* end confdefs.h.  */
1598
1599int
1600main ()
1601{
1602
1603  ;
1604  return 0;
1605}
1606_ACEOF
1607ac_clean_files_save=$ac_clean_files
1608ac_clean_files="$ac_clean_files a.out a.exe b.out"
1609# Try to create an executable without -o first, disregard a.out.
1610# It will help us diagnose broken compilers, and finding out an intuition
1611# of exeext.
1612echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1613echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1614ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1615if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1616  (eval $ac_link_default) 2>&5
1617  ac_status=$?
1618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1619  (exit $ac_status); }; then
1620  # Find the output, starting from the most likely.  This scheme is
1621# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1622# resort.
1623
1624# Be careful to initialize this variable, since it used to be cached.
1625# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1626ac_cv_exeext=
1627# b.out is created by i960 compilers.
1628for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1629do
1630  test -f "$ac_file" || continue
1631  case $ac_file in
1632    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1633        ;;
1634    conftest.$ac_ext )
1635        # This is the source file.
1636        ;;
1637    [ab].out )
1638        # We found the default executable, but exeext='' is most
1639        # certainly right.
1640        break;;
1641    *.* )
1642        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1643        # FIXME: I believe we export ac_cv_exeext for Libtool,
1644        # but it would be cool to find out if it's true.  Does anybody
1645        # maintain Libtool? --akim.
1646        export ac_cv_exeext
1647        break;;
1648    * )
1649        break;;
1650  esac
1651done
1652else
1653  echo "$as_me: failed program was:" >&5
1654sed 's/^/| /' conftest.$ac_ext >&5
1655
1656{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1657See \`config.log' for more details." >&5
1658echo "$as_me: error: C compiler cannot create executables
1659See \`config.log' for more details." >&2;}
1660   { (exit 77); exit 77; }; }
1661fi
1662
1663ac_exeext=$ac_cv_exeext
1664echo "$as_me:$LINENO: result: $ac_file" >&5
1665echo "${ECHO_T}$ac_file" >&6
1666
1667# Check the compiler produces executables we can run.  If not, either
1668# the compiler is broken, or we cross compile.
1669echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1670echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1671# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1672# If not cross compiling, check that we can run a simple program.
1673if test "$cross_compiling" != yes; then
1674  if { ac_try='./$ac_file'
1675  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1676  (eval $ac_try) 2>&5
1677  ac_status=$?
1678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1679  (exit $ac_status); }; }; then
1680    cross_compiling=no
1681  else
1682    if test "$cross_compiling" = maybe; then
1683        cross_compiling=yes
1684    else
1685        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1686If you meant to cross compile, use \`--host'.
1687See \`config.log' for more details." >&5
1688echo "$as_me: error: cannot run C compiled programs.
1689If you meant to cross compile, use \`--host'.
1690See \`config.log' for more details." >&2;}
1691   { (exit 1); exit 1; }; }
1692    fi
1693  fi
1694fi
1695echo "$as_me:$LINENO: result: yes" >&5
1696echo "${ECHO_T}yes" >&6
1697
1698rm -f a.out a.exe conftest$ac_cv_exeext b.out
1699ac_clean_files=$ac_clean_files_save
1700# Check the compiler produces executables we can run.  If not, either
1701# the compiler is broken, or we cross compile.
1702echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1703echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1704echo "$as_me:$LINENO: result: $cross_compiling" >&5
1705echo "${ECHO_T}$cross_compiling" >&6
1706
1707echo "$as_me:$LINENO: checking for suffix of executables" >&5
1708echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1710  (eval $ac_link) 2>&5
1711  ac_status=$?
1712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1713  (exit $ac_status); }; then
1714  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1715# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1716# work properly (i.e., refer to `conftest.exe'), while it won't with
1717# `rm'.
1718for ac_file in conftest.exe conftest conftest.*; do
1719  test -f "$ac_file" || continue
1720  case $ac_file in
1721    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1722    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1723          export ac_cv_exeext
1724          break;;
1725    * ) break;;
1726  esac
1727done
1728else
1729  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1730See \`config.log' for more details." >&5
1731echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1732See \`config.log' for more details." >&2;}
1733   { (exit 1); exit 1; }; }
1734fi
1735
1736rm -f conftest$ac_cv_exeext
1737echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1738echo "${ECHO_T}$ac_cv_exeext" >&6
1739
1740rm -f conftest.$ac_ext
1741EXEEXT=$ac_cv_exeext
1742ac_exeext=$EXEEXT
1743echo "$as_me:$LINENO: checking for suffix of object files" >&5
1744echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1745if test "${ac_cv_objext+set}" = set; then
1746  echo $ECHO_N "(cached) $ECHO_C" >&6
1747else
1748  cat >conftest.$ac_ext <<_ACEOF
1749/* confdefs.h.  */
1750_ACEOF
1751cat confdefs.h >>conftest.$ac_ext
1752cat >>conftest.$ac_ext <<_ACEOF
1753/* end confdefs.h.  */
1754
1755int
1756main ()
1757{
1758
1759  ;
1760  return 0;
1761}
1762_ACEOF
1763rm -f conftest.o conftest.obj
1764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1765  (eval $ac_compile) 2>&5
1766  ac_status=$?
1767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1768  (exit $ac_status); }; then
1769  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1770  case $ac_file in
1771    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1772    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1773       break;;
1774  esac
1775done
1776else
1777  echo "$as_me: failed program was:" >&5
1778sed 's/^/| /' conftest.$ac_ext >&5
1779
1780{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1781See \`config.log' for more details." >&5
1782echo "$as_me: error: cannot compute suffix of object files: cannot compile
1783See \`config.log' for more details." >&2;}
1784   { (exit 1); exit 1; }; }
1785fi
1786
1787rm -f conftest.$ac_cv_objext conftest.$ac_ext
1788fi
1789echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1790echo "${ECHO_T}$ac_cv_objext" >&6
1791OBJEXT=$ac_cv_objext
1792ac_objext=$OBJEXT
1793echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1794echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1795if test "${ac_cv_c_compiler_gnu+set}" = set; then
1796  echo $ECHO_N "(cached) $ECHO_C" >&6
1797else
1798  cat >conftest.$ac_ext <<_ACEOF
1799/* confdefs.h.  */
1800_ACEOF
1801cat confdefs.h >>conftest.$ac_ext
1802cat >>conftest.$ac_ext <<_ACEOF
1803/* end confdefs.h.  */
1804
1805int
1806main ()
1807{
1808#ifndef __GNUC__
1809       choke me
1810#endif
1811
1812  ;
1813  return 0;
1814}
1815_ACEOF
1816rm -f conftest.$ac_objext
1817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1818  (eval $ac_compile) 2>conftest.er1
1819  ac_status=$?
1820  grep -v '^ *+' conftest.er1 >conftest.err
1821  rm -f conftest.er1
1822  cat conftest.err >&5
1823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1824  (exit $ac_status); } &&
1825         { ac_try='test -z "$ac_c_werror_flag"
1826                         || test ! -s conftest.err'
1827  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1828  (eval $ac_try) 2>&5
1829  ac_status=$?
1830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1831  (exit $ac_status); }; } &&
1832         { ac_try='test -s conftest.$ac_objext'
1833  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1834  (eval $ac_try) 2>&5
1835  ac_status=$?
1836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1837  (exit $ac_status); }; }; then
1838  ac_compiler_gnu=yes
1839else
1840  echo "$as_me: failed program was:" >&5
1841sed 's/^/| /' conftest.$ac_ext >&5
1842
1843ac_compiler_gnu=no
1844fi
1845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1846ac_cv_c_compiler_gnu=$ac_compiler_gnu
1847
1848fi
1849echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1850echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1851GCC=`test $ac_compiler_gnu = yes && echo yes`
1852ac_test_CFLAGS=${CFLAGS+set}
1853ac_save_CFLAGS=$CFLAGS
1854CFLAGS="-g"
1855echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1856echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1857if test "${ac_cv_prog_cc_g+set}" = set; then
1858  echo $ECHO_N "(cached) $ECHO_C" >&6
1859else
1860  cat >conftest.$ac_ext <<_ACEOF
1861/* confdefs.h.  */
1862_ACEOF
1863cat confdefs.h >>conftest.$ac_ext
1864cat >>conftest.$ac_ext <<_ACEOF
1865/* end confdefs.h.  */
1866
1867int
1868main ()
1869{
1870
1871  ;
1872  return 0;
1873}
1874_ACEOF
1875rm -f conftest.$ac_objext
1876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1877  (eval $ac_compile) 2>conftest.er1
1878  ac_status=$?
1879  grep -v '^ *+' conftest.er1 >conftest.err
1880  rm -f conftest.er1
1881  cat conftest.err >&5
1882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1883  (exit $ac_status); } &&
1884         { ac_try='test -z "$ac_c_werror_flag"
1885                         || test ! -s conftest.err'
1886  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1887  (eval $ac_try) 2>&5
1888  ac_status=$?
1889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1890  (exit $ac_status); }; } &&
1891         { ac_try='test -s conftest.$ac_objext'
1892  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1893  (eval $ac_try) 2>&5
1894  ac_status=$?
1895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1896  (exit $ac_status); }; }; then
1897  ac_cv_prog_cc_g=yes
1898else
1899  echo "$as_me: failed program was:" >&5
1900sed 's/^/| /' conftest.$ac_ext >&5
1901
1902ac_cv_prog_cc_g=no
1903fi
1904rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1905fi
1906echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1907echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1908if test "$ac_test_CFLAGS" = set; then
1909  CFLAGS=$ac_save_CFLAGS
1910elif test $ac_cv_prog_cc_g = yes; then
1911  if test "$GCC" = yes; then
1912    CFLAGS="-g -O2"
1913  else
1914    CFLAGS="-g"
1915  fi
1916else
1917  if test "$GCC" = yes; then
1918    CFLAGS="-O2"
1919  else
1920    CFLAGS=
1921  fi
1922fi
1923echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1924echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1925if test "${ac_cv_prog_cc_stdc+set}" = set; then
1926  echo $ECHO_N "(cached) $ECHO_C" >&6
1927else
1928  ac_cv_prog_cc_stdc=no
1929ac_save_CC=$CC
1930cat >conftest.$ac_ext <<_ACEOF
1931/* confdefs.h.  */
1932_ACEOF
1933cat confdefs.h >>conftest.$ac_ext
1934cat >>conftest.$ac_ext <<_ACEOF
1935/* end confdefs.h.  */
1936#include <stdarg.h>
1937#include <stdio.h>
1938#include <sys/types.h>
1939#include <sys/stat.h>
1940/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
1941struct buf { int x; };
1942FILE * (*rcsopen) (struct buf *, struct stat *, int);
1943static char *e (p, i)
1944     char **p;
1945     int i;
1946{
1947  return p[i];
1948}
1949static char *f (char * (*g) (char **, int), char **p, ...)
1950{
1951  char *s;
1952  va_list v;
1953  va_start (v,p);
1954  s = g (p, va_arg (v,int));
1955  va_end (v);
1956  return s;
1957}
1958
1959/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
1960   function prototypes and stuff, but not '\xHH' hex character constants.
1961   These don't provoke an error unfortunately, instead are silently treated
1962   as 'x'.  The following induces an error, until -std1 is added to get
1963   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
1964   array size at least.  It's necessary to write '\x00'==0 to get something
1965   that's true only with -std1.  */
1966int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1967
1968int test (int i, double x);
1969struct s1 {int (*f) (int a);};
1970struct s2 {int (*f) (double a);};
1971int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1972int argc;
1973char **argv;
1974int
1975main ()
1976{
1977return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
1978  ;
1979  return 0;
1980}
1981_ACEOF
1982# Don't try gcc -ansi; that turns off useful extensions and
1983# breaks some systems' header files.
1984# AIX                   -qlanglvl=ansi
1985# Ultrix and OSF/1      -std1
1986# HP-UX 10.20 and later -Ae
1987# HP-UX older versions  -Aa -D_HPUX_SOURCE
1988# SVR4                  -Xc -D__EXTENSIONS__
1989for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1990do
1991  CC="$ac_save_CC $ac_arg"
1992  rm -f conftest.$ac_objext
1993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1994  (eval $ac_compile) 2>conftest.er1
1995  ac_status=$?
1996  grep -v '^ *+' conftest.er1 >conftest.err
1997  rm -f conftest.er1
1998  cat conftest.err >&5
1999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2000  (exit $ac_status); } &&
2001         { ac_try='test -z "$ac_c_werror_flag"
2002                         || test ! -s conftest.err'
2003  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2004  (eval $ac_try) 2>&5
2005  ac_status=$?
2006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007  (exit $ac_status); }; } &&
2008         { ac_try='test -s conftest.$ac_objext'
2009  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2010  (eval $ac_try) 2>&5
2011  ac_status=$?
2012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2013  (exit $ac_status); }; }; then
2014  ac_cv_prog_cc_stdc=$ac_arg
2015break
2016else
2017  echo "$as_me: failed program was:" >&5
2018sed 's/^/| /' conftest.$ac_ext >&5
2019
2020fi
2021rm -f conftest.err conftest.$ac_objext
2022done
2023rm -f conftest.$ac_ext conftest.$ac_objext
2024CC=$ac_save_CC
2025
2026fi
2027
2028case "x$ac_cv_prog_cc_stdc" in
2029  x|xno)
2030    echo "$as_me:$LINENO: result: none needed" >&5
2031echo "${ECHO_T}none needed" >&6 ;;
2032  *)
2033    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2034echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2035    CC="$CC $ac_cv_prog_cc_stdc" ;;
2036esac
2037
2038# Some people use a C++ compiler to compile C.  Since we use `exit',
2039# in C++ we need to declare it.  In case someone uses the same compiler
2040# for both compiling C and C++ we need to have the C++ compiler decide
2041# the declaration of exit, since it's the most demanding environment.
2042cat >conftest.$ac_ext <<_ACEOF
2043#ifndef __cplusplus
2044  choke me
2045#endif
2046_ACEOF
2047rm -f conftest.$ac_objext
2048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2049  (eval $ac_compile) 2>conftest.er1
2050  ac_status=$?
2051  grep -v '^ *+' conftest.er1 >conftest.err
2052  rm -f conftest.er1
2053  cat conftest.err >&5
2054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055  (exit $ac_status); } &&
2056         { ac_try='test -z "$ac_c_werror_flag"
2057                         || test ! -s conftest.err'
2058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2059  (eval $ac_try) 2>&5
2060  ac_status=$?
2061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062  (exit $ac_status); }; } &&
2063         { ac_try='test -s conftest.$ac_objext'
2064  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2065  (eval $ac_try) 2>&5
2066  ac_status=$?
2067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068  (exit $ac_status); }; }; then
2069  for ac_declaration in \
2070   '' \
2071   'extern "C" void std::exit (int) throw (); using std::exit;' \
2072   'extern "C" void std::exit (int); using std::exit;' \
2073   'extern "C" void exit (int) throw ();' \
2074   'extern "C" void exit (int);' \
2075   'void exit (int);'
2076do
2077  cat >conftest.$ac_ext <<_ACEOF
2078/* confdefs.h.  */
2079_ACEOF
2080cat confdefs.h >>conftest.$ac_ext
2081cat >>conftest.$ac_ext <<_ACEOF
2082/* end confdefs.h.  */
2083$ac_declaration
2084#include <stdlib.h>
2085int
2086main ()
2087{
2088exit (42);
2089  ;
2090  return 0;
2091}
2092_ACEOF
2093rm -f conftest.$ac_objext
2094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2095  (eval $ac_compile) 2>conftest.er1
2096  ac_status=$?
2097  grep -v '^ *+' conftest.er1 >conftest.err
2098  rm -f conftest.er1
2099  cat conftest.err >&5
2100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101  (exit $ac_status); } &&
2102         { ac_try='test -z "$ac_c_werror_flag"
2103                         || test ! -s conftest.err'
2104  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2105  (eval $ac_try) 2>&5
2106  ac_status=$?
2107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108  (exit $ac_status); }; } &&
2109         { ac_try='test -s conftest.$ac_objext'
2110  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2111  (eval $ac_try) 2>&5
2112  ac_status=$?
2113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114  (exit $ac_status); }; }; then
2115  :
2116else
2117  echo "$as_me: failed program was:" >&5
2118sed 's/^/| /' conftest.$ac_ext >&5
2119
2120continue
2121fi
2122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2123  cat >conftest.$ac_ext <<_ACEOF
2124/* confdefs.h.  */
2125_ACEOF
2126cat confdefs.h >>conftest.$ac_ext
2127cat >>conftest.$ac_ext <<_ACEOF
2128/* end confdefs.h.  */
2129$ac_declaration
2130int
2131main ()
2132{
2133exit (42);
2134  ;
2135  return 0;
2136}
2137_ACEOF
2138rm -f conftest.$ac_objext
2139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2140  (eval $ac_compile) 2>conftest.er1
2141  ac_status=$?
2142  grep -v '^ *+' conftest.er1 >conftest.err
2143  rm -f conftest.er1
2144  cat conftest.err >&5
2145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146  (exit $ac_status); } &&
2147         { ac_try='test -z "$ac_c_werror_flag"
2148                         || test ! -s conftest.err'
2149  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2150  (eval $ac_try) 2>&5
2151  ac_status=$?
2152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153  (exit $ac_status); }; } &&
2154         { ac_try='test -s conftest.$ac_objext'
2155  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2156  (eval $ac_try) 2>&5
2157  ac_status=$?
2158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159  (exit $ac_status); }; }; then
2160  break
2161else
2162  echo "$as_me: failed program was:" >&5
2163sed 's/^/| /' conftest.$ac_ext >&5
2164
2165fi
2166rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2167done
2168rm -f conftest*
2169if test -n "$ac_declaration"; then
2170  echo '#ifdef __cplusplus' >>confdefs.h
2171  echo $ac_declaration      >>confdefs.h
2172  echo '#endif'             >>confdefs.h
2173fi
2174
2175else
2176  echo "$as_me: failed program was:" >&5
2177sed 's/^/| /' conftest.$ac_ext >&5
2178
2179fi
2180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2181ac_ext=c
2182ac_cpp='$CPP $CPPFLAGS'
2183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2185ac_compiler_gnu=$ac_cv_c_compiler_gnu
2186
2187for ac_prog in 'bison -y' byacc
2188do
2189  # Extract the first word of "$ac_prog", so it can be a program name with args.
2190set dummy $ac_prog; ac_word=$2
2191echo "$as_me:$LINENO: checking for $ac_word" >&5
2192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2193if test "${ac_cv_prog_YACC+set}" = set; then
2194  echo $ECHO_N "(cached) $ECHO_C" >&6
2195else
2196  if test -n "$YACC"; then
2197  ac_cv_prog_YACC="$YACC" # Let the user override the test.
2198else
2199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200for as_dir in $PATH
2201do
2202  IFS=$as_save_IFS
2203  test -z "$as_dir" && as_dir=.
2204  for ac_exec_ext in '' $ac_executable_extensions; do
2205  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2206    ac_cv_prog_YACC="$ac_prog"
2207    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2208    break 2
2209  fi
2210done
2211done
2212
2213fi
2214fi
2215YACC=$ac_cv_prog_YACC
2216if test -n "$YACC"; then
2217  echo "$as_me:$LINENO: result: $YACC" >&5
2218echo "${ECHO_T}$YACC" >&6
2219else
2220  echo "$as_me:$LINENO: result: no" >&5
2221echo "${ECHO_T}no" >&6
2222fi
2223
2224  test -n "$YACC" && break
2225done
2226test -n "$YACC" || YACC="yacc"
2227
2228
2229if test "$ac_cv_prog_YACC" = "byacc"; then
2230        { echo "$as_me:$LINENO: WARNING: using byacc has caused inexplicable runtime behavior;" >&5
2231echo "$as_me: WARNING: using byacc has caused inexplicable runtime behavior;" >&2;}
2232        { echo "$as_me:$LINENO: WARNING: if you get incomprehensible errors when parsing" >&5
2233echo "$as_me: WARNING: if you get incomprehensible errors when parsing" >&2;}
2234        { echo "$as_me:$LINENO: WARNING: grammars, install bison and try again." >&5
2235echo "$as_me: WARNING: grammars, install bison and try again." >&2;}
2236fi
2237
2238
2239
2240for ac_prog in flex lex
2241do
2242  # Extract the first word of "$ac_prog", so it can be a program name with args.
2243set dummy $ac_prog; ac_word=$2
2244echo "$as_me:$LINENO: checking for $ac_word" >&5
2245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2246if test "${ac_cv_prog_LEX+set}" = set; then
2247  echo $ECHO_N "(cached) $ECHO_C" >&6
2248else
2249  if test -n "$LEX"; then
2250  ac_cv_prog_LEX="$LEX" # Let the user override the test.
2251else
2252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2253for as_dir in $PATH
2254do
2255  IFS=$as_save_IFS
2256  test -z "$as_dir" && as_dir=.
2257  for ac_exec_ext in '' $ac_executable_extensions; do
2258  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2259    ac_cv_prog_LEX="$ac_prog"
2260    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2261    break 2
2262  fi
2263done
2264done
2265
2266fi
2267fi
2268LEX=$ac_cv_prog_LEX
2269if test -n "$LEX"; then
2270  echo "$as_me:$LINENO: result: $LEX" >&5
2271echo "${ECHO_T}$LEX" >&6
2272else
2273  echo "$as_me:$LINENO: result: no" >&5
2274echo "${ECHO_T}no" >&6
2275fi
2276
2277  test -n "$LEX" && break
2278done
2279test -n "$LEX" || LEX=":"
2280
2281if test -z "$LEXLIB"
2282then
2283  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
2284echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
2285if test "${ac_cv_lib_fl_yywrap+set}" = set; then
2286  echo $ECHO_N "(cached) $ECHO_C" >&6
2287else
2288  ac_check_lib_save_LIBS=$LIBS
2289LIBS="-lfl  $LIBS"
2290cat >conftest.$ac_ext <<_ACEOF
2291/* confdefs.h.  */
2292_ACEOF
2293cat confdefs.h >>conftest.$ac_ext
2294cat >>conftest.$ac_ext <<_ACEOF
2295/* end confdefs.h.  */
2296
2297/* Override any gcc2 internal prototype to avoid an error.  */
2298#ifdef __cplusplus
2299extern "C"
2300#endif
2301/* We use char because int might match the return type of a gcc2
2302   builtin and then its argument prototype would still apply.  */
2303char yywrap ();
2304int
2305main ()
2306{
2307yywrap ();
2308  ;
2309  return 0;
2310}
2311_ACEOF
2312rm -f conftest.$ac_objext conftest$ac_exeext
2313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2314  (eval $ac_link) 2>conftest.er1
2315  ac_status=$?
2316  grep -v '^ *+' conftest.er1 >conftest.err
2317  rm -f conftest.er1
2318  cat conftest.err >&5
2319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320  (exit $ac_status); } &&
2321         { ac_try='test -z "$ac_c_werror_flag"
2322                         || test ! -s conftest.err'
2323  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2324  (eval $ac_try) 2>&5
2325  ac_status=$?
2326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327  (exit $ac_status); }; } &&
2328         { ac_try='test -s conftest$ac_exeext'
2329  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2330  (eval $ac_try) 2>&5
2331  ac_status=$?
2332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333  (exit $ac_status); }; }; then
2334  ac_cv_lib_fl_yywrap=yes
2335else
2336  echo "$as_me: failed program was:" >&5
2337sed 's/^/| /' conftest.$ac_ext >&5
2338
2339ac_cv_lib_fl_yywrap=no
2340fi
2341rm -f conftest.err conftest.$ac_objext \
2342      conftest$ac_exeext conftest.$ac_ext
2343LIBS=$ac_check_lib_save_LIBS
2344fi
2345echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
2346echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
2347if test $ac_cv_lib_fl_yywrap = yes; then
2348  LEXLIB="-lfl"
2349else
2350  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
2351echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
2352if test "${ac_cv_lib_l_yywrap+set}" = set; then
2353  echo $ECHO_N "(cached) $ECHO_C" >&6
2354else
2355  ac_check_lib_save_LIBS=$LIBS
2356LIBS="-ll  $LIBS"
2357cat >conftest.$ac_ext <<_ACEOF
2358/* confdefs.h.  */
2359_ACEOF
2360cat confdefs.h >>conftest.$ac_ext
2361cat >>conftest.$ac_ext <<_ACEOF
2362/* end confdefs.h.  */
2363
2364/* Override any gcc2 internal prototype to avoid an error.  */
2365#ifdef __cplusplus
2366extern "C"
2367#endif
2368/* We use char because int might match the return type of a gcc2
2369   builtin and then its argument prototype would still apply.  */
2370char yywrap ();
2371int
2372main ()
2373{
2374yywrap ();
2375  ;
2376  return 0;
2377}
2378_ACEOF
2379rm -f conftest.$ac_objext conftest$ac_exeext
2380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2381  (eval $ac_link) 2>conftest.er1
2382  ac_status=$?
2383  grep -v '^ *+' conftest.er1 >conftest.err
2384  rm -f conftest.er1
2385  cat conftest.err >&5
2386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387  (exit $ac_status); } &&
2388         { ac_try='test -z "$ac_c_werror_flag"
2389                         || test ! -s conftest.err'
2390  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2391  (eval $ac_try) 2>&5
2392  ac_status=$?
2393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394  (exit $ac_status); }; } &&
2395         { ac_try='test -s conftest$ac_exeext'
2396  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397  (eval $ac_try) 2>&5
2398  ac_status=$?
2399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400  (exit $ac_status); }; }; then
2401  ac_cv_lib_l_yywrap=yes
2402else
2403  echo "$as_me: failed program was:" >&5
2404sed 's/^/| /' conftest.$ac_ext >&5
2405
2406ac_cv_lib_l_yywrap=no
2407fi
2408rm -f conftest.err conftest.$ac_objext \
2409      conftest$ac_exeext conftest.$ac_ext
2410LIBS=$ac_check_lib_save_LIBS
2411fi
2412echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
2413echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
2414if test $ac_cv_lib_l_yywrap = yes; then
2415  LEXLIB="-ll"
2416fi
2417
2418fi
2419
2420fi
2421
2422if test "x$LEX" != "x:"; then
2423  echo "$as_me:$LINENO: checking lex output file root" >&5
2424echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
2425if test "${ac_cv_prog_lex_root+set}" = set; then
2426  echo $ECHO_N "(cached) $ECHO_C" >&6
2427else
2428  # The minimal lex program is just a single line: %%.  But some broken lexes
2429# (Solaris, I think it was) want two %% lines, so accommodate them.
2430cat >conftest.l <<_ACEOF
2431%%
2432%%
2433_ACEOF
2434{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
2435  (eval $LEX conftest.l) 2>&5
2436  ac_status=$?
2437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438  (exit $ac_status); }
2439if test -f lex.yy.c; then
2440  ac_cv_prog_lex_root=lex.yy
2441elif test -f lexyy.c; then
2442  ac_cv_prog_lex_root=lexyy
2443else
2444  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
2445echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
2446   { (exit 1); exit 1; }; }
2447fi
2448fi
2449echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
2450echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
2451rm -f conftest.l
2452LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2453
2454echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
2455echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
2456if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
2457  echo $ECHO_N "(cached) $ECHO_C" >&6
2458else
2459  # POSIX says lex can declare yytext either as a pointer or an array; the
2460# default is implementation-dependent. Figure out which it is, since
2461# not all implementations provide the %pointer and %array declarations.
2462ac_cv_prog_lex_yytext_pointer=no
2463echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2464ac_save_LIBS=$LIBS
2465LIBS="$LIBS $LEXLIB"
2466cat >conftest.$ac_ext <<_ACEOF
2467`cat $LEX_OUTPUT_ROOT.c`
2468_ACEOF
2469rm -f conftest.$ac_objext conftest$ac_exeext
2470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2471  (eval $ac_link) 2>conftest.er1
2472  ac_status=$?
2473  grep -v '^ *+' conftest.er1 >conftest.err
2474  rm -f conftest.er1
2475  cat conftest.err >&5
2476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477  (exit $ac_status); } &&
2478         { ac_try='test -z "$ac_c_werror_flag"
2479                         || test ! -s conftest.err'
2480  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2481  (eval $ac_try) 2>&5
2482  ac_status=$?
2483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484  (exit $ac_status); }; } &&
2485         { ac_try='test -s conftest$ac_exeext'
2486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2487  (eval $ac_try) 2>&5
2488  ac_status=$?
2489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490  (exit $ac_status); }; }; then
2491  ac_cv_prog_lex_yytext_pointer=yes
2492else
2493  echo "$as_me: failed program was:" >&5
2494sed 's/^/| /' conftest.$ac_ext >&5
2495
2496fi
2497rm -f conftest.err conftest.$ac_objext \
2498      conftest$ac_exeext conftest.$ac_ext
2499LIBS=$ac_save_LIBS
2500rm -f "${LEX_OUTPUT_ROOT}.c"
2501
2502fi
2503echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
2504echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
2505if test $ac_cv_prog_lex_yytext_pointer = yes; then
2506
2507cat >>confdefs.h <<\_ACEOF
2508#define YYTEXT_POINTER 1
2509_ACEOF
2510
2511fi
2512
2513fi
2514if test "$LEX" = "flex"; then
2515        FLEXFLAGS="-l"
2516fi
2517
2518
2519
2520for ac_func in hcreate
2521do
2522as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2523echo "$as_me:$LINENO: checking for $ac_func" >&5
2524echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2525if eval "test \"\${$as_ac_var+set}\" = set"; then
2526  echo $ECHO_N "(cached) $ECHO_C" >&6
2527else
2528  cat >conftest.$ac_ext <<_ACEOF
2529/* confdefs.h.  */
2530_ACEOF
2531cat confdefs.h >>conftest.$ac_ext
2532cat >>conftest.$ac_ext <<_ACEOF
2533/* end confdefs.h.  */
2534/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
2535   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2536#define $ac_func innocuous_$ac_func
2537
2538/* System header to define __stub macros and hopefully few prototypes,
2539    which can conflict with char $ac_func (); below.
2540    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2541    <limits.h> exists even on freestanding compilers.  */
2542
2543#ifdef __STDC__
2544# include <limits.h>
2545#else
2546# include <assert.h>
2547#endif
2548
2549#undef $ac_func
2550
2551/* Override any gcc2 internal prototype to avoid an error.  */
2552#ifdef __cplusplus
2553extern "C"
2554{
2555#endif
2556/* We use char because int might match the return type of a gcc2
2557   builtin and then its argument prototype would still apply.  */
2558char $ac_func ();
2559/* The GNU C library defines this for functions which it implements
2560    to always fail with ENOSYS.  Some functions are actually named
2561    something starting with __ and the normal name is an alias.  */
2562#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2563choke me
2564#else
2565char (*f) () = $ac_func;
2566#endif
2567#ifdef __cplusplus
2568}
2569#endif
2570
2571int
2572main ()
2573{
2574return f != $ac_func;
2575  ;
2576  return 0;
2577}
2578_ACEOF
2579rm -f conftest.$ac_objext conftest$ac_exeext
2580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2581  (eval $ac_link) 2>conftest.er1
2582  ac_status=$?
2583  grep -v '^ *+' conftest.er1 >conftest.err
2584  rm -f conftest.er1
2585  cat conftest.err >&5
2586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587  (exit $ac_status); } &&
2588         { ac_try='test -z "$ac_c_werror_flag"
2589                         || test ! -s conftest.err'
2590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2591  (eval $ac_try) 2>&5
2592  ac_status=$?
2593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594  (exit $ac_status); }; } &&
2595         { ac_try='test -s conftest$ac_exeext'
2596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2597  (eval $ac_try) 2>&5
2598  ac_status=$?
2599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600  (exit $ac_status); }; }; then
2601  eval "$as_ac_var=yes"
2602else
2603  echo "$as_me: failed program was:" >&5
2604sed 's/^/| /' conftest.$ac_ext >&5
2605
2606eval "$as_ac_var=no"
2607fi
2608rm -f conftest.err conftest.$ac_objext \
2609      conftest$ac_exeext conftest.$ac_ext
2610fi
2611echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
2612echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
2613if test `eval echo '${'$as_ac_var'}'` = yes; then
2614  cat >>confdefs.h <<_ACEOF
2615#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2616_ACEOF
2617
2618else
2619  case $LIBOBJS in
2620    "$ac_func.$ac_objext"   | \
2621  *" $ac_func.$ac_objext"   | \
2622    "$ac_func.$ac_objext "* | \
2623  *" $ac_func.$ac_objext "* ) ;;
2624  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
2625esac
2626
2627fi
2628done
2629
2630
2631
2632          ac_config_headers="$ac_config_headers config.h"
2633
2634
2635          ac_config_files="$ac_config_files Makefile"
2636cat >confcache <<\_ACEOF
2637# This file is a shell script that caches the results of configure
2638# tests run on this system so they can be shared between configure
2639# scripts and configure runs, see configure's option --config-cache.
2640# It is not useful on other systems.  If it contains results you don't
2641# want to keep, you may remove or edit it.
2642#
2643# config.status only pays attention to the cache file if you give it
2644# the --recheck option to rerun configure.
2645#
2646# `ac_cv_env_foo' variables (set or unset) will be overridden when
2647# loading this file, other *unset* `ac_cv_foo' will be assigned the
2648# following values.
2649
2650_ACEOF
2651
2652# The following way of writing the cache mishandles newlines in values,
2653# but we know of no workaround that is simple, portable, and efficient.
2654# So, don't put newlines in cache variables' values.
2655# Ultrix sh set writes to stderr and can't be redirected directly,
2656# and sets the high bit in the cache file unless we assign to the vars.
2657{
2658  (set) 2>&1 |
2659    case `(ac_space=' '; set | grep ac_space) 2>&1` in
2660    *ac_space=\ *)
2661      # `set' does not quote correctly, so add quotes (double-quote
2662      # substitution turns \\\\ into \\, and sed turns \\ into \).
2663      sed -n \
2664        "s/'/'\\\\''/g;
2665          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2666      ;;
2667    *)
2668      # `set' quotes correctly as required by POSIX, so do not add quotes.
2669      sed -n \
2670        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
2671      ;;
2672    esac;
2673} |
2674  sed '
2675     t clear
2676     : clear
2677     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2678     t end
2679     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2680     : end' >>confcache
2681if diff $cache_file confcache >/dev/null 2>&1; then :; else
2682  if test -w $cache_file; then
2683    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
2684    cat confcache >$cache_file
2685  else
2686    echo "not updating unwritable cache $cache_file"
2687  fi
2688fi
2689rm -f confcache
2690
2691test "x$prefix" = xNONE && prefix=$ac_default_prefix
2692# Let make expand exec_prefix.
2693test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2694
2695# VPATH may cause trouble with some makes, so we remove $(srcdir),
2696# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
2697# trailing colons and then remove the whole line if VPATH becomes empty
2698# (actually we leave an empty line to preserve line numbers).
2699if test "x$srcdir" = x.; then
2700  ac_vpsub='/^[  ]*VPATH[        ]*=/{
2701s/:*\$(srcdir):*/:/;
2702s/:*\${srcdir}:*/:/;
2703s/:*@srcdir@:*/:/;
2704s/^\([^=]*=[     ]*\):*/\1/;
2705s/:*$//;
2706s/^[^=]*=[       ]*$//;
2707}'
2708fi
2709
2710DEFS=-DHAVE_CONFIG_H
2711
2712ac_libobjs=
2713ac_ltlibobjs=
2714for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2715  # 1. Remove the extension, and $U if already installed.
2716  ac_i=`echo "$ac_i" |
2717         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
2718  # 2. Add them.
2719  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
2720  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
2721done
2722LIBOBJS=$ac_libobjs
2723
2724LTLIBOBJS=$ac_ltlibobjs
2725
2726
2727
2728: ${CONFIG_STATUS=./config.status}
2729ac_clean_files_save=$ac_clean_files
2730ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2731{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
2732echo "$as_me: creating $CONFIG_STATUS" >&6;}
2733cat >$CONFIG_STATUS <<_ACEOF
2734#! $SHELL
2735# Generated by $as_me.
2736# Run this file to recreate the current configuration.
2737# Compiler output produced by configure, useful for debugging
2738# configure, is in config.log if it exists.
2739
2740debug=false
2741ac_cs_recheck=false
2742ac_cs_silent=false
2743SHELL=\${CONFIG_SHELL-$SHELL}
2744_ACEOF
2745
2746cat >>$CONFIG_STATUS <<\_ACEOF
2747## --------------------- ##
2748## M4sh Initialization.  ##
2749## --------------------- ##
2750
2751# Be Bourne compatible
2752if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2753  emulate sh
2754  NULLCMD=:
2755  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
2756  # is contrary to our usage.  Disable this feature.
2757  alias -g '${1+"$@"}'='"$@"'
2758elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
2759  set -o posix
2760fi
2761DUALCASE=1; export DUALCASE # for MKS sh
2762
2763# Support unset when possible.
2764if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
2765  as_unset=unset
2766else
2767  as_unset=false
2768fi
2769
2770
2771# Work around bugs in pre-3.0 UWIN ksh.
2772$as_unset ENV MAIL MAILPATH
2773PS1='$ '
2774PS2='> '
2775PS4='+ '
2776
2777# NLS nuisances.
2778for as_var in \
2779  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
2780  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
2781  LC_TELEPHONE LC_TIME
2782do
2783  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
2784    eval $as_var=C; export $as_var
2785  else
2786    $as_unset $as_var
2787  fi
2788done
2789
2790# Required to use basename.
2791if expr a : '\(a\)' >/dev/null 2>&1; then
2792  as_expr=expr
2793else
2794  as_expr=false
2795fi
2796
2797if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
2798  as_basename=basename
2799else
2800  as_basename=false
2801fi
2802
2803
2804# Name of the executable.
2805as_me=`$as_basename "$0" ||
2806$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
2807         X"$0" : 'X\(//\)$' \| \
2808         X"$0" : 'X\(/\)$' \| \
2809         .     : '\(.\)' 2>/dev/null ||
2810echo X/"$0" |
2811    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
2812          /^X\/\(\/\/\)$/{ s//\1/; q; }
2813          /^X\/\(\/\).*/{ s//\1/; q; }
2814          s/.*/./; q'`
2815
2816
2817# PATH needs CR, and LINENO needs CR and PATH.
2818# Avoid depending upon Character Ranges.
2819as_cr_letters='abcdefghijklmnopqrstuvwxyz'
2820as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
2821as_cr_Letters=$as_cr_letters$as_cr_LETTERS
2822as_cr_digits='0123456789'
2823as_cr_alnum=$as_cr_Letters$as_cr_digits
2824
2825# The user is always right.
2826if test "${PATH_SEPARATOR+set}" != set; then
2827  echo "#! /bin/sh" >conf$$.sh
2828  echo  "exit 0"   >>conf$$.sh
2829  chmod +x conf$$.sh
2830  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2831    PATH_SEPARATOR=';'
2832  else
2833    PATH_SEPARATOR=:
2834  fi
2835  rm -f conf$$.sh
2836fi
2837
2838
2839  as_lineno_1=$LINENO
2840  as_lineno_2=$LINENO
2841  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
2842  test "x$as_lineno_1" != "x$as_lineno_2" &&
2843  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
2844  # Find who we are.  Look in the path if we contain no path at all
2845  # relative or not.
2846  case $0 in
2847    *[\\/]* ) as_myself=$0 ;;
2848    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849for as_dir in $PATH
2850do
2851  IFS=$as_save_IFS
2852  test -z "$as_dir" && as_dir=.
2853  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
2854done
2855
2856       ;;
2857  esac
2858  # We did not find ourselves, most probably we were run as `sh COMMAND'
2859  # in which case we are not to be found in the path.
2860  if test "x$as_myself" = x; then
2861    as_myself=$0
2862  fi
2863  if test ! -f "$as_myself"; then
2864    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
2865echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
2866   { (exit 1); exit 1; }; }
2867  fi
2868  case $CONFIG_SHELL in
2869  '')
2870    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
2872do
2873  IFS=$as_save_IFS
2874  test -z "$as_dir" && as_dir=.
2875  for as_base in sh bash ksh sh5; do
2876         case $as_dir in
2877         /*)
2878           if ("$as_dir/$as_base" -c '
2879  as_lineno_1=$LINENO
2880  as_lineno_2=$LINENO
2881  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
2882  test "x$as_lineno_1" != "x$as_lineno_2" &&
2883  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
2884             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
2885             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
2886             CONFIG_SHELL=$as_dir/$as_base
2887             export CONFIG_SHELL
2888             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
2889           fi;;
2890         esac
2891       done
2892done
2893;;
2894  esac
2895
2896  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
2897  # uniformly replaced by the line number.  The first 'sed' inserts a
2898  # line-number line before each line; the second 'sed' does the real
2899  # work.  The second script uses 'N' to pair each line-number line
2900  # with the numbered line, and appends trailing '-' during
2901  # substitution so that $LINENO is not a special case at line end.
2902  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2903  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
2904  sed '=' <$as_myself |
2905    sed '
2906      N
2907      s,$,-,
2908      : loop
2909      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
2910      t loop
2911      s,-$,,
2912      s,^['$as_cr_digits']*\n,,
2913    ' >$as_me.lineno &&
2914  chmod +x $as_me.lineno ||
2915    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
2916echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
2917   { (exit 1); exit 1; }; }
2918
2919  # Don't try to exec as it changes $[0], causing all sort of problems
2920  # (the dirname of $[0] is not the place where we might find the
2921  # original and so on.  Autoconf is especially sensible to this).
2922  . ./$as_me.lineno
2923  # Exit status is that of the last command.
2924  exit
2925}
2926
2927
2928case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
2929  *c*,-n*) ECHO_N= ECHO_C='
2930' ECHO_T='      ' ;;
2931  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
2932  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
2933esac
2934
2935if expr a : '\(a\)' >/dev/null 2>&1; then
2936  as_expr=expr
2937else
2938  as_expr=false
2939fi
2940
2941rm -f conf$$ conf$$.exe conf$$.file
2942echo >conf$$.file
2943if ln -s conf$$.file conf$$ 2>/dev/null; then
2944  # We could just check for DJGPP; but this test a) works b) is more generic
2945  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
2946  if test -f conf$$.exe; then
2947    # Don't use ln at all; we don't have any links
2948    as_ln_s='cp -p'
2949  else
2950    as_ln_s='ln -s'
2951  fi
2952elif ln conf$$.file conf$$ 2>/dev/null; then
2953  as_ln_s=ln
2954else
2955  as_ln_s='cp -p'
2956fi
2957rm -f conf$$ conf$$.exe conf$$.file
2958
2959if mkdir -p . 2>/dev/null; then
2960  as_mkdir_p=:
2961else
2962  test -d ./-p && rmdir ./-p
2963  as_mkdir_p=false
2964fi
2965
2966as_executable_p="test -f"
2967
2968# Sed expression to map a string onto a valid CPP name.
2969as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
2970
2971# Sed expression to map a string onto a valid variable name.
2972as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
2973
2974
2975# IFS
2976# We need space, tab and new line, in precisely that order.
2977as_nl='
2978'
2979IFS="   $as_nl"
2980
2981# CDPATH.
2982$as_unset CDPATH
2983
2984exec 6>&1
2985
2986# Open the log real soon, to keep \$[0] and so on meaningful, and to
2987# report actual input values of CONFIG_FILES etc. instead of their
2988# values after options handling.  Logging --version etc. is OK.
2989exec 5>>config.log
2990{
2991  echo
2992  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
2993## Running $as_me. ##
2994_ASBOX
2995} >&5
2996cat >&5 <<_CSEOF
2997
2998This file was extended by bap $as_me 1.2, which was
2999generated by GNU Autoconf 2.59.  Invocation command line was
3000
3001  CONFIG_FILES    = $CONFIG_FILES
3002  CONFIG_HEADERS  = $CONFIG_HEADERS
3003  CONFIG_LINKS    = $CONFIG_LINKS
3004  CONFIG_COMMANDS = $CONFIG_COMMANDS
3005  $ $0 $@
3006
3007_CSEOF
3008echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3009echo >&5
3010_ACEOF
3011
3012# Files that config.status was made for.
3013if test -n "$ac_config_files"; then
3014  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3015fi
3016
3017if test -n "$ac_config_headers"; then
3018  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3019fi
3020
3021if test -n "$ac_config_links"; then
3022  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3023fi
3024
3025if test -n "$ac_config_commands"; then
3026  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3027fi
3028
3029cat >>$CONFIG_STATUS <<\_ACEOF
3030
3031ac_cs_usage="\
3032\`$as_me' instantiates files from templates according to the
3033current configuration.
3034
3035Usage: $0 [OPTIONS] [FILE]...
3036
3037  -h, --help       print this help, then exit
3038  -V, --version    print version number, then exit
3039  -q, --quiet      do not print progress messages
3040  -d, --debug      don't remove temporary files
3041      --recheck    update $as_me by reconfiguring in the same conditions
3042  --file=FILE[:TEMPLATE]
3043                   instantiate the configuration file FILE
3044  --header=FILE[:TEMPLATE]
3045                   instantiate the configuration header FILE
3046
3047Configuration files:
3048$config_files
3049
3050Configuration headers:
3051$config_headers
3052
3053Report bugs to <bug-autoconf@gnu.org>."
3054_ACEOF
3055
3056cat >>$CONFIG_STATUS <<_ACEOF
3057ac_cs_version="\\
3058bap config.status 1.2
3059configured by $0, generated by GNU Autoconf 2.59,
3060  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3061
3062Copyright (C) 2003 Free Software Foundation, Inc.
3063This config.status script is free software; the Free Software Foundation
3064gives unlimited permission to copy, distribute and modify it."
3065srcdir=$srcdir
3066_ACEOF
3067
3068cat >>$CONFIG_STATUS <<\_ACEOF
3069# If no file are specified by the user, then we need to provide default
3070# value.  By we need to know if files were specified by the user.
3071ac_need_defaults=:
3072while test $# != 0
3073do
3074  case $1 in
3075  --*=*)
3076    ac_option=`expr "x$1" : 'x\([^=]*\)='`
3077    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3078    ac_shift=:
3079    ;;
3080  -*)
3081    ac_option=$1
3082    ac_optarg=$2
3083    ac_shift=shift
3084    ;;
3085  *) # This is not an option, so the user has probably given explicit
3086     # arguments.
3087     ac_option=$1
3088     ac_need_defaults=false;;
3089  esac
3090
3091  case $ac_option in
3092  # Handling of the options.
3093_ACEOF
3094cat >>$CONFIG_STATUS <<\_ACEOF
3095  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3096    ac_cs_recheck=: ;;
3097  --version | --vers* | -V )
3098    echo "$ac_cs_version"; exit 0 ;;
3099  --he | --h)
3100    # Conflict between --help and --header
3101    { { echo "$as_me:$LINENO: error: ambiguous option: $1
3102Try \`$0 --help' for more information." >&5
3103echo "$as_me: error: ambiguous option: $1
3104Try \`$0 --help' for more information." >&2;}
3105   { (exit 1); exit 1; }; };;
3106  --help | --hel | -h )
3107    echo "$ac_cs_usage"; exit 0 ;;
3108  --debug | --d* | -d )
3109    debug=: ;;
3110  --file | --fil | --fi | --f )
3111    $ac_shift
3112    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3113    ac_need_defaults=false;;
3114  --header | --heade | --head | --hea )
3115    $ac_shift
3116    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3117    ac_need_defaults=false;;
3118  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3119  | -silent | --silent | --silen | --sile | --sil | --si | --s)
3120    ac_cs_silent=: ;;
3121
3122  # This is an error.
3123  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3124Try \`$0 --help' for more information." >&5
3125echo "$as_me: error: unrecognized option: $1
3126Try \`$0 --help' for more information." >&2;}
3127   { (exit 1); exit 1; }; } ;;
3128
3129  *) ac_config_targets="$ac_config_targets $1" ;;
3130
3131  esac
3132  shift
3133done
3134
3135ac_configure_extra_args=
3136
3137if $ac_cs_silent; then
3138  exec 6>/dev/null
3139  ac_configure_extra_args="$ac_configure_extra_args --silent"
3140fi
3141
3142_ACEOF
3143cat >>$CONFIG_STATUS <<_ACEOF
3144if \$ac_cs_recheck; then
3145  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3146  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3147fi
3148
3149_ACEOF
3150
3151
3152
3153
3154
3155cat >>$CONFIG_STATUS <<\_ACEOF
3156for ac_config_target in $ac_config_targets
3157do
3158  case "$ac_config_target" in
3159  # Handling of arguments.
3160  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3161  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
3162  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3163echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3164   { (exit 1); exit 1; }; };;
3165  esac
3166done
3167
3168# If the user did not use the arguments to specify the items to instantiate,
3169# then the envvar interface is used.  Set only those that are not.
3170# We use the long form for the default assignment because of an extremely
3171# bizarre bug on SunOS 4.1.3.
3172if $ac_need_defaults; then
3173  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3174  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3175fi
3176
3177# Have a temporary directory for convenience.  Make it in the build tree
3178# simply because there is no reason to put it here, and in addition,
3179# creating and moving files from /tmp can sometimes cause problems.
3180# Create a temporary directory, and hook for its removal unless debugging.
3181$debug ||
3182{
3183  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3184  trap '{ (exit 1); exit 1; }' 1 2 13 15
3185}
3186
3187# Create a (secure) tmp directory for tmp files.
3188
3189{
3190  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
3191  test -n "$tmp" && test -d "$tmp"
3192}  ||
3193{
3194  tmp=./confstat$$-$RANDOM
3195  (umask 077 && mkdir $tmp)
3196} ||
3197{
3198   echo "$me: cannot create a temporary directory in ." >&2
3199   { (exit 1); exit 1; }
3200}
3201
3202_ACEOF
3203
3204cat >>$CONFIG_STATUS <<_ACEOF
3205
3206#
3207# CONFIG_FILES section.
3208#
3209
3210# No need to generate the scripts if there are no CONFIG_FILES.
3211# This happens for instance when ./config.status config.h
3212if test -n "\$CONFIG_FILES"; then
3213  # Protect against being on the right side of a sed subst in config.status.
3214  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3215   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3216s,@SHELL@,$SHELL,;t t
3217s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3218s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3219s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3220s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3221s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3222s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3223s,@exec_prefix@,$exec_prefix,;t t
3224s,@prefix@,$prefix,;t t
3225s,@program_transform_name@,$program_transform_name,;t t
3226s,@bindir@,$bindir,;t t
3227s,@sbindir@,$sbindir,;t t
3228s,@libexecdir@,$libexecdir,;t t
3229s,@datadir@,$datadir,;t t
3230s,@sysconfdir@,$sysconfdir,;t t
3231s,@sharedstatedir@,$sharedstatedir,;t t
3232s,@localstatedir@,$localstatedir,;t t
3233s,@libdir@,$libdir,;t t
3234s,@includedir@,$includedir,;t t
3235s,@oldincludedir@,$oldincludedir,;t t
3236s,@infodir@,$infodir,;t t
3237s,@mandir@,$mandir,;t t
3238s,@build_alias@,$build_alias,;t t
3239s,@host_alias@,$host_alias,;t t
3240s,@target_alias@,$target_alias,;t t
3241s,@DEFS@,$DEFS,;t t
3242s,@ECHO_C@,$ECHO_C,;t t
3243s,@ECHO_N@,$ECHO_N,;t t
3244s,@ECHO_T@,$ECHO_T,;t t
3245s,@LIBS@,$LIBS,;t t
3246s,@CC@,$CC,;t t
3247s,@CFLAGS@,$CFLAGS,;t t
3248s,@LDFLAGS@,$LDFLAGS,;t t
3249s,@CPPFLAGS@,$CPPFLAGS,;t t
3250s,@ac_ct_CC@,$ac_ct_CC,;t t
3251s,@EXEEXT@,$EXEEXT,;t t
3252s,@OBJEXT@,$OBJEXT,;t t
3253s,@YACC@,$YACC,;t t
3254s,@LEX@,$LEX,;t t
3255s,@LEXLIB@,$LEXLIB,;t t
3256s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
3257s,@FLEXFLAGS@,$FLEXFLAGS,;t t
3258s,@LIBOBJS@,$LIBOBJS,;t t
3259s,@LTLIBOBJS@,$LTLIBOBJS,;t t
3260CEOF
3261
3262_ACEOF
3263
3264  cat >>$CONFIG_STATUS <<\_ACEOF
3265  # Split the substitutions into bite-sized pieces for seds with
3266  # small command number limits, like on Digital OSF/1 and HP-UX.
3267  ac_max_sed_lines=48
3268  ac_sed_frag=1 # Number of current file.
3269  ac_beg=1 # First line for current file.
3270  ac_end=$ac_max_sed_lines # Line after last line for current file.
3271  ac_more_lines=:
3272  ac_sed_cmds=
3273  while $ac_more_lines; do
3274    if test $ac_beg -gt 1; then
3275      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3276    else
3277      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3278    fi
3279    if test ! -s $tmp/subs.frag; then
3280      ac_more_lines=false
3281    else
3282      # The purpose of the label and of the branching condition is to
3283      # speed up the sed processing (if there are no `@' at all, there
3284      # is no need to browse any of the substitutions).
3285      # These are the two extra sed commands mentioned above.
3286      (echo ':t
3287  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3288      if test -z "$ac_sed_cmds"; then
3289        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3290      else
3291        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3292      fi
3293      ac_sed_frag=`expr $ac_sed_frag + 1`
3294      ac_beg=$ac_end
3295      ac_end=`expr $ac_end + $ac_max_sed_lines`
3296    fi
3297  done
3298  if test -z "$ac_sed_cmds"; then
3299    ac_sed_cmds=cat
3300  fi
3301fi # test -n "$CONFIG_FILES"
3302
3303_ACEOF
3304cat >>$CONFIG_STATUS <<\_ACEOF
3305for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3306  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3307  case $ac_file in
3308  - | *:- | *:-:* ) # input from stdin
3309        cat >$tmp/stdin
3310        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3311        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3312  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3313        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3314  * )   ac_file_in=$ac_file.in ;;
3315  esac
3316
3317  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3318  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
3319$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3320         X"$ac_file" : 'X\(//\)[^/]' \| \
3321         X"$ac_file" : 'X\(//\)$' \| \
3322         X"$ac_file" : 'X\(/\)' \| \
3323         .     : '\(.\)' 2>/dev/null ||
3324echo X"$ac_file" |
3325    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3326          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3327          /^X\(\/\/\)$/{ s//\1/; q; }
3328          /^X\(\/\).*/{ s//\1/; q; }
3329          s/.*/./; q'`
3330  { if $as_mkdir_p; then
3331    mkdir -p "$ac_dir"
3332  else
3333    as_dir="$ac_dir"
3334    as_dirs=
3335    while test ! -d "$as_dir"; do
3336      as_dirs="$as_dir $as_dirs"
3337      as_dir=`(dirname "$as_dir") 2>/dev/null ||
3338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3339         X"$as_dir" : 'X\(//\)[^/]' \| \
3340         X"$as_dir" : 'X\(//\)$' \| \
3341         X"$as_dir" : 'X\(/\)' \| \
3342         .     : '\(.\)' 2>/dev/null ||
3343echo X"$as_dir" |
3344    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3345          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3346          /^X\(\/\/\)$/{ s//\1/; q; }
3347          /^X\(\/\).*/{ s//\1/; q; }
3348          s/.*/./; q'`
3349    done
3350    test ! -n "$as_dirs" || mkdir $as_dirs
3351  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
3352echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
3353   { (exit 1); exit 1; }; }; }
3354
3355  ac_builddir=.
3356
3357if test "$ac_dir" != .; then
3358  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
3359  # A "../" for each directory in $ac_dir_suffix.
3360  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
3361else
3362  ac_dir_suffix= ac_top_builddir=
3363fi
3364
3365case $srcdir in
3366  .)  # No --srcdir option.  We are building in place.
3367    ac_srcdir=.
3368    if test -z "$ac_top_builddir"; then
3369       ac_top_srcdir=.
3370    else
3371       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
3372    fi ;;
3373  [\\/]* | ?:[\\/]* )  # Absolute path.
3374    ac_srcdir=$srcdir$ac_dir_suffix;
3375    ac_top_srcdir=$srcdir ;;
3376  *) # Relative path.
3377    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
3378    ac_top_srcdir=$ac_top_builddir$srcdir ;;
3379esac
3380
3381# Do not use `cd foo && pwd` to compute absolute paths, because
3382# the directories may not exist.
3383case `pwd` in
3384.) ac_abs_builddir="$ac_dir";;
3385*)
3386  case "$ac_dir" in
3387  .) ac_abs_builddir=`pwd`;;
3388  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
3389  *) ac_abs_builddir=`pwd`/"$ac_dir";;
3390  esac;;
3391esac
3392case $ac_abs_builddir in
3393.) ac_abs_top_builddir=${ac_top_builddir}.;;
3394*)
3395  case ${ac_top_builddir}. in
3396  .) ac_abs_top_builddir=$ac_abs_builddir;;
3397  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
3398  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
3399  esac;;
3400esac
3401case $ac_abs_builddir in
3402.) ac_abs_srcdir=$ac_srcdir;;
3403*)
3404  case $ac_srcdir in
3405  .) ac_abs_srcdir=$ac_abs_builddir;;
3406  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
3407  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
3408  esac;;
3409esac
3410case $ac_abs_builddir in
3411.) ac_abs_top_srcdir=$ac_top_srcdir;;
3412*)
3413  case $ac_top_srcdir in
3414  .) ac_abs_top_srcdir=$ac_abs_builddir;;
3415  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
3416  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
3417  esac;;
3418esac
3419
3420
3421
3422  if test x"$ac_file" != x-; then
3423    { echo "$as_me:$LINENO: creating $ac_file" >&5
3424echo "$as_me: creating $ac_file" >&6;}
3425    rm -f "$ac_file"
3426  fi
3427  # Let's still pretend it is `configure' which instantiates (i.e., don't
3428  # use $as_me), people would be surprised to read:
3429  #    /* config.h.  Generated by config.status.  */
3430  if test x"$ac_file" = x-; then
3431    configure_input=
3432  else
3433    configure_input="$ac_file.  "
3434  fi
3435  configure_input=$configure_input"Generated from `echo $ac_file_in |
3436                                     sed 's,.*/,,'` by configure."
3437
3438  # First look for the input files in the build tree, otherwise in the
3439  # src tree.
3440  ac_file_inputs=`IFS=:
3441    for f in $ac_file_in; do
3442      case $f in
3443      -) echo $tmp/stdin ;;
3444      [\\/$]*)
3445         # Absolute (can't be DOS-style, as IFS=:)
3446         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3447echo "$as_me: error: cannot find input file: $f" >&2;}
3448   { (exit 1); exit 1; }; }
3449         echo "$f";;
3450      *) # Relative
3451         if test -f "$f"; then
3452           # Build tree
3453           echo "$f"
3454         elif test -f "$srcdir/$f"; then
3455           # Source tree
3456           echo "$srcdir/$f"
3457         else
3458           # /dev/null tree
3459           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3460echo "$as_me: error: cannot find input file: $f" >&2;}
3461   { (exit 1); exit 1; }; }
3462         fi;;
3463      esac
3464    done` || { (exit 1); exit 1; }
3465_ACEOF
3466cat >>$CONFIG_STATUS <<_ACEOF
3467  sed "$ac_vpsub
3468$extrasub
3469_ACEOF
3470cat >>$CONFIG_STATUS <<\_ACEOF
3471:t
3472/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3473s,@configure_input@,$configure_input,;t t
3474s,@srcdir@,$ac_srcdir,;t t
3475s,@abs_srcdir@,$ac_abs_srcdir,;t t
3476s,@top_srcdir@,$ac_top_srcdir,;t t
3477s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
3478s,@builddir@,$ac_builddir,;t t
3479s,@abs_builddir@,$ac_abs_builddir,;t t
3480s,@top_builddir@,$ac_top_builddir,;t t
3481s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
3482" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3483  rm -f $tmp/stdin
3484  if test x"$ac_file" != x-; then
3485    mv $tmp/out $ac_file
3486  else
3487    cat $tmp/out
3488    rm -f $tmp/out
3489  fi
3490
3491done
3492_ACEOF
3493cat >>$CONFIG_STATUS <<\_ACEOF
3494
3495#
3496# CONFIG_HEADER section.
3497#
3498
3499# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3500# NAME is the cpp macro being defined and VALUE is the value it is being given.
3501#
3502# ac_d sets the value in "#define NAME VALUE" lines.
3503ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
3504ac_dB='[         ].*$,\1#\2'
3505ac_dC=' '
3506ac_dD=',;t'
3507# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3508ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3509ac_uB='$,\1#\2define\3'
3510ac_uC=' '
3511ac_uD=',;t'
3512
3513for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
3514  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3515  case $ac_file in
3516  - | *:- | *:-:* ) # input from stdin
3517        cat >$tmp/stdin
3518        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3519        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3520  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3521        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3522  * )   ac_file_in=$ac_file.in ;;
3523  esac
3524
3525  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
3526echo "$as_me: creating $ac_file" >&6;}
3527
3528  # First look for the input files in the build tree, otherwise in the
3529  # src tree.
3530  ac_file_inputs=`IFS=:
3531    for f in $ac_file_in; do
3532      case $f in
3533      -) echo $tmp/stdin ;;
3534      [\\/$]*)
3535         # Absolute (can't be DOS-style, as IFS=:)
3536         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3537echo "$as_me: error: cannot find input file: $f" >&2;}
3538   { (exit 1); exit 1; }; }
3539         # Do quote $f, to prevent DOS paths from being IFS'd.
3540         echo "$f";;
3541      *) # Relative
3542         if test -f "$f"; then
3543           # Build tree
3544           echo "$f"
3545         elif test -f "$srcdir/$f"; then
3546           # Source tree
3547           echo "$srcdir/$f"
3548         else
3549           # /dev/null tree
3550           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3551echo "$as_me: error: cannot find input file: $f" >&2;}
3552   { (exit 1); exit 1; }; }
3553         fi;;
3554      esac
3555    done` || { (exit 1); exit 1; }
3556  # Remove the trailing spaces.
3557  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
3558
3559_ACEOF
3560
3561# Transform confdefs.h into two sed scripts, `conftest.defines' and
3562# `conftest.undefs', that substitutes the proper values into
3563# config.h.in to produce config.h.  The first handles `#define'
3564# templates, and the second `#undef' templates.
3565# And first: Protect against being on the right side of a sed subst in
3566# config.status.  Protect against being in an unquoted here document
3567# in config.status.
3568rm -f conftest.defines conftest.undefs
3569# Using a here document instead of a string reduces the quoting nightmare.
3570# Putting comments in sed scripts is not portable.
3571#
3572# `end' is used to avoid that the second main sed command (meant for
3573# 0-ary CPP macros) applies to n-ary macro definitions.
3574# See the Autoconf documentation for `clear'.
3575cat >confdef2sed.sed <<\_ACEOF
3576s/[\\&,]/\\&/g
3577s,[\\$`],\\&,g
3578t clear
3579: clear
3580s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
3581t end
3582s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
3583: end
3584_ACEOF
3585# If some macros were called several times there might be several times
3586# the same #defines, which is useless.  Nevertheless, we may not want to
3587# sort them, since we want the *last* AC-DEFINE to be honored.
3588uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
3589sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
3590rm -f confdef2sed.sed
3591
3592# This sed command replaces #undef with comments.  This is necessary, for
3593# example, in the case of _POSIX_SOURCE, which is predefined and required
3594# on some systems where configure will not decide to define it.
3595cat >>conftest.undefs <<\_ACEOF
3596s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
3597_ACEOF
3598
3599# Break up conftest.defines because some shells have a limit on the size
3600# of here documents, and old seds have small limits too (100 cmds).
3601echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
3602echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
3603echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
3604echo '  :' >>$CONFIG_STATUS
3605rm -f conftest.tail
3606while grep . conftest.defines >/dev/null
3607do
3608  # Write a limited-size here document to $tmp/defines.sed.
3609  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
3610  # Speed up: don't consider the non `#define' lines.
3611  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
3612  # Work around the forget-to-reset-the-flag bug.
3613  echo 't clr' >>$CONFIG_STATUS
3614  echo ': clr' >>$CONFIG_STATUS
3615  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
3616  echo 'CEOF
3617  sed -f $tmp/defines.sed $tmp/in >$tmp/out
3618  rm -f $tmp/in
3619  mv $tmp/out $tmp/in
3620' >>$CONFIG_STATUS
3621  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
3622  rm -f conftest.defines
3623  mv conftest.tail conftest.defines
3624done
3625rm -f conftest.defines
3626echo '  fi # grep' >>$CONFIG_STATUS
3627echo >>$CONFIG_STATUS
3628
3629# Break up conftest.undefs because some shells have a limit on the size
3630# of here documents, and old seds have small limits too (100 cmds).
3631echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
3632rm -f conftest.tail
3633while grep . conftest.undefs >/dev/null
3634do
3635  # Write a limited-size here document to $tmp/undefs.sed.
3636  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
3637  # Speed up: don't consider the non `#undef'
3638  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
3639  # Work around the forget-to-reset-the-flag bug.
3640  echo 't clr' >>$CONFIG_STATUS
3641  echo ': clr' >>$CONFIG_STATUS
3642  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
3643  echo 'CEOF
3644  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
3645  rm -f $tmp/in
3646  mv $tmp/out $tmp/in
3647' >>$CONFIG_STATUS
3648  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
3649  rm -f conftest.undefs
3650  mv conftest.tail conftest.undefs
3651done
3652rm -f conftest.undefs
3653
3654cat >>$CONFIG_STATUS <<\_ACEOF
3655  # Let's still pretend it is `configure' which instantiates (i.e., don't
3656  # use $as_me), people would be surprised to read:
3657  #    /* config.h.  Generated by config.status.  */
3658  if test x"$ac_file" = x-; then
3659    echo "/* Generated by configure.  */" >$tmp/config.h
3660  else
3661    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
3662  fi
3663  cat $tmp/in >>$tmp/config.h
3664  rm -f $tmp/in
3665  if test x"$ac_file" != x-; then
3666    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
3667      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
3668echo "$as_me: $ac_file is unchanged" >&6;}
3669    else
3670      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
3671$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3672         X"$ac_file" : 'X\(//\)[^/]' \| \
3673         X"$ac_file" : 'X\(//\)$' \| \
3674         X"$ac_file" : 'X\(/\)' \| \
3675         .     : '\(.\)' 2>/dev/null ||
3676echo X"$ac_file" |
3677    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3678          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3679          /^X\(\/\/\)$/{ s//\1/; q; }
3680          /^X\(\/\).*/{ s//\1/; q; }
3681          s/.*/./; q'`
3682      { if $as_mkdir_p; then
3683    mkdir -p "$ac_dir"
3684  else
3685    as_dir="$ac_dir"
3686    as_dirs=
3687    while test ! -d "$as_dir"; do
3688      as_dirs="$as_dir $as_dirs"
3689      as_dir=`(dirname "$as_dir") 2>/dev/null ||
3690$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3691         X"$as_dir" : 'X\(//\)[^/]' \| \
3692         X"$as_dir" : 'X\(//\)$' \| \
3693         X"$as_dir" : 'X\(/\)' \| \
3694         .     : '\(.\)' 2>/dev/null ||
3695echo X"$as_dir" |
3696    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3697          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3698          /^X\(\/\/\)$/{ s//\1/; q; }
3699          /^X\(\/\).*/{ s//\1/; q; }
3700          s/.*/./; q'`
3701    done
3702    test ! -n "$as_dirs" || mkdir $as_dirs
3703  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
3704echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
3705   { (exit 1); exit 1; }; }; }
3706
3707      rm -f $ac_file
3708      mv $tmp/config.h $ac_file
3709    fi
3710  else
3711    cat $tmp/config.h
3712    rm -f $tmp/config.h
3713  fi
3714done
3715_ACEOF
3716
3717cat >>$CONFIG_STATUS <<\_ACEOF
3718
3719{ (exit 0); exit 0; }
3720_ACEOF
3721chmod +x $CONFIG_STATUS
3722ac_clean_files=$ac_clean_files_save
3723
3724
3725# configure is writing to config.log, and then calls config.status.
3726# config.status does its own redirection, appending to config.log.
3727# Unfortunately, on DOS this fails, as config.log is still kept open
3728# by configure, so config.status won't be able to write to it; its
3729# output is simply discarded.  So we exec the FD to /dev/null,
3730# effectively closing config.log, so it can be properly (re)opened and
3731# appended to by config.status.  When coming back to configure, we
3732# need to make the FD available again.
3733if test "$no_create" != yes; then
3734  ac_cs_success=:
3735  ac_config_status_args=
3736  test "$silent" = yes &&
3737    ac_config_status_args="$ac_config_status_args --quiet"
3738  exec 5>/dev/null
3739  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3740  exec 5>>config.log
3741  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3742  # would make configure fail if this is the last instruction.
3743  $ac_cs_success || { (exit 1); exit 1; }
3744fi
3745
Note: See TracBrowser for help on using the repository browser.