Moved some global data into InputData. Not all there yet.
[external/ragel.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="ragel/main.cpp"
580 ac_subst_vars='SHELL
581 PATH_SEPARATOR
582 PACKAGE_NAME
583 PACKAGE_TARNAME
584 PACKAGE_VERSION
585 PACKAGE_STRING
586 PACKAGE_BUGREPORT
587 exec_prefix
588 prefix
589 program_transform_name
590 bindir
591 sbindir
592 libexecdir
593 datarootdir
594 datadir
595 sysconfdir
596 sharedstatedir
597 localstatedir
598 includedir
599 oldincludedir
600 docdir
601 infodir
602 htmldir
603 dvidir
604 pdfdir
605 psdir
606 libdir
607 localedir
608 mandir
609 DEFS
610 ECHO_C
611 ECHO_N
612 ECHO_T
613 LIBS
614 build_alias
615 host_alias
616 target_alias
617 BUILD_PARSERS
618 CC
619 CFLAGS
620 LDFLAGS
621 CPPFLAGS
622 ac_ct_CC
623 EXEEXT
624 OBJEXT
625 CXX
626 CXXFLAGS
627 ac_ct_CXX
628 AR
629 RANLIB
630 SET_MAKE
631 RAGEL
632 KELBT
633 GDC
634 GOBJC
635 JAVAC
636 TXL
637 RUBY
638 GMCS
639 LIBOBJS
640 LTLIBOBJS'
641 ac_subst_files=''
642       ac_precious_vars='build_alias
643 host_alias
644 target_alias
645 CC
646 CFLAGS
647 LDFLAGS
648 LIBS
649 CPPFLAGS
650 CXX
651 CXXFLAGS
652 CCC'
653
654
655 # Initialize some variables set by options.
656 ac_init_help=
657 ac_init_version=false
658 # The variables have the same names as the options, with
659 # dashes changed to underlines.
660 cache_file=/dev/null
661 exec_prefix=NONE
662 no_create=
663 no_recursion=
664 prefix=NONE
665 program_prefix=NONE
666 program_suffix=NONE
667 program_transform_name=s,x,x,
668 silent=
669 site=
670 srcdir=
671 verbose=
672 x_includes=NONE
673 x_libraries=NONE
674
675 # Installation directory options.
676 # These are left unexpanded so users can "make install exec_prefix=/foo"
677 # and all the variables that are supposed to be based on exec_prefix
678 # by default will actually change.
679 # Use braces instead of parens because sh, perl, etc. also accept them.
680 # (The list follows the same order as the GNU Coding Standards.)
681 bindir='${exec_prefix}/bin'
682 sbindir='${exec_prefix}/sbin'
683 libexecdir='${exec_prefix}/libexec'
684 datarootdir='${prefix}/share'
685 datadir='${datarootdir}'
686 sysconfdir='${prefix}/etc'
687 sharedstatedir='${prefix}/com'
688 localstatedir='${prefix}/var'
689 includedir='${prefix}/include'
690 oldincludedir='/usr/include'
691 docdir='${datarootdir}/doc/${PACKAGE}'
692 infodir='${datarootdir}/info'
693 htmldir='${docdir}'
694 dvidir='${docdir}'
695 pdfdir='${docdir}'
696 psdir='${docdir}'
697 libdir='${exec_prefix}/lib'
698 localedir='${datarootdir}/locale'
699 mandir='${datarootdir}/man'
700
701 ac_prev=
702 ac_dashdash=
703 for ac_option
704 do
705   # If the previous option needs an argument, assign it.
706   if test -n "$ac_prev"; then
707     eval $ac_prev=\$ac_option
708     ac_prev=
709     continue
710   fi
711
712   case $ac_option in
713   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
714   *)    ac_optarg=yes ;;
715   esac
716
717   # Accept the important Cygnus configure options, so we can diagnose typos.
718
719   case $ac_dashdash$ac_option in
720   --)
721     ac_dashdash=yes ;;
722
723   -bindir | --bindir | --bindi | --bind | --bin | --bi)
724     ac_prev=bindir ;;
725   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
726     bindir=$ac_optarg ;;
727
728   -build | --build | --buil | --bui | --bu)
729     ac_prev=build_alias ;;
730   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
731     build_alias=$ac_optarg ;;
732
733   -cache-file | --cache-file | --cache-fil | --cache-fi \
734   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
735     ac_prev=cache_file ;;
736   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
737   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
738     cache_file=$ac_optarg ;;
739
740   --config-cache | -C)
741     cache_file=config.cache ;;
742
743   -datadir | --datadir | --datadi | --datad)
744     ac_prev=datadir ;;
745   -datadir=* | --datadir=* | --datadi=* | --datad=*)
746     datadir=$ac_optarg ;;
747
748   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
749   | --dataroo | --dataro | --datar)
750     ac_prev=datarootdir ;;
751   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
752   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
753     datarootdir=$ac_optarg ;;
754
755   -disable-* | --disable-*)
756     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
757     # Reject names that are not valid shell variable names.
758     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
759       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
760    { (exit 1); exit 1; }; }
761     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
762     eval enable_$ac_feature=no ;;
763
764   -docdir | --docdir | --docdi | --doc | --do)
765     ac_prev=docdir ;;
766   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
767     docdir=$ac_optarg ;;
768
769   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
770     ac_prev=dvidir ;;
771   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
772     dvidir=$ac_optarg ;;
773
774   -enable-* | --enable-*)
775     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
776     # Reject names that are not valid shell variable names.
777     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
778       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
779    { (exit 1); exit 1; }; }
780     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
781     eval enable_$ac_feature=\$ac_optarg ;;
782
783   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
784   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
785   | --exec | --exe | --ex)
786     ac_prev=exec_prefix ;;
787   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
788   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
789   | --exec=* | --exe=* | --ex=*)
790     exec_prefix=$ac_optarg ;;
791
792   -gas | --gas | --ga | --g)
793     # Obsolete; use --with-gas.
794     with_gas=yes ;;
795
796   -help | --help | --hel | --he | -h)
797     ac_init_help=long ;;
798   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
799     ac_init_help=recursive ;;
800   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
801     ac_init_help=short ;;
802
803   -host | --host | --hos | --ho)
804     ac_prev=host_alias ;;
805   -host=* | --host=* | --hos=* | --ho=*)
806     host_alias=$ac_optarg ;;
807
808   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
809     ac_prev=htmldir ;;
810   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
811   | --ht=*)
812     htmldir=$ac_optarg ;;
813
814   -includedir | --includedir | --includedi | --included | --include \
815   | --includ | --inclu | --incl | --inc)
816     ac_prev=includedir ;;
817   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
818   | --includ=* | --inclu=* | --incl=* | --inc=*)
819     includedir=$ac_optarg ;;
820
821   -infodir | --infodir | --infodi | --infod | --info | --inf)
822     ac_prev=infodir ;;
823   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
824     infodir=$ac_optarg ;;
825
826   -libdir | --libdir | --libdi | --libd)
827     ac_prev=libdir ;;
828   -libdir=* | --libdir=* | --libdi=* | --libd=*)
829     libdir=$ac_optarg ;;
830
831   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
832   | --libexe | --libex | --libe)
833     ac_prev=libexecdir ;;
834   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
835   | --libexe=* | --libex=* | --libe=*)
836     libexecdir=$ac_optarg ;;
837
838   -localedir | --localedir | --localedi | --localed | --locale)
839     ac_prev=localedir ;;
840   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
841     localedir=$ac_optarg ;;
842
843   -localstatedir | --localstatedir | --localstatedi | --localstated \
844   | --localstate | --localstat | --localsta | --localst | --locals)
845     ac_prev=localstatedir ;;
846   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
847   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
848     localstatedir=$ac_optarg ;;
849
850   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
851     ac_prev=mandir ;;
852   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
853     mandir=$ac_optarg ;;
854
855   -nfp | --nfp | --nf)
856     # Obsolete; use --without-fp.
857     with_fp=no ;;
858
859   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
860   | --no-cr | --no-c | -n)
861     no_create=yes ;;
862
863   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
864   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
865     no_recursion=yes ;;
866
867   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
868   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
869   | --oldin | --oldi | --old | --ol | --o)
870     ac_prev=oldincludedir ;;
871   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
872   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
873   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
874     oldincludedir=$ac_optarg ;;
875
876   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
877     ac_prev=prefix ;;
878   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
879     prefix=$ac_optarg ;;
880
881   -program-prefix | --program-prefix | --program-prefi | --program-pref \
882   | --program-pre | --program-pr | --program-p)
883     ac_prev=program_prefix ;;
884   -program-prefix=* | --program-prefix=* | --program-prefi=* \
885   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
886     program_prefix=$ac_optarg ;;
887
888   -program-suffix | --program-suffix | --program-suffi | --program-suff \
889   | --program-suf | --program-su | --program-s)
890     ac_prev=program_suffix ;;
891   -program-suffix=* | --program-suffix=* | --program-suffi=* \
892   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
893     program_suffix=$ac_optarg ;;
894
895   -program-transform-name | --program-transform-name \
896   | --program-transform-nam | --program-transform-na \
897   | --program-transform-n | --program-transform- \
898   | --program-transform | --program-transfor \
899   | --program-transfo | --program-transf \
900   | --program-trans | --program-tran \
901   | --progr-tra | --program-tr | --program-t)
902     ac_prev=program_transform_name ;;
903   -program-transform-name=* | --program-transform-name=* \
904   | --program-transform-nam=* | --program-transform-na=* \
905   | --program-transform-n=* | --program-transform-=* \
906   | --program-transform=* | --program-transfor=* \
907   | --program-transfo=* | --program-transf=* \
908   | --program-trans=* | --program-tran=* \
909   | --progr-tra=* | --program-tr=* | --program-t=*)
910     program_transform_name=$ac_optarg ;;
911
912   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
913     ac_prev=pdfdir ;;
914   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
915     pdfdir=$ac_optarg ;;
916
917   -psdir | --psdir | --psdi | --psd | --ps)
918     ac_prev=psdir ;;
919   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
920     psdir=$ac_optarg ;;
921
922   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
923   | -silent | --silent | --silen | --sile | --sil)
924     silent=yes ;;
925
926   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
927     ac_prev=sbindir ;;
928   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
929   | --sbi=* | --sb=*)
930     sbindir=$ac_optarg ;;
931
932   -sharedstatedir | --sharedstatedir | --sharedstatedi \
933   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
934   | --sharedst | --shareds | --shared | --share | --shar \
935   | --sha | --sh)
936     ac_prev=sharedstatedir ;;
937   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
938   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
939   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
940   | --sha=* | --sh=*)
941     sharedstatedir=$ac_optarg ;;
942
943   -site | --site | --sit)
944     ac_prev=site ;;
945   -site=* | --site=* | --sit=*)
946     site=$ac_optarg ;;
947
948   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
949     ac_prev=srcdir ;;
950   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
951     srcdir=$ac_optarg ;;
952
953   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
954   | --syscon | --sysco | --sysc | --sys | --sy)
955     ac_prev=sysconfdir ;;
956   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
957   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
958     sysconfdir=$ac_optarg ;;
959
960   -target | --target | --targe | --targ | --tar | --ta | --t)
961     ac_prev=target_alias ;;
962   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
963     target_alias=$ac_optarg ;;
964
965   -v | -verbose | --verbose | --verbos | --verbo | --verb)
966     verbose=yes ;;
967
968   -version | --version | --versio | --versi | --vers | -V)
969     ac_init_version=: ;;
970
971   -with-* | --with-*)
972     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
973     # Reject names that are not valid shell variable names.
974     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
975       { echo "$as_me: error: invalid package name: $ac_package" >&2
976    { (exit 1); exit 1; }; }
977     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
978     eval with_$ac_package=\$ac_optarg ;;
979
980   -without-* | --without-*)
981     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
982     # Reject names that are not valid shell variable names.
983     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
984       { echo "$as_me: error: invalid package name: $ac_package" >&2
985    { (exit 1); exit 1; }; }
986     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
987     eval with_$ac_package=no ;;
988
989   --x)
990     # Obsolete; use --with-x.
991     with_x=yes ;;
992
993   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
994   | --x-incl | --x-inc | --x-in | --x-i)
995     ac_prev=x_includes ;;
996   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
997   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
998     x_includes=$ac_optarg ;;
999
1000   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1001   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1002     ac_prev=x_libraries ;;
1003   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1004   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1005     x_libraries=$ac_optarg ;;
1006
1007   -*) { echo "$as_me: error: unrecognized option: $ac_option
1008 Try \`$0 --help' for more information." >&2
1009    { (exit 1); exit 1; }; }
1010     ;;
1011
1012   *=*)
1013     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1014     # Reject names that are not valid shell variable names.
1015     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1016       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1017    { (exit 1); exit 1; }; }
1018     eval $ac_envvar=\$ac_optarg
1019     export $ac_envvar ;;
1020
1021   *)
1022     # FIXME: should be removed in autoconf 3.0.
1023     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1024     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1025       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1026     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1027     ;;
1028
1029   esac
1030 done
1031
1032 if test -n "$ac_prev"; then
1033   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1034   { echo "$as_me: error: missing argument to $ac_option" >&2
1035    { (exit 1); exit 1; }; }
1036 fi
1037
1038 # Be sure to have absolute directory names.
1039 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1040                 datadir sysconfdir sharedstatedir localstatedir includedir \
1041                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1042                 libdir localedir mandir
1043 do
1044   eval ac_val=\$$ac_var
1045   case $ac_val in
1046     [\\/$]* | ?:[\\/]* )  continue;;
1047     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1048   esac
1049   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1050    { (exit 1); exit 1; }; }
1051 done
1052
1053 # There might be people who depend on the old broken behavior: `$host'
1054 # used to hold the argument of --host etc.
1055 # FIXME: To remove some day.
1056 build=$build_alias
1057 host=$host_alias
1058 target=$target_alias
1059
1060 # FIXME: To remove some day.
1061 if test "x$host_alias" != x; then
1062   if test "x$build_alias" = x; then
1063     cross_compiling=maybe
1064     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1065     If a cross compiler is detected then cross compile mode will be used." >&2
1066   elif test "x$build_alias" != "x$host_alias"; then
1067     cross_compiling=yes
1068   fi
1069 fi
1070
1071 ac_tool_prefix=
1072 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1073
1074 test "$silent" = yes && exec 6>/dev/null
1075
1076
1077 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1078 ac_ls_di=`ls -di .` &&
1079 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1080   { echo "$as_me: error: Working directory cannot be determined" >&2
1081    { (exit 1); exit 1; }; }
1082 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1083   { echo "$as_me: error: pwd does not report name of working directory" >&2
1084    { (exit 1); exit 1; }; }
1085
1086
1087 # Find the source files, if location was not specified.
1088 if test -z "$srcdir"; then
1089   ac_srcdir_defaulted=yes
1090   # Try the directory containing this script, then the parent directory.
1091   ac_confdir=`$as_dirname -- "$0" ||
1092 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1093          X"$0" : 'X\(//\)[^/]' \| \
1094          X"$0" : 'X\(//\)$' \| \
1095          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1096 echo X"$0" |
1097     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1098             s//\1/
1099             q
1100           }
1101           /^X\(\/\/\)[^/].*/{
1102             s//\1/
1103             q
1104           }
1105           /^X\(\/\/\)$/{
1106             s//\1/
1107             q
1108           }
1109           /^X\(\/\).*/{
1110             s//\1/
1111             q
1112           }
1113           s/.*/./; q'`
1114   srcdir=$ac_confdir
1115   if test ! -r "$srcdir/$ac_unique_file"; then
1116     srcdir=..
1117   fi
1118 else
1119   ac_srcdir_defaulted=no
1120 fi
1121 if test ! -r "$srcdir/$ac_unique_file"; then
1122   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1123   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1124    { (exit 1); exit 1; }; }
1125 fi
1126 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1127 ac_abs_confdir=`(
1128         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1129    { (exit 1); exit 1; }; }
1130         pwd)`
1131 # When building in place, set srcdir=.
1132 if test "$ac_abs_confdir" = "$ac_pwd"; then
1133   srcdir=.
1134 fi
1135 # Remove unnecessary trailing slashes from srcdir.
1136 # Double slashes in file names in object file debugging info
1137 # mess up M-x gdb in Emacs.
1138 case $srcdir in
1139 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1140 esac
1141 for ac_var in $ac_precious_vars; do
1142   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1143   eval ac_env_${ac_var}_value=\$${ac_var}
1144   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1145   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1146 done
1147
1148 #
1149 # Report the --help message.
1150 #
1151 if test "$ac_init_help" = "long"; then
1152   # Omit some internal or obsolete options to make the list less imposing.
1153   # This message is too long to be a string in the A/UX 3.1 sh.
1154   cat <<_ACEOF
1155 \`configure' configures this package to adapt to many kinds of systems.
1156
1157 Usage: $0 [OPTION]... [VAR=VALUE]...
1158
1159 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1160 VAR=VALUE.  See below for descriptions of some of the useful variables.
1161
1162 Defaults for the options are specified in brackets.
1163
1164 Configuration:
1165   -h, --help              display this help and exit
1166       --help=short        display options specific to this package
1167       --help=recursive    display the short help of all the included packages
1168   -V, --version           display version information and exit
1169   -q, --quiet, --silent   do not print \`checking...' messages
1170       --cache-file=FILE   cache test results in FILE [disabled]
1171   -C, --config-cache      alias for \`--cache-file=config.cache'
1172   -n, --no-create         do not create output files
1173       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1174
1175 Installation directories:
1176   --prefix=PREFIX         install architecture-independent files in PREFIX
1177                           [$ac_default_prefix]
1178   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1179                           [PREFIX]
1180
1181 By default, \`make install' will install all the files in
1182 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1183 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1184 for instance \`--prefix=\$HOME'.
1185
1186 For better control, use the options below.
1187
1188 Fine tuning of the installation directories:
1189   --bindir=DIR           user executables [EPREFIX/bin]
1190   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1191   --libexecdir=DIR       program executables [EPREFIX/libexec]
1192   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1193   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1194   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1195   --libdir=DIR           object code libraries [EPREFIX/lib]
1196   --includedir=DIR       C header files [PREFIX/include]
1197   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1198   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1199   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1200   --infodir=DIR          info documentation [DATAROOTDIR/info]
1201   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1202   --mandir=DIR           man documentation [DATAROOTDIR/man]
1203   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1204   --htmldir=DIR          html documentation [DOCDIR]
1205   --dvidir=DIR           dvi documentation [DOCDIR]
1206   --pdfdir=DIR           pdf documentation [DOCDIR]
1207   --psdir=DIR            ps documentation [DOCDIR]
1208 _ACEOF
1209
1210   cat <<\_ACEOF
1211 _ACEOF
1212 fi
1213
1214 if test -n "$ac_init_help"; then
1215
1216   cat <<\_ACEOF
1217
1218 Some influential environment variables:
1219   CC          C compiler command
1220   CFLAGS      C compiler flags
1221   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1222               nonstandard directory <lib dir>
1223   LIBS        libraries to pass to the linker, e.g. -l<library>
1224   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1225               you have headers in a nonstandard directory <include dir>
1226   CXX         C++ compiler command
1227   CXXFLAGS    C++ compiler flags
1228
1229 Use these variables to override the choices made by `configure' or to help
1230 it to find libraries and programs with nonstandard names/locations.
1231
1232 _ACEOF
1233 ac_status=$?
1234 fi
1235
1236 if test "$ac_init_help" = "recursive"; then
1237   # If there are subdirs, report their specific --help.
1238   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1239     test -d "$ac_dir" || continue
1240     ac_builddir=.
1241
1242 case "$ac_dir" in
1243 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1244 *)
1245   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1246   # A ".." for each directory in $ac_dir_suffix.
1247   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1248   case $ac_top_builddir_sub in
1249   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1250   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1251   esac ;;
1252 esac
1253 ac_abs_top_builddir=$ac_pwd
1254 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1255 # for backward compatibility:
1256 ac_top_builddir=$ac_top_build_prefix
1257
1258 case $srcdir in
1259   .)  # We are building in place.
1260     ac_srcdir=.
1261     ac_top_srcdir=$ac_top_builddir_sub
1262     ac_abs_top_srcdir=$ac_pwd ;;
1263   [\\/]* | ?:[\\/]* )  # Absolute name.
1264     ac_srcdir=$srcdir$ac_dir_suffix;
1265     ac_top_srcdir=$srcdir
1266     ac_abs_top_srcdir=$srcdir ;;
1267   *) # Relative name.
1268     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1269     ac_top_srcdir=$ac_top_build_prefix$srcdir
1270     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1271 esac
1272 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1273
1274     cd "$ac_dir" || { ac_status=$?; continue; }
1275     # Check for guested configure.
1276     if test -f "$ac_srcdir/configure.gnu"; then
1277       echo &&
1278       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1279     elif test -f "$ac_srcdir/configure"; then
1280       echo &&
1281       $SHELL "$ac_srcdir/configure" --help=recursive
1282     else
1283       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1284     fi || ac_status=$?
1285     cd "$ac_pwd" || { ac_status=$?; break; }
1286   done
1287 fi
1288
1289 test -n "$ac_init_help" && exit $ac_status
1290 if $ac_init_version; then
1291   cat <<\_ACEOF
1292 configure
1293 generated by GNU Autoconf 2.61
1294
1295 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1296 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1297 This configure script is free software; the Free Software Foundation
1298 gives unlimited permission to copy, distribute and modify it.
1299 _ACEOF
1300   exit
1301 fi
1302 cat >config.log <<_ACEOF
1303 This file contains any messages produced by compilers while
1304 running configure, to aid debugging if configure makes a mistake.
1305
1306 It was created by $as_me, which was
1307 generated by GNU Autoconf 2.61.  Invocation command line was
1308
1309   $ $0 $@
1310
1311 _ACEOF
1312 exec 5>>config.log
1313 {
1314 cat <<_ASUNAME
1315 ## --------- ##
1316 ## Platform. ##
1317 ## --------- ##
1318
1319 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1320 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1321 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1322 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1323 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1324
1325 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1326 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1327
1328 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1329 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1330 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1331 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1332 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1333 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1334 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1335
1336 _ASUNAME
1337
1338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1339 for as_dir in $PATH
1340 do
1341   IFS=$as_save_IFS
1342   test -z "$as_dir" && as_dir=.
1343   echo "PATH: $as_dir"
1344 done
1345 IFS=$as_save_IFS
1346
1347 } >&5
1348
1349 cat >&5 <<_ACEOF
1350
1351
1352 ## ----------- ##
1353 ## Core tests. ##
1354 ## ----------- ##
1355
1356 _ACEOF
1357
1358
1359 # Keep a trace of the command line.
1360 # Strip out --no-create and --no-recursion so they do not pile up.
1361 # Strip out --silent because we don't want to record it for future runs.
1362 # Also quote any args containing shell meta-characters.
1363 # Make two passes to allow for proper duplicate-argument suppression.
1364 ac_configure_args=
1365 ac_configure_args0=
1366 ac_configure_args1=
1367 ac_must_keep_next=false
1368 for ac_pass in 1 2
1369 do
1370   for ac_arg
1371   do
1372     case $ac_arg in
1373     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1374     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1375     | -silent | --silent | --silen | --sile | --sil)
1376       continue ;;
1377     *\'*)
1378       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1379     esac
1380     case $ac_pass in
1381     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1382     2)
1383       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1384       if test $ac_must_keep_next = true; then
1385         ac_must_keep_next=false # Got value, back to normal.
1386       else
1387         case $ac_arg in
1388           *=* | --config-cache | -C | -disable-* | --disable-* \
1389           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1390           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1391           | -with-* | --with-* | -without-* | --without-* | --x)
1392             case "$ac_configure_args0 " in
1393               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1394             esac
1395             ;;
1396           -* ) ac_must_keep_next=true ;;
1397         esac
1398       fi
1399       ac_configure_args="$ac_configure_args '$ac_arg'"
1400       ;;
1401     esac
1402   done
1403 done
1404 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1405 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1406
1407 # When interrupted or exit'd, cleanup temporary files, and complete
1408 # config.log.  We remove comments because anyway the quotes in there
1409 # would cause problems or look ugly.
1410 # WARNING: Use '\'' to represent an apostrophe within the trap.
1411 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1412 trap 'exit_status=$?
1413   # Save into config.log some information that might help in debugging.
1414   {
1415     echo
1416
1417     cat <<\_ASBOX
1418 ## ---------------- ##
1419 ## Cache variables. ##
1420 ## ---------------- ##
1421 _ASBOX
1422     echo
1423     # The following way of writing the cache mishandles newlines in values,
1424 (
1425   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1426     eval ac_val=\$$ac_var
1427     case $ac_val in #(
1428     *${as_nl}*)
1429       case $ac_var in #(
1430       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1431 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1432       esac
1433       case $ac_var in #(
1434       _ | IFS | as_nl) ;; #(
1435       *) $as_unset $ac_var ;;
1436       esac ;;
1437     esac
1438   done
1439   (set) 2>&1 |
1440     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1441     *${as_nl}ac_space=\ *)
1442       sed -n \
1443         "s/'\''/'\''\\\\'\'''\''/g;
1444           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1445       ;; #(
1446     *)
1447       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1448       ;;
1449     esac |
1450     sort
1451 )
1452     echo
1453
1454     cat <<\_ASBOX
1455 ## ----------------- ##
1456 ## Output variables. ##
1457 ## ----------------- ##
1458 _ASBOX
1459     echo
1460     for ac_var in $ac_subst_vars
1461     do
1462       eval ac_val=\$$ac_var
1463       case $ac_val in
1464       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1465       esac
1466       echo "$ac_var='\''$ac_val'\''"
1467     done | sort
1468     echo
1469
1470     if test -n "$ac_subst_files"; then
1471       cat <<\_ASBOX
1472 ## ------------------- ##
1473 ## File substitutions. ##
1474 ## ------------------- ##
1475 _ASBOX
1476       echo
1477       for ac_var in $ac_subst_files
1478       do
1479         eval ac_val=\$$ac_var
1480         case $ac_val in
1481         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1482         esac
1483         echo "$ac_var='\''$ac_val'\''"
1484       done | sort
1485       echo
1486     fi
1487
1488     if test -s confdefs.h; then
1489       cat <<\_ASBOX
1490 ## ----------- ##
1491 ## confdefs.h. ##
1492 ## ----------- ##
1493 _ASBOX
1494       echo
1495       cat confdefs.h
1496       echo
1497     fi
1498     test "$ac_signal" != 0 &&
1499       echo "$as_me: caught signal $ac_signal"
1500     echo "$as_me: exit $exit_status"
1501   } >&5
1502   rm -f core *.core core.conftest.* &&
1503     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1504     exit $exit_status
1505 ' 0
1506 for ac_signal in 1 2 13 15; do
1507   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1508 done
1509 ac_signal=0
1510
1511 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1512 rm -f -r conftest* confdefs.h
1513
1514 # Predefined preprocessor variables.
1515
1516 cat >>confdefs.h <<_ACEOF
1517 #define PACKAGE_NAME "$PACKAGE_NAME"
1518 _ACEOF
1519
1520
1521 cat >>confdefs.h <<_ACEOF
1522 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1523 _ACEOF
1524
1525
1526 cat >>confdefs.h <<_ACEOF
1527 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1528 _ACEOF
1529
1530
1531 cat >>confdefs.h <<_ACEOF
1532 #define PACKAGE_STRING "$PACKAGE_STRING"
1533 _ACEOF
1534
1535
1536 cat >>confdefs.h <<_ACEOF
1537 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1538 _ACEOF
1539
1540
1541 # Let the site file select an alternate cache file if it wants to.
1542 # Prefer explicitly selected file to automatically selected ones.
1543 if test -n "$CONFIG_SITE"; then
1544   set x "$CONFIG_SITE"
1545 elif test "x$prefix" != xNONE; then
1546   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1547 else
1548   set x "$ac_default_prefix/share/config.site" \
1549         "$ac_default_prefix/etc/config.site"
1550 fi
1551 shift
1552 for ac_site_file
1553 do
1554   if test -r "$ac_site_file"; then
1555     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1556 echo "$as_me: loading site script $ac_site_file" >&6;}
1557     sed 's/^/| /' "$ac_site_file" >&5
1558     . "$ac_site_file"
1559   fi
1560 done
1561
1562 if test -r "$cache_file"; then
1563   # Some versions of bash will fail to source /dev/null (special
1564   # files actually), so we avoid doing that.
1565   if test -f "$cache_file"; then
1566     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1567 echo "$as_me: loading cache $cache_file" >&6;}
1568     case $cache_file in
1569       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1570       *)                      . "./$cache_file";;
1571     esac
1572   fi
1573 else
1574   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1575 echo "$as_me: creating cache $cache_file" >&6;}
1576   >$cache_file
1577 fi
1578
1579 # Check that the precious variables saved in the cache have kept the same
1580 # value.
1581 ac_cache_corrupted=false
1582 for ac_var in $ac_precious_vars; do
1583   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1584   eval ac_new_set=\$ac_env_${ac_var}_set
1585   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1586   eval ac_new_val=\$ac_env_${ac_var}_value
1587   case $ac_old_set,$ac_new_set in
1588     set,)
1589       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1590 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1591       ac_cache_corrupted=: ;;
1592     ,set)
1593       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1594 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1595       ac_cache_corrupted=: ;;
1596     ,);;
1597     *)
1598       if test "x$ac_old_val" != "x$ac_new_val"; then
1599         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1600 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1601         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1602 echo "$as_me:   former value:  $ac_old_val" >&2;}
1603         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1604 echo "$as_me:   current value: $ac_new_val" >&2;}
1605         ac_cache_corrupted=:
1606       fi;;
1607   esac
1608   # Pass precious variables to config.status.
1609   if test "$ac_new_set" = set; then
1610     case $ac_new_val in
1611     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1612     *) ac_arg=$ac_var=$ac_new_val ;;
1613     esac
1614     case " $ac_configure_args " in
1615       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1616       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1617     esac
1618   fi
1619 done
1620 if $ac_cache_corrupted; then
1621   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1622 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1623   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1624 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1625    { (exit 1); exit 1; }; }
1626 fi
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644 ac_ext=c
1645 ac_cpp='$CPP $CPPFLAGS'
1646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1649
1650
1651 ac_config_headers="$ac_config_headers ragel/config.h"
1652
1653
1654 BUILD_PARSERS=true
1655
1656
1657 ac_ext=c
1658 ac_cpp='$CPP $CPPFLAGS'
1659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1662 if test -n "$ac_tool_prefix"; then
1663   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1664 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1667 if test "${ac_cv_prog_CC+set}" = set; then
1668   echo $ECHO_N "(cached) $ECHO_C" >&6
1669 else
1670   if test -n "$CC"; then
1671   ac_cv_prog_CC="$CC" # Let the user override the test.
1672 else
1673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1674 for as_dir in $PATH
1675 do
1676   IFS=$as_save_IFS
1677   test -z "$as_dir" && as_dir=.
1678   for ac_exec_ext in '' $ac_executable_extensions; do
1679   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1680     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1681     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1682     break 2
1683   fi
1684 done
1685 done
1686 IFS=$as_save_IFS
1687
1688 fi
1689 fi
1690 CC=$ac_cv_prog_CC
1691 if test -n "$CC"; then
1692   { echo "$as_me:$LINENO: result: $CC" >&5
1693 echo "${ECHO_T}$CC" >&6; }
1694 else
1695   { echo "$as_me:$LINENO: result: no" >&5
1696 echo "${ECHO_T}no" >&6; }
1697 fi
1698
1699
1700 fi
1701 if test -z "$ac_cv_prog_CC"; then
1702   ac_ct_CC=$CC
1703   # Extract the first word of "gcc", so it can be a program name with args.
1704 set dummy gcc; ac_word=$2
1705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1707 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1708   echo $ECHO_N "(cached) $ECHO_C" >&6
1709 else
1710   if test -n "$ac_ct_CC"; then
1711   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1712 else
1713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1714 for as_dir in $PATH
1715 do
1716   IFS=$as_save_IFS
1717   test -z "$as_dir" && as_dir=.
1718   for ac_exec_ext in '' $ac_executable_extensions; do
1719   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1720     ac_cv_prog_ac_ct_CC="gcc"
1721     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1722     break 2
1723   fi
1724 done
1725 done
1726 IFS=$as_save_IFS
1727
1728 fi
1729 fi
1730 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1731 if test -n "$ac_ct_CC"; then
1732   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1733 echo "${ECHO_T}$ac_ct_CC" >&6; }
1734 else
1735   { echo "$as_me:$LINENO: result: no" >&5
1736 echo "${ECHO_T}no" >&6; }
1737 fi
1738
1739   if test "x$ac_ct_CC" = x; then
1740     CC=""
1741   else
1742     case $cross_compiling:$ac_tool_warned in
1743 yes:)
1744 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1745 whose name does not start with the host triplet.  If you think this
1746 configuration is useful to you, please write to autoconf@gnu.org." >&5
1747 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1748 whose name does not start with the host triplet.  If you think this
1749 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1750 ac_tool_warned=yes ;;
1751 esac
1752     CC=$ac_ct_CC
1753   fi
1754 else
1755   CC="$ac_cv_prog_CC"
1756 fi
1757
1758 if test -z "$CC"; then
1759           if test -n "$ac_tool_prefix"; then
1760     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1761 set dummy ${ac_tool_prefix}cc; ac_word=$2
1762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1764 if test "${ac_cv_prog_CC+set}" = set; then
1765   echo $ECHO_N "(cached) $ECHO_C" >&6
1766 else
1767   if test -n "$CC"; then
1768   ac_cv_prog_CC="$CC" # Let the user override the test.
1769 else
1770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1771 for as_dir in $PATH
1772 do
1773   IFS=$as_save_IFS
1774   test -z "$as_dir" && as_dir=.
1775   for ac_exec_ext in '' $ac_executable_extensions; do
1776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1777     ac_cv_prog_CC="${ac_tool_prefix}cc"
1778     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1779     break 2
1780   fi
1781 done
1782 done
1783 IFS=$as_save_IFS
1784
1785 fi
1786 fi
1787 CC=$ac_cv_prog_CC
1788 if test -n "$CC"; then
1789   { echo "$as_me:$LINENO: result: $CC" >&5
1790 echo "${ECHO_T}$CC" >&6; }
1791 else
1792   { echo "$as_me:$LINENO: result: no" >&5
1793 echo "${ECHO_T}no" >&6; }
1794 fi
1795
1796
1797   fi
1798 fi
1799 if test -z "$CC"; then
1800   # Extract the first word of "cc", so it can be a program name with args.
1801 set dummy cc; ac_word=$2
1802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1804 if test "${ac_cv_prog_CC+set}" = set; then
1805   echo $ECHO_N "(cached) $ECHO_C" >&6
1806 else
1807   if test -n "$CC"; then
1808   ac_cv_prog_CC="$CC" # Let the user override the test.
1809 else
1810   ac_prog_rejected=no
1811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1812 for as_dir in $PATH
1813 do
1814   IFS=$as_save_IFS
1815   test -z "$as_dir" && as_dir=.
1816   for ac_exec_ext in '' $ac_executable_extensions; do
1817   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1818     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1819        ac_prog_rejected=yes
1820        continue
1821      fi
1822     ac_cv_prog_CC="cc"
1823     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1824     break 2
1825   fi
1826 done
1827 done
1828 IFS=$as_save_IFS
1829
1830 if test $ac_prog_rejected = yes; then
1831   # We found a bogon in the path, so make sure we never use it.
1832   set dummy $ac_cv_prog_CC
1833   shift
1834   if test $# != 0; then
1835     # We chose a different compiler from the bogus one.
1836     # However, it has the same basename, so the bogon will be chosen
1837     # first if we set CC to just the basename; use the full file name.
1838     shift
1839     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1840   fi
1841 fi
1842 fi
1843 fi
1844 CC=$ac_cv_prog_CC
1845 if test -n "$CC"; then
1846   { echo "$as_me:$LINENO: result: $CC" >&5
1847 echo "${ECHO_T}$CC" >&6; }
1848 else
1849   { echo "$as_me:$LINENO: result: no" >&5
1850 echo "${ECHO_T}no" >&6; }
1851 fi
1852
1853
1854 fi
1855 if test -z "$CC"; then
1856   if test -n "$ac_tool_prefix"; then
1857   for ac_prog in cl.exe
1858   do
1859     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1860 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1863 if test "${ac_cv_prog_CC+set}" = set; then
1864   echo $ECHO_N "(cached) $ECHO_C" >&6
1865 else
1866   if test -n "$CC"; then
1867   ac_cv_prog_CC="$CC" # Let the user override the test.
1868 else
1869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1870 for as_dir in $PATH
1871 do
1872   IFS=$as_save_IFS
1873   test -z "$as_dir" && as_dir=.
1874   for ac_exec_ext in '' $ac_executable_extensions; do
1875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1876     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1877     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1878     break 2
1879   fi
1880 done
1881 done
1882 IFS=$as_save_IFS
1883
1884 fi
1885 fi
1886 CC=$ac_cv_prog_CC
1887 if test -n "$CC"; then
1888   { echo "$as_me:$LINENO: result: $CC" >&5
1889 echo "${ECHO_T}$CC" >&6; }
1890 else
1891   { echo "$as_me:$LINENO: result: no" >&5
1892 echo "${ECHO_T}no" >&6; }
1893 fi
1894
1895
1896     test -n "$CC" && break
1897   done
1898 fi
1899 if test -z "$CC"; then
1900   ac_ct_CC=$CC
1901   for ac_prog in cl.exe
1902 do
1903   # Extract the first word of "$ac_prog", so it can be a program name with args.
1904 set dummy $ac_prog; ac_word=$2
1905 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1907 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1908   echo $ECHO_N "(cached) $ECHO_C" >&6
1909 else
1910   if test -n "$ac_ct_CC"; then
1911   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1912 else
1913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1914 for as_dir in $PATH
1915 do
1916   IFS=$as_save_IFS
1917   test -z "$as_dir" && as_dir=.
1918   for ac_exec_ext in '' $ac_executable_extensions; do
1919   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1920     ac_cv_prog_ac_ct_CC="$ac_prog"
1921     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1922     break 2
1923   fi
1924 done
1925 done
1926 IFS=$as_save_IFS
1927
1928 fi
1929 fi
1930 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1931 if test -n "$ac_ct_CC"; then
1932   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1933 echo "${ECHO_T}$ac_ct_CC" >&6; }
1934 else
1935   { echo "$as_me:$LINENO: result: no" >&5
1936 echo "${ECHO_T}no" >&6; }
1937 fi
1938
1939
1940   test -n "$ac_ct_CC" && break
1941 done
1942
1943   if test "x$ac_ct_CC" = x; then
1944     CC=""
1945   else
1946     case $cross_compiling:$ac_tool_warned in
1947 yes:)
1948 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1949 whose name does not start with the host triplet.  If you think this
1950 configuration is useful to you, please write to autoconf@gnu.org." >&5
1951 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1952 whose name does not start with the host triplet.  If you think this
1953 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1954 ac_tool_warned=yes ;;
1955 esac
1956     CC=$ac_ct_CC
1957   fi
1958 fi
1959
1960 fi
1961
1962
1963 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1964 See \`config.log' for more details." >&5
1965 echo "$as_me: error: no acceptable C compiler found in \$PATH
1966 See \`config.log' for more details." >&2;}
1967    { (exit 1); exit 1; }; }
1968
1969 # Provide some information about the compiler.
1970 echo "$as_me:$LINENO: checking for C compiler version" >&5
1971 ac_compiler=`set X $ac_compile; echo $2`
1972 { (ac_try="$ac_compiler --version >&5"
1973 case "(($ac_try" in
1974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1975   *) ac_try_echo=$ac_try;;
1976 esac
1977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1978   (eval "$ac_compiler --version >&5") 2>&5
1979   ac_status=$?
1980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1981   (exit $ac_status); }
1982 { (ac_try="$ac_compiler -v >&5"
1983 case "(($ac_try" in
1984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1985   *) ac_try_echo=$ac_try;;
1986 esac
1987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1988   (eval "$ac_compiler -v >&5") 2>&5
1989   ac_status=$?
1990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1991   (exit $ac_status); }
1992 { (ac_try="$ac_compiler -V >&5"
1993 case "(($ac_try" in
1994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1995   *) ac_try_echo=$ac_try;;
1996 esac
1997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1998   (eval "$ac_compiler -V >&5") 2>&5
1999   ac_status=$?
2000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001   (exit $ac_status); }
2002
2003 cat >conftest.$ac_ext <<_ACEOF
2004 /* confdefs.h.  */
2005 _ACEOF
2006 cat confdefs.h >>conftest.$ac_ext
2007 cat >>conftest.$ac_ext <<_ACEOF
2008 /* end confdefs.h.  */
2009
2010 int
2011 main ()
2012 {
2013
2014   ;
2015   return 0;
2016 }
2017 _ACEOF
2018 ac_clean_files_save=$ac_clean_files
2019 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2020 # Try to create an executable without -o first, disregard a.out.
2021 # It will help us diagnose broken compilers, and finding out an intuition
2022 # of exeext.
2023 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2024 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2025 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2026 #
2027 # List of possible output files, starting from the most likely.
2028 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2029 # only as a last resort.  b.out is created by i960 compilers.
2030 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2031 #
2032 # The IRIX 6 linker writes into existing files which may not be
2033 # executable, retaining their permissions.  Remove them first so a
2034 # subsequent execution test works.
2035 ac_rmfiles=
2036 for ac_file in $ac_files
2037 do
2038   case $ac_file in
2039     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2040     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2041   esac
2042 done
2043 rm -f $ac_rmfiles
2044
2045 if { (ac_try="$ac_link_default"
2046 case "(($ac_try" in
2047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2048   *) ac_try_echo=$ac_try;;
2049 esac
2050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2051   (eval "$ac_link_default") 2>&5
2052   ac_status=$?
2053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054   (exit $ac_status); }; then
2055   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2056 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2057 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2058 # so that the user can short-circuit this test for compilers unknown to
2059 # Autoconf.
2060 for ac_file in $ac_files ''
2061 do
2062   test -f "$ac_file" || continue
2063   case $ac_file in
2064     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2065         ;;
2066     [ab].out )
2067         # We found the default executable, but exeext='' is most
2068         # certainly right.
2069         break;;
2070     *.* )
2071         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2072         then :; else
2073            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2074         fi
2075         # We set ac_cv_exeext here because the later test for it is not
2076         # safe: cross compilers may not add the suffix if given an `-o'
2077         # argument, so we may need to know it at that point already.
2078         # Even if this section looks crufty: it has the advantage of
2079         # actually working.
2080         break;;
2081     * )
2082         break;;
2083   esac
2084 done
2085 test "$ac_cv_exeext" = no && ac_cv_exeext=
2086
2087 else
2088   ac_file=''
2089 fi
2090
2091 { echo "$as_me:$LINENO: result: $ac_file" >&5
2092 echo "${ECHO_T}$ac_file" >&6; }
2093 if test -z "$ac_file"; then
2094   echo "$as_me: failed program was:" >&5
2095 sed 's/^/| /' conftest.$ac_ext >&5
2096
2097 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2098 See \`config.log' for more details." >&5
2099 echo "$as_me: error: C compiler cannot create executables
2100 See \`config.log' for more details." >&2;}
2101    { (exit 77); exit 77; }; }
2102 fi
2103
2104 ac_exeext=$ac_cv_exeext
2105
2106 # Check that the compiler produces executables we can run.  If not, either
2107 # the compiler is broken, or we cross compile.
2108 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2109 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2110 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2111 # If not cross compiling, check that we can run a simple program.
2112 if test "$cross_compiling" != yes; then
2113   if { ac_try='./$ac_file'
2114   { (case "(($ac_try" in
2115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2116   *) ac_try_echo=$ac_try;;
2117 esac
2118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2119   (eval "$ac_try") 2>&5
2120   ac_status=$?
2121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122   (exit $ac_status); }; }; then
2123     cross_compiling=no
2124   else
2125     if test "$cross_compiling" = maybe; then
2126         cross_compiling=yes
2127     else
2128         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2129 If you meant to cross compile, use \`--host'.
2130 See \`config.log' for more details." >&5
2131 echo "$as_me: error: cannot run C compiled programs.
2132 If you meant to cross compile, use \`--host'.
2133 See \`config.log' for more details." >&2;}
2134    { (exit 1); exit 1; }; }
2135     fi
2136   fi
2137 fi
2138 { echo "$as_me:$LINENO: result: yes" >&5
2139 echo "${ECHO_T}yes" >&6; }
2140
2141 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2142 ac_clean_files=$ac_clean_files_save
2143 # Check that the compiler produces executables we can run.  If not, either
2144 # the compiler is broken, or we cross compile.
2145 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2146 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2147 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2148 echo "${ECHO_T}$cross_compiling" >&6; }
2149
2150 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2151 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2152 if { (ac_try="$ac_link"
2153 case "(($ac_try" in
2154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2155   *) ac_try_echo=$ac_try;;
2156 esac
2157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2158   (eval "$ac_link") 2>&5
2159   ac_status=$?
2160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161   (exit $ac_status); }; then
2162   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2163 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2164 # work properly (i.e., refer to `conftest.exe'), while it won't with
2165 # `rm'.
2166 for ac_file in conftest.exe conftest conftest.*; do
2167   test -f "$ac_file" || continue
2168   case $ac_file in
2169     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2170     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2171           break;;
2172     * ) break;;
2173   esac
2174 done
2175 else
2176   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2177 See \`config.log' for more details." >&5
2178 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2179 See \`config.log' for more details." >&2;}
2180    { (exit 1); exit 1; }; }
2181 fi
2182
2183 rm -f conftest$ac_cv_exeext
2184 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2185 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2186
2187 rm -f conftest.$ac_ext
2188 EXEEXT=$ac_cv_exeext
2189 ac_exeext=$EXEEXT
2190 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2191 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2192 if test "${ac_cv_objext+set}" = set; then
2193   echo $ECHO_N "(cached) $ECHO_C" >&6
2194 else
2195   cat >conftest.$ac_ext <<_ACEOF
2196 /* confdefs.h.  */
2197 _ACEOF
2198 cat confdefs.h >>conftest.$ac_ext
2199 cat >>conftest.$ac_ext <<_ACEOF
2200 /* end confdefs.h.  */
2201
2202 int
2203 main ()
2204 {
2205
2206   ;
2207   return 0;
2208 }
2209 _ACEOF
2210 rm -f conftest.o conftest.obj
2211 if { (ac_try="$ac_compile"
2212 case "(($ac_try" in
2213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2214   *) ac_try_echo=$ac_try;;
2215 esac
2216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2217   (eval "$ac_compile") 2>&5
2218   ac_status=$?
2219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220   (exit $ac_status); }; then
2221   for ac_file in conftest.o conftest.obj conftest.*; do
2222   test -f "$ac_file" || continue;
2223   case $ac_file in
2224     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2225     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2226        break;;
2227   esac
2228 done
2229 else
2230   echo "$as_me: failed program was:" >&5
2231 sed 's/^/| /' conftest.$ac_ext >&5
2232
2233 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2234 See \`config.log' for more details." >&5
2235 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2236 See \`config.log' for more details." >&2;}
2237    { (exit 1); exit 1; }; }
2238 fi
2239
2240 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2241 fi
2242 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2243 echo "${ECHO_T}$ac_cv_objext" >&6; }
2244 OBJEXT=$ac_cv_objext
2245 ac_objext=$OBJEXT
2246 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2247 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2248 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2249   echo $ECHO_N "(cached) $ECHO_C" >&6
2250 else
2251   cat >conftest.$ac_ext <<_ACEOF
2252 /* confdefs.h.  */
2253 _ACEOF
2254 cat confdefs.h >>conftest.$ac_ext
2255 cat >>conftest.$ac_ext <<_ACEOF
2256 /* end confdefs.h.  */
2257
2258 int
2259 main ()
2260 {
2261 #ifndef __GNUC__
2262        choke me
2263 #endif
2264
2265   ;
2266   return 0;
2267 }
2268 _ACEOF
2269 rm -f conftest.$ac_objext
2270 if { (ac_try="$ac_compile"
2271 case "(($ac_try" in
2272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2273   *) ac_try_echo=$ac_try;;
2274 esac
2275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2276   (eval "$ac_compile") 2>conftest.er1
2277   ac_status=$?
2278   grep -v '^ *+' conftest.er1 >conftest.err
2279   rm -f conftest.er1
2280   cat conftest.err >&5
2281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282   (exit $ac_status); } && {
2283          test -z "$ac_c_werror_flag" ||
2284          test ! -s conftest.err
2285        } && test -s conftest.$ac_objext; then
2286   ac_compiler_gnu=yes
2287 else
2288   echo "$as_me: failed program was:" >&5
2289 sed 's/^/| /' conftest.$ac_ext >&5
2290
2291         ac_compiler_gnu=no
2292 fi
2293
2294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2295 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2296
2297 fi
2298 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2299 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2300 GCC=`test $ac_compiler_gnu = yes && echo yes`
2301 ac_test_CFLAGS=${CFLAGS+set}
2302 ac_save_CFLAGS=$CFLAGS
2303 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2304 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2305 if test "${ac_cv_prog_cc_g+set}" = set; then
2306   echo $ECHO_N "(cached) $ECHO_C" >&6
2307 else
2308   ac_save_c_werror_flag=$ac_c_werror_flag
2309    ac_c_werror_flag=yes
2310    ac_cv_prog_cc_g=no
2311    CFLAGS="-g"
2312    cat >conftest.$ac_ext <<_ACEOF
2313 /* confdefs.h.  */
2314 _ACEOF
2315 cat confdefs.h >>conftest.$ac_ext
2316 cat >>conftest.$ac_ext <<_ACEOF
2317 /* end confdefs.h.  */
2318
2319 int
2320 main ()
2321 {
2322
2323   ;
2324   return 0;
2325 }
2326 _ACEOF
2327 rm -f conftest.$ac_objext
2328 if { (ac_try="$ac_compile"
2329 case "(($ac_try" in
2330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2331   *) ac_try_echo=$ac_try;;
2332 esac
2333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2334   (eval "$ac_compile") 2>conftest.er1
2335   ac_status=$?
2336   grep -v '^ *+' conftest.er1 >conftest.err
2337   rm -f conftest.er1
2338   cat conftest.err >&5
2339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340   (exit $ac_status); } && {
2341          test -z "$ac_c_werror_flag" ||
2342          test ! -s conftest.err
2343        } && test -s conftest.$ac_objext; then
2344   ac_cv_prog_cc_g=yes
2345 else
2346   echo "$as_me: failed program was:" >&5
2347 sed 's/^/| /' conftest.$ac_ext >&5
2348
2349         CFLAGS=""
2350       cat >conftest.$ac_ext <<_ACEOF
2351 /* confdefs.h.  */
2352 _ACEOF
2353 cat confdefs.h >>conftest.$ac_ext
2354 cat >>conftest.$ac_ext <<_ACEOF
2355 /* end confdefs.h.  */
2356
2357 int
2358 main ()
2359 {
2360
2361   ;
2362   return 0;
2363 }
2364 _ACEOF
2365 rm -f conftest.$ac_objext
2366 if { (ac_try="$ac_compile"
2367 case "(($ac_try" in
2368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2369   *) ac_try_echo=$ac_try;;
2370 esac
2371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2372   (eval "$ac_compile") 2>conftest.er1
2373   ac_status=$?
2374   grep -v '^ *+' conftest.er1 >conftest.err
2375   rm -f conftest.er1
2376   cat conftest.err >&5
2377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378   (exit $ac_status); } && {
2379          test -z "$ac_c_werror_flag" ||
2380          test ! -s conftest.err
2381        } && test -s conftest.$ac_objext; then
2382   :
2383 else
2384   echo "$as_me: failed program was:" >&5
2385 sed 's/^/| /' conftest.$ac_ext >&5
2386
2387         ac_c_werror_flag=$ac_save_c_werror_flag
2388          CFLAGS="-g"
2389          cat >conftest.$ac_ext <<_ACEOF
2390 /* confdefs.h.  */
2391 _ACEOF
2392 cat confdefs.h >>conftest.$ac_ext
2393 cat >>conftest.$ac_ext <<_ACEOF
2394 /* end confdefs.h.  */
2395
2396 int
2397 main ()
2398 {
2399
2400   ;
2401   return 0;
2402 }
2403 _ACEOF
2404 rm -f conftest.$ac_objext
2405 if { (ac_try="$ac_compile"
2406 case "(($ac_try" in
2407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2408   *) ac_try_echo=$ac_try;;
2409 esac
2410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2411   (eval "$ac_compile") 2>conftest.er1
2412   ac_status=$?
2413   grep -v '^ *+' conftest.er1 >conftest.err
2414   rm -f conftest.er1
2415   cat conftest.err >&5
2416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417   (exit $ac_status); } && {
2418          test -z "$ac_c_werror_flag" ||
2419          test ! -s conftest.err
2420        } && test -s conftest.$ac_objext; then
2421   ac_cv_prog_cc_g=yes
2422 else
2423   echo "$as_me: failed program was:" >&5
2424 sed 's/^/| /' conftest.$ac_ext >&5
2425
2426
2427 fi
2428
2429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2430 fi
2431
2432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2433 fi
2434
2435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2436    ac_c_werror_flag=$ac_save_c_werror_flag
2437 fi
2438 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2439 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2440 if test "$ac_test_CFLAGS" = set; then
2441   CFLAGS=$ac_save_CFLAGS
2442 elif test $ac_cv_prog_cc_g = yes; then
2443   if test "$GCC" = yes; then
2444     CFLAGS="-g -O2"
2445   else
2446     CFLAGS="-g"
2447   fi
2448 else
2449   if test "$GCC" = yes; then
2450     CFLAGS="-O2"
2451   else
2452     CFLAGS=
2453   fi
2454 fi
2455 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2456 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2457 if test "${ac_cv_prog_cc_c89+set}" = set; then
2458   echo $ECHO_N "(cached) $ECHO_C" >&6
2459 else
2460   ac_cv_prog_cc_c89=no
2461 ac_save_CC=$CC
2462 cat >conftest.$ac_ext <<_ACEOF
2463 /* confdefs.h.  */
2464 _ACEOF
2465 cat confdefs.h >>conftest.$ac_ext
2466 cat >>conftest.$ac_ext <<_ACEOF
2467 /* end confdefs.h.  */
2468 #include <stdarg.h>
2469 #include <stdio.h>
2470 #include <sys/types.h>
2471 #include <sys/stat.h>
2472 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2473 struct buf { int x; };
2474 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2475 static char *e (p, i)
2476      char **p;
2477      int i;
2478 {
2479   return p[i];
2480 }
2481 static char *f (char * (*g) (char **, int), char **p, ...)
2482 {
2483   char *s;
2484   va_list v;
2485   va_start (v,p);
2486   s = g (p, va_arg (v,int));
2487   va_end (v);
2488   return s;
2489 }
2490
2491 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2492    function prototypes and stuff, but not '\xHH' hex character constants.
2493    These don't provoke an error unfortunately, instead are silently treated
2494    as 'x'.  The following induces an error, until -std is added to get
2495    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2496    array size at least.  It's necessary to write '\x00'==0 to get something
2497    that's true only with -std.  */
2498 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2499
2500 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2501    inside strings and character constants.  */
2502 #define FOO(x) 'x'
2503 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2504
2505 int test (int i, double x);
2506 struct s1 {int (*f) (int a);};
2507 struct s2 {int (*f) (double a);};
2508 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2509 int argc;
2510 char **argv;
2511 int
2512 main ()
2513 {
2514 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2515   ;
2516   return 0;
2517 }
2518 _ACEOF
2519 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2520         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2521 do
2522   CC="$ac_save_CC $ac_arg"
2523   rm -f conftest.$ac_objext
2524 if { (ac_try="$ac_compile"
2525 case "(($ac_try" in
2526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527   *) ac_try_echo=$ac_try;;
2528 esac
2529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2530   (eval "$ac_compile") 2>conftest.er1
2531   ac_status=$?
2532   grep -v '^ *+' conftest.er1 >conftest.err
2533   rm -f conftest.er1
2534   cat conftest.err >&5
2535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536   (exit $ac_status); } && {
2537          test -z "$ac_c_werror_flag" ||
2538          test ! -s conftest.err
2539        } && test -s conftest.$ac_objext; then
2540   ac_cv_prog_cc_c89=$ac_arg
2541 else
2542   echo "$as_me: failed program was:" >&5
2543 sed 's/^/| /' conftest.$ac_ext >&5
2544
2545
2546 fi
2547
2548 rm -f core conftest.err conftest.$ac_objext
2549   test "x$ac_cv_prog_cc_c89" != "xno" && break
2550 done
2551 rm -f conftest.$ac_ext
2552 CC=$ac_save_CC
2553
2554 fi
2555 # AC_CACHE_VAL
2556 case "x$ac_cv_prog_cc_c89" in
2557   x)
2558     { echo "$as_me:$LINENO: result: none needed" >&5
2559 echo "${ECHO_T}none needed" >&6; } ;;
2560   xno)
2561     { echo "$as_me:$LINENO: result: unsupported" >&5
2562 echo "${ECHO_T}unsupported" >&6; } ;;
2563   *)
2564     CC="$CC $ac_cv_prog_cc_c89"
2565     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2566 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2567 esac
2568
2569
2570 ac_ext=c
2571 ac_cpp='$CPP $CPPFLAGS'
2572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2575
2576 ac_ext=cpp
2577 ac_cpp='$CXXCPP $CPPFLAGS'
2578 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2579 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2580 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2581 if test -z "$CXX"; then
2582   if test -n "$CCC"; then
2583     CXX=$CCC
2584   else
2585     if test -n "$ac_tool_prefix"; then
2586   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2587   do
2588     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2589 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2592 if test "${ac_cv_prog_CXX+set}" = set; then
2593   echo $ECHO_N "(cached) $ECHO_C" >&6
2594 else
2595   if test -n "$CXX"; then
2596   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2597 else
2598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599 for as_dir in $PATH
2600 do
2601   IFS=$as_save_IFS
2602   test -z "$as_dir" && as_dir=.
2603   for ac_exec_ext in '' $ac_executable_extensions; do
2604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2605     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2606     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2607     break 2
2608   fi
2609 done
2610 done
2611 IFS=$as_save_IFS
2612
2613 fi
2614 fi
2615 CXX=$ac_cv_prog_CXX
2616 if test -n "$CXX"; then
2617   { echo "$as_me:$LINENO: result: $CXX" >&5
2618 echo "${ECHO_T}$CXX" >&6; }
2619 else
2620   { echo "$as_me:$LINENO: result: no" >&5
2621 echo "${ECHO_T}no" >&6; }
2622 fi
2623
2624
2625     test -n "$CXX" && break
2626   done
2627 fi
2628 if test -z "$CXX"; then
2629   ac_ct_CXX=$CXX
2630   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2631 do
2632   # Extract the first word of "$ac_prog", so it can be a program name with args.
2633 set dummy $ac_prog; ac_word=$2
2634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2636 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2637   echo $ECHO_N "(cached) $ECHO_C" >&6
2638 else
2639   if test -n "$ac_ct_CXX"; then
2640   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2641 else
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643 for as_dir in $PATH
2644 do
2645   IFS=$as_save_IFS
2646   test -z "$as_dir" && as_dir=.
2647   for ac_exec_ext in '' $ac_executable_extensions; do
2648   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2649     ac_cv_prog_ac_ct_CXX="$ac_prog"
2650     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2651     break 2
2652   fi
2653 done
2654 done
2655 IFS=$as_save_IFS
2656
2657 fi
2658 fi
2659 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2660 if test -n "$ac_ct_CXX"; then
2661   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2662 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2663 else
2664   { echo "$as_me:$LINENO: result: no" >&5
2665 echo "${ECHO_T}no" >&6; }
2666 fi
2667
2668
2669   test -n "$ac_ct_CXX" && break
2670 done
2671
2672   if test "x$ac_ct_CXX" = x; then
2673     CXX="g++"
2674   else
2675     case $cross_compiling:$ac_tool_warned in
2676 yes:)
2677 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2678 whose name does not start with the host triplet.  If you think this
2679 configuration is useful to you, please write to autoconf@gnu.org." >&5
2680 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2681 whose name does not start with the host triplet.  If you think this
2682 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2683 ac_tool_warned=yes ;;
2684 esac
2685     CXX=$ac_ct_CXX
2686   fi
2687 fi
2688
2689   fi
2690 fi
2691 # Provide some information about the compiler.
2692 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2693 ac_compiler=`set X $ac_compile; echo $2`
2694 { (ac_try="$ac_compiler --version >&5"
2695 case "(($ac_try" in
2696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697   *) ac_try_echo=$ac_try;;
2698 esac
2699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2700   (eval "$ac_compiler --version >&5") 2>&5
2701   ac_status=$?
2702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703   (exit $ac_status); }
2704 { (ac_try="$ac_compiler -v >&5"
2705 case "(($ac_try" in
2706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2707   *) ac_try_echo=$ac_try;;
2708 esac
2709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2710   (eval "$ac_compiler -v >&5") 2>&5
2711   ac_status=$?
2712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713   (exit $ac_status); }
2714 { (ac_try="$ac_compiler -V >&5"
2715 case "(($ac_try" in
2716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2717   *) ac_try_echo=$ac_try;;
2718 esac
2719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2720   (eval "$ac_compiler -V >&5") 2>&5
2721   ac_status=$?
2722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723   (exit $ac_status); }
2724
2725 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2726 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2727 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2728   echo $ECHO_N "(cached) $ECHO_C" >&6
2729 else
2730   cat >conftest.$ac_ext <<_ACEOF
2731 /* confdefs.h.  */
2732 _ACEOF
2733 cat confdefs.h >>conftest.$ac_ext
2734 cat >>conftest.$ac_ext <<_ACEOF
2735 /* end confdefs.h.  */
2736
2737 int
2738 main ()
2739 {
2740 #ifndef __GNUC__
2741        choke me
2742 #endif
2743
2744   ;
2745   return 0;
2746 }
2747 _ACEOF
2748 rm -f conftest.$ac_objext
2749 if { (ac_try="$ac_compile"
2750 case "(($ac_try" in
2751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2752   *) ac_try_echo=$ac_try;;
2753 esac
2754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2755   (eval "$ac_compile") 2>conftest.er1
2756   ac_status=$?
2757   grep -v '^ *+' conftest.er1 >conftest.err
2758   rm -f conftest.er1
2759   cat conftest.err >&5
2760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761   (exit $ac_status); } && {
2762          test -z "$ac_cxx_werror_flag" ||
2763          test ! -s conftest.err
2764        } && test -s conftest.$ac_objext; then
2765   ac_compiler_gnu=yes
2766 else
2767   echo "$as_me: failed program was:" >&5
2768 sed 's/^/| /' conftest.$ac_ext >&5
2769
2770         ac_compiler_gnu=no
2771 fi
2772
2773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2774 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2775
2776 fi
2777 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2778 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2779 GXX=`test $ac_compiler_gnu = yes && echo yes`
2780 ac_test_CXXFLAGS=${CXXFLAGS+set}
2781 ac_save_CXXFLAGS=$CXXFLAGS
2782 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2783 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2784 if test "${ac_cv_prog_cxx_g+set}" = set; then
2785   echo $ECHO_N "(cached) $ECHO_C" >&6
2786 else
2787   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2788    ac_cxx_werror_flag=yes
2789    ac_cv_prog_cxx_g=no
2790    CXXFLAGS="-g"
2791    cat >conftest.$ac_ext <<_ACEOF
2792 /* confdefs.h.  */
2793 _ACEOF
2794 cat confdefs.h >>conftest.$ac_ext
2795 cat >>conftest.$ac_ext <<_ACEOF
2796 /* end confdefs.h.  */
2797
2798 int
2799 main ()
2800 {
2801
2802   ;
2803   return 0;
2804 }
2805 _ACEOF
2806 rm -f conftest.$ac_objext
2807 if { (ac_try="$ac_compile"
2808 case "(($ac_try" in
2809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2810   *) ac_try_echo=$ac_try;;
2811 esac
2812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2813   (eval "$ac_compile") 2>conftest.er1
2814   ac_status=$?
2815   grep -v '^ *+' conftest.er1 >conftest.err
2816   rm -f conftest.er1
2817   cat conftest.err >&5
2818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819   (exit $ac_status); } && {
2820          test -z "$ac_cxx_werror_flag" ||
2821          test ! -s conftest.err
2822        } && test -s conftest.$ac_objext; then
2823   ac_cv_prog_cxx_g=yes
2824 else
2825   echo "$as_me: failed program was:" >&5
2826 sed 's/^/| /' conftest.$ac_ext >&5
2827
2828         CXXFLAGS=""
2829       cat >conftest.$ac_ext <<_ACEOF
2830 /* confdefs.h.  */
2831 _ACEOF
2832 cat confdefs.h >>conftest.$ac_ext
2833 cat >>conftest.$ac_ext <<_ACEOF
2834 /* end confdefs.h.  */
2835
2836 int
2837 main ()
2838 {
2839
2840   ;
2841   return 0;
2842 }
2843 _ACEOF
2844 rm -f conftest.$ac_objext
2845 if { (ac_try="$ac_compile"
2846 case "(($ac_try" in
2847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2848   *) ac_try_echo=$ac_try;;
2849 esac
2850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2851   (eval "$ac_compile") 2>conftest.er1
2852   ac_status=$?
2853   grep -v '^ *+' conftest.er1 >conftest.err
2854   rm -f conftest.er1
2855   cat conftest.err >&5
2856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857   (exit $ac_status); } && {
2858          test -z "$ac_cxx_werror_flag" ||
2859          test ! -s conftest.err
2860        } && test -s conftest.$ac_objext; then
2861   :
2862 else
2863   echo "$as_me: failed program was:" >&5
2864 sed 's/^/| /' conftest.$ac_ext >&5
2865
2866         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2867          CXXFLAGS="-g"
2868          cat >conftest.$ac_ext <<_ACEOF
2869 /* confdefs.h.  */
2870 _ACEOF
2871 cat confdefs.h >>conftest.$ac_ext
2872 cat >>conftest.$ac_ext <<_ACEOF
2873 /* end confdefs.h.  */
2874
2875 int
2876 main ()
2877 {
2878
2879   ;
2880   return 0;
2881 }
2882 _ACEOF
2883 rm -f conftest.$ac_objext
2884 if { (ac_try="$ac_compile"
2885 case "(($ac_try" in
2886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887   *) ac_try_echo=$ac_try;;
2888 esac
2889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2890   (eval "$ac_compile") 2>conftest.er1
2891   ac_status=$?
2892   grep -v '^ *+' conftest.er1 >conftest.err
2893   rm -f conftest.er1
2894   cat conftest.err >&5
2895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896   (exit $ac_status); } && {
2897          test -z "$ac_cxx_werror_flag" ||
2898          test ! -s conftest.err
2899        } && test -s conftest.$ac_objext; then
2900   ac_cv_prog_cxx_g=yes
2901 else
2902   echo "$as_me: failed program was:" >&5
2903 sed 's/^/| /' conftest.$ac_ext >&5
2904
2905
2906 fi
2907
2908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2909 fi
2910
2911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2912 fi
2913
2914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2915    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2916 fi
2917 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2918 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
2919 if test "$ac_test_CXXFLAGS" = set; then
2920   CXXFLAGS=$ac_save_CXXFLAGS
2921 elif test $ac_cv_prog_cxx_g = yes; then
2922   if test "$GXX" = yes; then
2923     CXXFLAGS="-g -O2"
2924   else
2925     CXXFLAGS="-g"
2926   fi
2927 else
2928   if test "$GXX" = yes; then
2929     CXXFLAGS="-O2"
2930   else
2931     CXXFLAGS=
2932   fi
2933 fi
2934 ac_ext=c
2935 ac_cpp='$CPP $CPPFLAGS'
2936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2939
2940 if test -n "$ac_tool_prefix"; then
2941   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2942 set dummy ${ac_tool_prefix}ar; ac_word=$2
2943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2945 if test "${ac_cv_prog_AR+set}" = set; then
2946   echo $ECHO_N "(cached) $ECHO_C" >&6
2947 else
2948   if test -n "$AR"; then
2949   ac_cv_prog_AR="$AR" # Let the user override the test.
2950 else
2951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952 for as_dir in $PATH
2953 do
2954   IFS=$as_save_IFS
2955   test -z "$as_dir" && as_dir=.
2956   for ac_exec_ext in '' $ac_executable_extensions; do
2957   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2958     ac_cv_prog_AR="${ac_tool_prefix}ar"
2959     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2960     break 2
2961   fi
2962 done
2963 done
2964 IFS=$as_save_IFS
2965
2966 fi
2967 fi
2968 AR=$ac_cv_prog_AR
2969 if test -n "$AR"; then
2970   { echo "$as_me:$LINENO: result: $AR" >&5
2971 echo "${ECHO_T}$AR" >&6; }
2972 else
2973   { echo "$as_me:$LINENO: result: no" >&5
2974 echo "${ECHO_T}no" >&6; }
2975 fi
2976
2977
2978 fi
2979 if test -z "$ac_cv_prog_AR"; then
2980   ac_ct_AR=$AR
2981   # Extract the first word of "ar", so it can be a program name with args.
2982 set dummy ar; ac_word=$2
2983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2985 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2986   echo $ECHO_N "(cached) $ECHO_C" >&6
2987 else
2988   if test -n "$ac_ct_AR"; then
2989   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2990 else
2991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992 for as_dir in $PATH
2993 do
2994   IFS=$as_save_IFS
2995   test -z "$as_dir" && as_dir=.
2996   for ac_exec_ext in '' $ac_executable_extensions; do
2997   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2998     ac_cv_prog_ac_ct_AR="ar"
2999     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3000     break 2
3001   fi
3002 done
3003 done
3004 IFS=$as_save_IFS
3005
3006 fi
3007 fi
3008 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3009 if test -n "$ac_ct_AR"; then
3010   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3011 echo "${ECHO_T}$ac_ct_AR" >&6; }
3012 else
3013   { echo "$as_me:$LINENO: result: no" >&5
3014 echo "${ECHO_T}no" >&6; }
3015 fi
3016
3017   if test "x$ac_ct_AR" = x; then
3018     AR=""
3019   else
3020     case $cross_compiling:$ac_tool_warned in
3021 yes:)
3022 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3023 whose name does not start with the host triplet.  If you think this
3024 configuration is useful to you, please write to autoconf@gnu.org." >&5
3025 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3026 whose name does not start with the host triplet.  If you think this
3027 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3028 ac_tool_warned=yes ;;
3029 esac
3030     AR=$ac_ct_AR
3031   fi
3032 else
3033   AR="$ac_cv_prog_AR"
3034 fi
3035
3036 if test -n "$ac_tool_prefix"; then
3037   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3038 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3041 if test "${ac_cv_prog_RANLIB+set}" = set; then
3042   echo $ECHO_N "(cached) $ECHO_C" >&6
3043 else
3044   if test -n "$RANLIB"; then
3045   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3046 else
3047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048 for as_dir in $PATH
3049 do
3050   IFS=$as_save_IFS
3051   test -z "$as_dir" && as_dir=.
3052   for ac_exec_ext in '' $ac_executable_extensions; do
3053   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3054     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3055     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3056     break 2
3057   fi
3058 done
3059 done
3060 IFS=$as_save_IFS
3061
3062 fi
3063 fi
3064 RANLIB=$ac_cv_prog_RANLIB
3065 if test -n "$RANLIB"; then
3066   { echo "$as_me:$LINENO: result: $RANLIB" >&5
3067 echo "${ECHO_T}$RANLIB" >&6; }
3068 else
3069   { echo "$as_me:$LINENO: result: no" >&5
3070 echo "${ECHO_T}no" >&6; }
3071 fi
3072
3073
3074 fi
3075 if test -z "$ac_cv_prog_RANLIB"; then
3076   ac_ct_RANLIB=$RANLIB
3077   # Extract the first word of "ranlib", so it can be a program name with args.
3078 set dummy ranlib; ac_word=$2
3079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3081 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3082   echo $ECHO_N "(cached) $ECHO_C" >&6
3083 else
3084   if test -n "$ac_ct_RANLIB"; then
3085   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3086 else
3087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088 for as_dir in $PATH
3089 do
3090   IFS=$as_save_IFS
3091   test -z "$as_dir" && as_dir=.
3092   for ac_exec_ext in '' $ac_executable_extensions; do
3093   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3094     ac_cv_prog_ac_ct_RANLIB="ranlib"
3095     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3096     break 2
3097   fi
3098 done
3099 done
3100 IFS=$as_save_IFS
3101
3102 fi
3103 fi
3104 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3105 if test -n "$ac_ct_RANLIB"; then
3106   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3107 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3108 else
3109   { echo "$as_me:$LINENO: result: no" >&5
3110 echo "${ECHO_T}no" >&6; }
3111 fi
3112
3113   if test "x$ac_ct_RANLIB" = x; then
3114     RANLIB=":"
3115   else
3116     case $cross_compiling:$ac_tool_warned in
3117 yes:)
3118 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3119 whose name does not start with the host triplet.  If you think this
3120 configuration is useful to you, please write to autoconf@gnu.org." >&5
3121 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3122 whose name does not start with the host triplet.  If you think this
3123 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3124 ac_tool_warned=yes ;;
3125 esac
3126     RANLIB=$ac_ct_RANLIB
3127   fi
3128 else
3129   RANLIB="$ac_cv_prog_RANLIB"
3130 fi
3131
3132 cat >>confdefs.h <<_ACEOF
3133 #define CC $CC
3134 _ACEOF
3135
3136 cat >>confdefs.h <<_ACEOF
3137 #define CXX $CXX
3138 _ACEOF
3139
3140 cat >>confdefs.h <<_ACEOF
3141 #define AR $AR
3142 _ACEOF
3143
3144 cat >>confdefs.h <<_ACEOF
3145 #define RANLIB $RANLIB
3146 _ACEOF
3147
3148
3149 ac_ext=cpp
3150 ac_cpp='$CXXCPP $CPPFLAGS'
3151 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3152 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3153 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3154
3155
3156 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3157 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3158 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3159 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3160   echo $ECHO_N "(cached) $ECHO_C" >&6
3161 else
3162   cat >conftest.make <<\_ACEOF
3163 SHELL = /bin/sh
3164 all:
3165         @echo '@@@%%%=$(MAKE)=@@@%%%'
3166 _ACEOF
3167 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3168 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3169   *@@@%%%=?*=@@@%%%*)
3170     eval ac_cv_prog_make_${ac_make}_set=yes;;
3171   *)
3172     eval ac_cv_prog_make_${ac_make}_set=no;;
3173 esac
3174 rm -f conftest.make
3175 fi
3176 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3177   { echo "$as_me:$LINENO: result: yes" >&5
3178 echo "${ECHO_T}yes" >&6; }
3179   SET_MAKE=
3180 else
3181   { echo "$as_me:$LINENO: result: no" >&5
3182 echo "${ECHO_T}no" >&6; }
3183   SET_MAKE="MAKE=${MAKE-make}"
3184 fi
3185
3186
3187 if test $BUILD_PARSERS = true; then
3188
3189 # Extract the first word of "ragel", so it can be a program name with args.
3190 set dummy ragel; ac_word=$2
3191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3193 if test "${ac_cv_prog_RAGEL+set}" = set; then
3194   echo $ECHO_N "(cached) $ECHO_C" >&6
3195 else
3196   if test -n "$RAGEL"; then
3197   ac_cv_prog_RAGEL="$RAGEL" # Let the user override the test.
3198 else
3199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 for as_dir in $PATH
3201 do
3202   IFS=$as_save_IFS
3203   test -z "$as_dir" && as_dir=.
3204   for ac_exec_ext in '' $ac_executable_extensions; do
3205   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3206     ac_cv_prog_RAGEL="ragel"
3207     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3208     break 2
3209   fi
3210 done
3211 done
3212 IFS=$as_save_IFS
3213
3214 fi
3215 fi
3216 RAGEL=$ac_cv_prog_RAGEL
3217 if test -n "$RAGEL"; then
3218   { echo "$as_me:$LINENO: result: $RAGEL" >&5
3219 echo "${ECHO_T}$RAGEL" >&6; }
3220 else
3221   { echo "$as_me:$LINENO: result: no" >&5
3222 echo "${ECHO_T}no" >&6; }
3223 fi
3224
3225
3226 if test -z "$RAGEL"; then
3227         echo
3228         echo "error: ragel is required to build the parsers"
3229         echo
3230         exit 1
3231 fi
3232
3233 # Extract the first word of "kelbt", so it can be a program name with args.
3234 set dummy kelbt; ac_word=$2
3235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3237 if test "${ac_cv_prog_KELBT+set}" = set; then
3238   echo $ECHO_N "(cached) $ECHO_C" >&6
3239 else
3240   if test -n "$KELBT"; then
3241   ac_cv_prog_KELBT="$KELBT" # Let the user override the test.
3242 else
3243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244 for as_dir in $PATH
3245 do
3246   IFS=$as_save_IFS
3247   test -z "$as_dir" && as_dir=.
3248   for ac_exec_ext in '' $ac_executable_extensions; do
3249   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3250     ac_cv_prog_KELBT="kelbt"
3251     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3252     break 2
3253   fi
3254 done
3255 done
3256 IFS=$as_save_IFS
3257
3258 fi
3259 fi
3260 KELBT=$ac_cv_prog_KELBT
3261 if test -n "$KELBT"; then
3262   { echo "$as_me:$LINENO: result: $KELBT" >&5
3263 echo "${ECHO_T}$KELBT" >&6; }
3264 else
3265   { echo "$as_me:$LINENO: result: no" >&5
3266 echo "${ECHO_T}no" >&6; }
3267 fi
3268
3269
3270 if test -z "$KELBT"; then
3271         echo
3272         echo "error: kelbt is required to build the parsers"
3273         echo
3274         exit 1
3275 fi
3276
3277 fi # BUILD_PARSERS
3278
3279 # Extract the first word of "gdc", so it can be a program name with args.
3280 set dummy gdc; ac_word=$2
3281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3283 if test "${ac_cv_prog_GDC+set}" = set; then
3284   echo $ECHO_N "(cached) $ECHO_C" >&6
3285 else
3286   if test -n "$GDC"; then
3287   ac_cv_prog_GDC="$GDC" # Let the user override the test.
3288 else
3289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290 for as_dir in $PATH
3291 do
3292   IFS=$as_save_IFS
3293   test -z "$as_dir" && as_dir=.
3294   for ac_exec_ext in '' $ac_executable_extensions; do
3295   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3296     ac_cv_prog_GDC="gdc"
3297     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3298     break 2
3299   fi
3300 done
3301 done
3302 IFS=$as_save_IFS
3303
3304 fi
3305 fi
3306 GDC=$ac_cv_prog_GDC
3307 if test -n "$GDC"; then
3308   { echo "$as_me:$LINENO: result: $GDC" >&5
3309 echo "${ECHO_T}$GDC" >&6; }
3310 else
3311   { echo "$as_me:$LINENO: result: no" >&5
3312 echo "${ECHO_T}no" >&6; }
3313 fi
3314
3315
3316 if test -n "$GDC"; then
3317         cat >>confdefs.h <<_ACEOF
3318 #define GDC $GDC
3319 _ACEOF
3320
3321 fi
3322
3323 { echo "$as_me:$LINENO: checking for the Objective-C compiler" >&5
3324 echo $ECHO_N "checking for the Objective-C compiler... $ECHO_C" >&6; }
3325 cat > conftest.m <<EOF
3326 int main() { return 0; }
3327 EOF
3328 GOBJC=""
3329 if gcc -x objective-c conftest.m -o conftest.bin 2>/dev/null; then
3330         GOBJC="gcc -x objective-c"
3331         { echo "$as_me:$LINENO: result: yes" >&5
3332 echo "${ECHO_T}yes" >&6; }
3333         cat >>confdefs.h <<_ACEOF
3334 #define GOBJC $GOBJC
3335 _ACEOF
3336
3337 else
3338         { echo "$as_me:$LINENO: result: no" >&5
3339 echo "${ECHO_T}no" >&6; }
3340 fi
3341
3342
3343 # Extract the first word of "javac", so it can be a program name with args.
3344 set dummy javac; ac_word=$2
3345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3347 if test "${ac_cv_prog_JAVAC+set}" = set; then
3348   echo $ECHO_N "(cached) $ECHO_C" >&6
3349 else
3350   if test -n "$JAVAC"; then
3351   ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
3352 else
3353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354 for as_dir in $PATH
3355 do
3356   IFS=$as_save_IFS
3357   test -z "$as_dir" && as_dir=.
3358   for ac_exec_ext in '' $ac_executable_extensions; do
3359   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3360     ac_cv_prog_JAVAC="javac"
3361     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3362     break 2
3363   fi
3364 done
3365 done
3366 IFS=$as_save_IFS
3367
3368 fi
3369 fi
3370 JAVAC=$ac_cv_prog_JAVAC
3371 if test -n "$JAVAC"; then
3372   { echo "$as_me:$LINENO: result: $JAVAC" >&5
3373 echo "${ECHO_T}$JAVAC" >&6; }
3374 else
3375   { echo "$as_me:$LINENO: result: no" >&5
3376 echo "${ECHO_T}no" >&6; }
3377 fi
3378
3379
3380 if test -n "$JAVAC"; then
3381         cat >>confdefs.h <<_ACEOF
3382 #define JAVAC $JAVAC
3383 _ACEOF
3384
3385 fi
3386
3387 # Extract the first word of "txl", so it can be a program name with args.
3388 set dummy txl; ac_word=$2
3389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3391 if test "${ac_cv_prog_TXL+set}" = set; then
3392   echo $ECHO_N "(cached) $ECHO_C" >&6
3393 else
3394   if test -n "$TXL"; then
3395   ac_cv_prog_TXL="$TXL" # Let the user override the test.
3396 else
3397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3398 for as_dir in $PATH
3399 do
3400   IFS=$as_save_IFS
3401   test -z "$as_dir" && as_dir=.
3402   for ac_exec_ext in '' $ac_executable_extensions; do
3403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3404     ac_cv_prog_TXL="txl"
3405     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3406     break 2
3407   fi
3408 done
3409 done
3410 IFS=$as_save_IFS
3411
3412 fi
3413 fi
3414 TXL=$ac_cv_prog_TXL
3415 if test -n "$TXL"; then
3416   { echo "$as_me:$LINENO: result: $TXL" >&5
3417 echo "${ECHO_T}$TXL" >&6; }
3418 else
3419   { echo "$as_me:$LINENO: result: no" >&5
3420 echo "${ECHO_T}no" >&6; }
3421 fi
3422
3423
3424 if test -n "$TXL"; then
3425         cat >>confdefs.h <<_ACEOF
3426 #define TXL $TXL
3427 _ACEOF
3428
3429 fi
3430
3431 # Extract the first word of "ruby", so it can be a program name with args.
3432 set dummy ruby; ac_word=$2
3433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3435 if test "${ac_cv_prog_RUBY+set}" = set; then
3436   echo $ECHO_N "(cached) $ECHO_C" >&6
3437 else
3438   if test -n "$RUBY"; then
3439   ac_cv_prog_RUBY="$RUBY" # Let the user override the test.
3440 else
3441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442 for as_dir in $PATH
3443 do
3444   IFS=$as_save_IFS
3445   test -z "$as_dir" && as_dir=.
3446   for ac_exec_ext in '' $ac_executable_extensions; do
3447   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3448     ac_cv_prog_RUBY="ruby"
3449     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3450     break 2
3451   fi
3452 done
3453 done
3454 IFS=$as_save_IFS
3455
3456 fi
3457 fi
3458 RUBY=$ac_cv_prog_RUBY
3459 if test -n "$RUBY"; then
3460   { echo "$as_me:$LINENO: result: $RUBY" >&5
3461 echo "${ECHO_T}$RUBY" >&6; }
3462 else
3463   { echo "$as_me:$LINENO: result: no" >&5
3464 echo "${ECHO_T}no" >&6; }
3465 fi
3466
3467
3468 if test -n "$RUBY"; then
3469         cat >>confdefs.h <<_ACEOF
3470 #define RUBY $RUBY
3471 _ACEOF
3472
3473 fi
3474
3475 # Extract the first word of "gmcs", so it can be a program name with args.
3476 set dummy gmcs; ac_word=$2
3477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3479 if test "${ac_cv_prog_GMCS+set}" = set; then
3480   echo $ECHO_N "(cached) $ECHO_C" >&6
3481 else
3482   if test -n "$GMCS"; then
3483   ac_cv_prog_GMCS="$GMCS" # Let the user override the test.
3484 else
3485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3486 for as_dir in $PATH
3487 do
3488   IFS=$as_save_IFS
3489   test -z "$as_dir" && as_dir=.
3490   for ac_exec_ext in '' $ac_executable_extensions; do
3491   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3492     ac_cv_prog_GMCS="gmcs"
3493     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3494     break 2
3495   fi
3496 done
3497 done
3498 IFS=$as_save_IFS
3499
3500 fi
3501 fi
3502 GMCS=$ac_cv_prog_GMCS
3503 if test -n "$GMCS"; then
3504   { echo "$as_me:$LINENO: result: $GMCS" >&5
3505 echo "${ECHO_T}$GMCS" >&6; }
3506 else
3507   { echo "$as_me:$LINENO: result: no" >&5
3508 echo "${ECHO_T}no" >&6; }
3509 fi
3510
3511
3512 if test -n "$GMCS"; then
3513         cat >>confdefs.h <<_ACEOF
3514 #define GMCS $GMCS
3515 _ACEOF
3516
3517 fi
3518
3519 ac_config_files="$ac_config_files Makefile ragel/Makefile doc/Makefile test/Makefile"
3520
3521 cat >confcache <<\_ACEOF
3522 # This file is a shell script that caches the results of configure
3523 # tests run on this system so they can be shared between configure
3524 # scripts and configure runs, see configure's option --config-cache.
3525 # It is not useful on other systems.  If it contains results you don't
3526 # want to keep, you may remove or edit it.
3527 #
3528 # config.status only pays attention to the cache file if you give it
3529 # the --recheck option to rerun configure.
3530 #
3531 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3532 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3533 # following values.
3534
3535 _ACEOF
3536
3537 # The following way of writing the cache mishandles newlines in values,
3538 # but we know of no workaround that is simple, portable, and efficient.
3539 # So, we kill variables containing newlines.
3540 # Ultrix sh set writes to stderr and can't be redirected directly,
3541 # and sets the high bit in the cache file unless we assign to the vars.
3542 (
3543   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3544     eval ac_val=\$$ac_var
3545     case $ac_val in #(
3546     *${as_nl}*)
3547       case $ac_var in #(
3548       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
3549 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
3550       esac
3551       case $ac_var in #(
3552       _ | IFS | as_nl) ;; #(
3553       *) $as_unset $ac_var ;;
3554       esac ;;
3555     esac
3556   done
3557
3558   (set) 2>&1 |
3559     case $as_nl`(ac_space=' '; set) 2>&1` in #(
3560     *${as_nl}ac_space=\ *)
3561       # `set' does not quote correctly, so add quotes (double-quote
3562       # substitution turns \\\\ into \\, and sed turns \\ into \).
3563       sed -n \
3564         "s/'/'\\\\''/g;
3565           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3566       ;; #(
3567     *)
3568       # `set' quotes correctly as required by POSIX, so do not add quotes.
3569       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3570       ;;
3571     esac |
3572     sort
3573 ) |
3574   sed '
3575      /^ac_cv_env_/b end
3576      t clear
3577      :clear
3578      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3579      t end
3580      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3581      :end' >>confcache
3582 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3583   if test -w "$cache_file"; then
3584     test "x$cache_file" != "x/dev/null" &&
3585       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
3586 echo "$as_me: updating cache $cache_file" >&6;}
3587     cat confcache >$cache_file
3588   else
3589     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
3590 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3591   fi
3592 fi
3593 rm -f confcache
3594
3595 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3596 # Let make expand exec_prefix.
3597 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3598
3599 DEFS=-DHAVE_CONFIG_H
3600
3601 ac_libobjs=
3602 ac_ltlibobjs=
3603 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3604   # 1. Remove the extension, and $U if already installed.
3605   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3606   ac_i=`echo "$ac_i" | sed "$ac_script"`
3607   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
3608   #    will be set to the directory where LIBOBJS objects are built.
3609   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3610   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
3611 done
3612 LIBOBJS=$ac_libobjs
3613
3614 LTLIBOBJS=$ac_ltlibobjs
3615
3616
3617
3618 : ${CONFIG_STATUS=./config.status}
3619 ac_clean_files_save=$ac_clean_files
3620 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3621 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3622 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3623 cat >$CONFIG_STATUS <<_ACEOF
3624 #! $SHELL
3625 # Generated by $as_me.
3626 # Run this file to recreate the current configuration.
3627 # Compiler output produced by configure, useful for debugging
3628 # configure, is in config.log if it exists.
3629
3630 debug=false
3631 ac_cs_recheck=false
3632 ac_cs_silent=false
3633 SHELL=\${CONFIG_SHELL-$SHELL}
3634 _ACEOF
3635
3636 cat >>$CONFIG_STATUS <<\_ACEOF
3637 ## --------------------- ##
3638 ## M4sh Initialization.  ##
3639 ## --------------------- ##
3640
3641 # Be more Bourne compatible
3642 DUALCASE=1; export DUALCASE # for MKS sh
3643 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3644   emulate sh
3645   NULLCMD=:
3646   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3647   # is contrary to our usage.  Disable this feature.
3648   alias -g '${1+"$@"}'='"$@"'
3649   setopt NO_GLOB_SUBST
3650 else
3651   case `(set -o) 2>/dev/null` in
3652   *posix*) set -o posix ;;
3653 esac
3654
3655 fi
3656
3657
3658
3659
3660 # PATH needs CR
3661 # Avoid depending upon Character Ranges.
3662 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3663 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3664 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3665 as_cr_digits='0123456789'
3666 as_cr_alnum=$as_cr_Letters$as_cr_digits
3667
3668 # The user is always right.
3669 if test "${PATH_SEPARATOR+set}" != set; then
3670   echo "#! /bin/sh" >conf$$.sh
3671   echo  "exit 0"   >>conf$$.sh
3672   chmod +x conf$$.sh
3673   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3674     PATH_SEPARATOR=';'
3675   else
3676     PATH_SEPARATOR=:
3677   fi
3678   rm -f conf$$.sh
3679 fi
3680
3681 # Support unset when possible.
3682 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3683   as_unset=unset
3684 else
3685   as_unset=false
3686 fi
3687
3688
3689 # IFS
3690 # We need space, tab and new line, in precisely that order.  Quoting is
3691 # there to prevent editors from complaining about space-tab.
3692 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
3693 # splitting by setting IFS to empty value.)
3694 as_nl='
3695 '
3696 IFS=" ""        $as_nl"
3697
3698 # Find who we are.  Look in the path if we contain no directory separator.
3699 case $0 in
3700   *[\\/]* ) as_myself=$0 ;;
3701   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702 for as_dir in $PATH
3703 do
3704   IFS=$as_save_IFS
3705   test -z "$as_dir" && as_dir=.
3706   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3707 done
3708 IFS=$as_save_IFS
3709
3710      ;;
3711 esac
3712 # We did not find ourselves, most probably we were run as `sh COMMAND'
3713 # in which case we are not to be found in the path.
3714 if test "x$as_myself" = x; then
3715   as_myself=$0
3716 fi
3717 if test ! -f "$as_myself"; then
3718   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3719   { (exit 1); exit 1; }
3720 fi
3721
3722 # Work around bugs in pre-3.0 UWIN ksh.
3723 for as_var in ENV MAIL MAILPATH
3724 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
3725 done
3726 PS1='$ '
3727 PS2='> '
3728 PS4='+ '
3729
3730 # NLS nuisances.
3731 for as_var in \
3732   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3733   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3734   LC_TELEPHONE LC_TIME
3735 do
3736   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3737     eval $as_var=C; export $as_var
3738   else
3739     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
3740   fi
3741 done
3742
3743 # Required to use basename.
3744 if expr a : '\(a\)' >/dev/null 2>&1 &&
3745    test "X`expr 00001 : '.*\(...\)'`" = X001; then
3746   as_expr=expr
3747 else
3748   as_expr=false
3749 fi
3750
3751 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3752   as_basename=basename
3753 else
3754   as_basename=false
3755 fi
3756
3757
3758 # Name of the executable.
3759 as_me=`$as_basename -- "$0" ||
3760 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3761          X"$0" : 'X\(//\)$' \| \
3762          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3763 echo X/"$0" |
3764     sed '/^.*\/\([^/][^/]*\)\/*$/{
3765             s//\1/
3766             q
3767           }
3768           /^X\/\(\/\/\)$/{
3769             s//\1/
3770             q
3771           }
3772           /^X\/\(\/\).*/{
3773             s//\1/
3774             q
3775           }
3776           s/.*/./; q'`
3777
3778 # CDPATH.
3779 $as_unset CDPATH
3780
3781
3782
3783   as_lineno_1=$LINENO
3784   as_lineno_2=$LINENO
3785   test "x$as_lineno_1" != "x$as_lineno_2" &&
3786   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
3787
3788   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3789   # uniformly replaced by the line number.  The first 'sed' inserts a
3790   # line-number line after each line using $LINENO; the second 'sed'
3791   # does the real work.  The second script uses 'N' to pair each
3792   # line-number line with the line containing $LINENO, and appends
3793   # trailing '-' during substitution so that $LINENO is not a special
3794   # case at line end.
3795   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3796   # scripts with optimization help from Paolo Bonzini.  Blame Lee
3797   # E. McMahon (1931-1989) for sed's syntax.  :-)
3798   sed -n '
3799     p
3800     /[$]LINENO/=
3801   ' <$as_myself |
3802     sed '
3803       s/[$]LINENO.*/&-/
3804       t lineno
3805       b
3806       :lineno
3807       N
3808       :loop
3809       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
3810       t loop
3811       s/-\n.*//
3812     ' >$as_me.lineno &&
3813   chmod +x "$as_me.lineno" ||
3814     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
3815    { (exit 1); exit 1; }; }
3816
3817   # Don't try to exec as it changes $[0], causing all sort of problems
3818   # (the dirname of $[0] is not the place where we might find the
3819   # original and so on.  Autoconf is especially sensitive to this).
3820   . "./$as_me.lineno"
3821   # Exit status is that of the last command.
3822   exit
3823 }
3824
3825
3826 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3827   as_dirname=dirname
3828 else
3829   as_dirname=false
3830 fi
3831
3832 ECHO_C= ECHO_N= ECHO_T=
3833 case `echo -n x` in
3834 -n*)
3835   case `echo 'x\c'` in
3836   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
3837   *)   ECHO_C='\c';;
3838   esac;;
3839 *)
3840   ECHO_N='-n';;
3841 esac
3842
3843 if expr a : '\(a\)' >/dev/null 2>&1 &&
3844    test "X`expr 00001 : '.*\(...\)'`" = X001; then
3845   as_expr=expr
3846 else
3847   as_expr=false
3848 fi
3849
3850 rm -f conf$$ conf$$.exe conf$$.file
3851 if test -d conf$$.dir; then
3852   rm -f conf$$.dir/conf$$.file
3853 else
3854   rm -f conf$$.dir
3855   mkdir conf$$.dir
3856 fi
3857 echo >conf$$.file
3858 if ln -s conf$$.file conf$$ 2>/dev/null; then
3859   as_ln_s='ln -s'
3860   # ... but there are two gotchas:
3861   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3862   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3863   # In both cases, we have to default to `cp -p'.
3864   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3865     as_ln_s='cp -p'
3866 elif ln conf$$.file conf$$ 2>/dev/null; then
3867   as_ln_s=ln
3868 else
3869   as_ln_s='cp -p'
3870 fi
3871 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3872 rmdir conf$$.dir 2>/dev/null
3873
3874 if mkdir -p . 2>/dev/null; then
3875   as_mkdir_p=:
3876 else
3877   test -d ./-p && rmdir ./-p
3878   as_mkdir_p=false
3879 fi
3880
3881 if test -x / >/dev/null 2>&1; then
3882   as_test_x='test -x'
3883 else
3884   if ls -dL / >/dev/null 2>&1; then
3885     as_ls_L_option=L
3886   else
3887     as_ls_L_option=
3888   fi
3889   as_test_x='
3890     eval sh -c '\''
3891       if test -d "$1"; then
3892         test -d "$1/.";
3893       else
3894         case $1 in
3895         -*)set "./$1";;
3896         esac;
3897         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
3898         ???[sx]*):;;*)false;;esac;fi
3899     '\'' sh
3900   '
3901 fi
3902 as_executable_p=$as_test_x
3903
3904 # Sed expression to map a string onto a valid CPP name.
3905 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3906
3907 # Sed expression to map a string onto a valid variable name.
3908 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3909
3910
3911 exec 6>&1
3912
3913 # Save the log message, to keep $[0] and so on meaningful, and to
3914 # report actual input values of CONFIG_FILES etc. instead of their
3915 # values after options handling.
3916 ac_log="
3917 This file was extended by $as_me, which was
3918 generated by GNU Autoconf 2.61.  Invocation command line was
3919
3920   CONFIG_FILES    = $CONFIG_FILES
3921   CONFIG_HEADERS  = $CONFIG_HEADERS
3922   CONFIG_LINKS    = $CONFIG_LINKS
3923   CONFIG_COMMANDS = $CONFIG_COMMANDS
3924   $ $0 $@
3925
3926 on `(hostname || uname -n) 2>/dev/null | sed 1q`
3927 "
3928
3929 _ACEOF
3930
3931 cat >>$CONFIG_STATUS <<_ACEOF
3932 # Files that config.status was made for.
3933 config_files="$ac_config_files"
3934 config_headers="$ac_config_headers"
3935
3936 _ACEOF
3937
3938 cat >>$CONFIG_STATUS <<\_ACEOF
3939 ac_cs_usage="\
3940 \`$as_me' instantiates files from templates according to the
3941 current configuration.
3942
3943 Usage: $0 [OPTIONS] [FILE]...
3944
3945   -h, --help       print this help, then exit
3946   -V, --version    print version number and configuration settings, then exit
3947   -q, --quiet      do not print progress messages
3948   -d, --debug      don't remove temporary files
3949       --recheck    update $as_me by reconfiguring in the same conditions
3950   --file=FILE[:TEMPLATE]
3951                    instantiate the configuration file FILE
3952   --header=FILE[:TEMPLATE]
3953                    instantiate the configuration header FILE
3954
3955 Configuration files:
3956 $config_files
3957
3958 Configuration headers:
3959 $config_headers
3960
3961 Report bugs to <bug-autoconf@gnu.org>."
3962
3963 _ACEOF
3964 cat >>$CONFIG_STATUS <<_ACEOF
3965 ac_cs_version="\\
3966 config.status
3967 configured by $0, generated by GNU Autoconf 2.61,
3968   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
3969
3970 Copyright (C) 2006 Free Software Foundation, Inc.
3971 This config.status script is free software; the Free Software Foundation
3972 gives unlimited permission to copy, distribute and modify it."
3973
3974 ac_pwd='$ac_pwd'
3975 srcdir='$srcdir'
3976 _ACEOF
3977
3978 cat >>$CONFIG_STATUS <<\_ACEOF
3979 # If no file are specified by the user, then we need to provide default
3980 # value.  By we need to know if files were specified by the user.
3981 ac_need_defaults=:
3982 while test $# != 0
3983 do
3984   case $1 in
3985   --*=*)
3986     ac_option=`expr "X$1" : 'X\([^=]*\)='`
3987     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3988     ac_shift=:
3989     ;;
3990   *)
3991     ac_option=$1
3992     ac_optarg=$2
3993     ac_shift=shift
3994     ;;
3995   esac
3996
3997   case $ac_option in
3998   # Handling of the options.
3999   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4000     ac_cs_recheck=: ;;
4001   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4002     echo "$ac_cs_version"; exit ;;
4003   --debug | --debu | --deb | --de | --d | -d )
4004     debug=: ;;
4005   --file | --fil | --fi | --f )
4006     $ac_shift
4007     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4008     ac_need_defaults=false;;
4009   --header | --heade | --head | --hea )
4010     $ac_shift
4011     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4012     ac_need_defaults=false;;
4013   --he | --h)
4014     # Conflict between --help and --header
4015     { echo "$as_me: error: ambiguous option: $1
4016 Try \`$0 --help' for more information." >&2
4017    { (exit 1); exit 1; }; };;
4018   --help | --hel | -h )
4019     echo "$ac_cs_usage"; exit ;;
4020   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4021   | -silent | --silent | --silen | --sile | --sil | --si | --s)
4022     ac_cs_silent=: ;;
4023
4024   # This is an error.
4025   -*) { echo "$as_me: error: unrecognized option: $1
4026 Try \`$0 --help' for more information." >&2
4027    { (exit 1); exit 1; }; } ;;
4028
4029   *) ac_config_targets="$ac_config_targets $1"
4030      ac_need_defaults=false ;;
4031
4032   esac
4033   shift
4034 done
4035
4036 ac_configure_extra_args=
4037
4038 if $ac_cs_silent; then
4039   exec 6>/dev/null
4040   ac_configure_extra_args="$ac_configure_extra_args --silent"
4041 fi
4042
4043 _ACEOF
4044 cat >>$CONFIG_STATUS <<_ACEOF
4045 if \$ac_cs_recheck; then
4046   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4047   CONFIG_SHELL=$SHELL
4048   export CONFIG_SHELL
4049   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4050 fi
4051
4052 _ACEOF
4053 cat >>$CONFIG_STATUS <<\_ACEOF
4054 exec 5>>config.log
4055 {
4056   echo
4057   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4058 ## Running $as_me. ##
4059 _ASBOX
4060   echo "$ac_log"
4061 } >&5
4062
4063 _ACEOF
4064 cat >>$CONFIG_STATUS <<_ACEOF
4065 _ACEOF
4066
4067 cat >>$CONFIG_STATUS <<\_ACEOF
4068
4069 # Handling of arguments.
4070 for ac_config_target in $ac_config_targets
4071 do
4072   case $ac_config_target in
4073     "ragel/config.h") CONFIG_HEADERS="$CONFIG_HEADERS ragel/config.h" ;;
4074     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4075     "ragel/Makefile") CONFIG_FILES="$CONFIG_FILES ragel/Makefile" ;;
4076     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
4077     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
4078
4079   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4080 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4081    { (exit 1); exit 1; }; };;
4082   esac
4083 done
4084
4085
4086 # If the user did not use the arguments to specify the items to instantiate,
4087 # then the envvar interface is used.  Set only those that are not.
4088 # We use the long form for the default assignment because of an extremely
4089 # bizarre bug on SunOS 4.1.3.
4090 if $ac_need_defaults; then
4091   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4092   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4093 fi
4094
4095 # Have a temporary directory for convenience.  Make it in the build tree
4096 # simply because there is no reason against having it here, and in addition,
4097 # creating and moving files from /tmp can sometimes cause problems.
4098 # Hook for its removal unless debugging.
4099 # Note that there is a small window in which the directory will not be cleaned:
4100 # after its creation but before its name has been assigned to `$tmp'.
4101 $debug ||
4102 {
4103   tmp=
4104   trap 'exit_status=$?
4105   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
4106 ' 0
4107   trap '{ (exit 1); exit 1; }' 1 2 13 15
4108 }
4109 # Create a (secure) tmp directory for tmp files.
4110
4111 {
4112   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4113   test -n "$tmp" && test -d "$tmp"
4114 }  ||
4115 {
4116   tmp=./conf$$-$RANDOM
4117   (umask 077 && mkdir "$tmp")
4118 } ||
4119 {
4120    echo "$me: cannot create a temporary directory in ." >&2
4121    { (exit 1); exit 1; }
4122 }
4123
4124 #
4125 # Set up the sed scripts for CONFIG_FILES section.
4126 #
4127
4128 # No need to generate the scripts if there are no CONFIG_FILES.
4129 # This happens for instance when ./config.status config.h
4130 if test -n "$CONFIG_FILES"; then
4131
4132 _ACEOF
4133
4134
4135
4136 ac_delim='%!_!# '
4137 for ac_last_try in false false false false false :; do
4138   cat >conf$$subs.sed <<_ACEOF
4139 SHELL!$SHELL$ac_delim
4140 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
4141 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
4142 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
4143 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
4144 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
4145 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
4146 exec_prefix!$exec_prefix$ac_delim
4147 prefix!$prefix$ac_delim
4148 program_transform_name!$program_transform_name$ac_delim
4149 bindir!$bindir$ac_delim
4150 sbindir!$sbindir$ac_delim
4151 libexecdir!$libexecdir$ac_delim
4152 datarootdir!$datarootdir$ac_delim
4153 datadir!$datadir$ac_delim
4154 sysconfdir!$sysconfdir$ac_delim
4155 sharedstatedir!$sharedstatedir$ac_delim
4156 localstatedir!$localstatedir$ac_delim
4157 includedir!$includedir$ac_delim
4158 oldincludedir!$oldincludedir$ac_delim
4159 docdir!$docdir$ac_delim
4160 infodir!$infodir$ac_delim
4161 htmldir!$htmldir$ac_delim
4162 dvidir!$dvidir$ac_delim
4163 pdfdir!$pdfdir$ac_delim
4164 psdir!$psdir$ac_delim
4165 libdir!$libdir$ac_delim
4166 localedir!$localedir$ac_delim
4167 mandir!$mandir$ac_delim
4168 DEFS!$DEFS$ac_delim
4169 ECHO_C!$ECHO_C$ac_delim
4170 ECHO_N!$ECHO_N$ac_delim
4171 ECHO_T!$ECHO_T$ac_delim
4172 LIBS!$LIBS$ac_delim
4173 build_alias!$build_alias$ac_delim
4174 host_alias!$host_alias$ac_delim
4175 target_alias!$target_alias$ac_delim
4176 BUILD_PARSERS!$BUILD_PARSERS$ac_delim
4177 CC!$CC$ac_delim
4178 CFLAGS!$CFLAGS$ac_delim
4179 LDFLAGS!$LDFLAGS$ac_delim
4180 CPPFLAGS!$CPPFLAGS$ac_delim
4181 ac_ct_CC!$ac_ct_CC$ac_delim
4182 EXEEXT!$EXEEXT$ac_delim
4183 OBJEXT!$OBJEXT$ac_delim
4184 CXX!$CXX$ac_delim
4185 CXXFLAGS!$CXXFLAGS$ac_delim
4186 ac_ct_CXX!$ac_ct_CXX$ac_delim
4187 AR!$AR$ac_delim
4188 RANLIB!$RANLIB$ac_delim
4189 SET_MAKE!$SET_MAKE$ac_delim
4190 RAGEL!$RAGEL$ac_delim
4191 KELBT!$KELBT$ac_delim
4192 GDC!$GDC$ac_delim
4193 GOBJC!$GOBJC$ac_delim
4194 JAVAC!$JAVAC$ac_delim
4195 TXL!$TXL$ac_delim
4196 RUBY!$RUBY$ac_delim
4197 GMCS!$GMCS$ac_delim
4198 LIBOBJS!$LIBOBJS$ac_delim
4199 LTLIBOBJS!$LTLIBOBJS$ac_delim
4200 _ACEOF
4201
4202   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 61; then
4203     break
4204   elif $ac_last_try; then
4205     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
4206 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
4207    { (exit 1); exit 1; }; }
4208   else
4209     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4210   fi
4211 done
4212
4213 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
4214 if test -n "$ac_eof"; then
4215   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
4216   ac_eof=`expr $ac_eof + 1`
4217 fi
4218
4219 cat >>$CONFIG_STATUS <<_ACEOF
4220 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
4221 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
4222 _ACEOF
4223 sed '
4224 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
4225 s/^/s,@/; s/!/@,|#_!!_#|/
4226 :n
4227 t n
4228 s/'"$ac_delim"'$/,g/; t
4229 s/$/\\/; p
4230 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
4231 ' >>$CONFIG_STATUS <conf$$subs.sed
4232 rm -f conf$$subs.sed
4233 cat >>$CONFIG_STATUS <<_ACEOF
4234 :end
4235 s/|#_!!_#|//g
4236 CEOF$ac_eof
4237 _ACEOF
4238
4239
4240 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4241 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4242 # trailing colons and then remove the whole line if VPATH becomes empty
4243 # (actually we leave an empty line to preserve line numbers).
4244 if test "x$srcdir" = x.; then
4245   ac_vpsub='/^[  ]*VPATH[        ]*=/{
4246 s/:*\$(srcdir):*/:/
4247 s/:*\${srcdir}:*/:/
4248 s/:*@srcdir@:*/:/
4249 s/^\([^=]*=[     ]*\):*/\1/
4250 s/:*$//
4251 s/^[^=]*=[       ]*$//
4252 }'
4253 fi
4254
4255 cat >>$CONFIG_STATUS <<\_ACEOF
4256 fi # test -n "$CONFIG_FILES"
4257
4258
4259 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
4260 do
4261   case $ac_tag in
4262   :[FHLC]) ac_mode=$ac_tag; continue;;
4263   esac
4264   case $ac_mode$ac_tag in
4265   :[FHL]*:*);;
4266   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
4267 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
4268    { (exit 1); exit 1; }; };;
4269   :[FH]-) ac_tag=-:-;;
4270   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4271   esac
4272   ac_save_IFS=$IFS
4273   IFS=:
4274   set x $ac_tag
4275   IFS=$ac_save_IFS
4276   shift
4277   ac_file=$1
4278   shift
4279
4280   case $ac_mode in
4281   :L) ac_source=$1;;
4282   :[FH])
4283     ac_file_inputs=
4284     for ac_f
4285     do
4286       case $ac_f in
4287       -) ac_f="$tmp/stdin";;
4288       *) # Look for the file first in the build tree, then in the source tree
4289          # (if the path is not absolute).  The absolute path cannot be DOS-style,
4290          # because $ac_f cannot contain `:'.
4291          test -f "$ac_f" ||
4292            case $ac_f in
4293            [\\/$]*) false;;
4294            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4295            esac ||
4296            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
4297 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
4298    { (exit 1); exit 1; }; };;
4299       esac
4300       ac_file_inputs="$ac_file_inputs $ac_f"
4301     done
4302
4303     # Let's still pretend it is `configure' which instantiates (i.e., don't
4304     # use $as_me), people would be surprised to read:
4305     #    /* config.h.  Generated by config.status.  */
4306     configure_input="Generated from "`IFS=:
4307           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
4308     if test x"$ac_file" != x-; then
4309       configure_input="$ac_file.  $configure_input"
4310       { echo "$as_me:$LINENO: creating $ac_file" >&5
4311 echo "$as_me: creating $ac_file" >&6;}
4312     fi
4313
4314     case $ac_tag in
4315     *:-:* | *:-) cat >"$tmp/stdin";;
4316     esac
4317     ;;
4318   esac
4319
4320   ac_dir=`$as_dirname -- "$ac_file" ||
4321 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4322          X"$ac_file" : 'X\(//\)[^/]' \| \
4323          X"$ac_file" : 'X\(//\)$' \| \
4324          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4325 echo X"$ac_file" |
4326     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4327             s//\1/
4328             q
4329           }
4330           /^X\(\/\/\)[^/].*/{
4331             s//\1/
4332             q
4333           }
4334           /^X\(\/\/\)$/{
4335             s//\1/
4336             q
4337           }
4338           /^X\(\/\).*/{
4339             s//\1/
4340             q
4341           }
4342           s/.*/./; q'`
4343   { as_dir="$ac_dir"
4344   case $as_dir in #(
4345   -*) as_dir=./$as_dir;;
4346   esac
4347   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
4348     as_dirs=
4349     while :; do
4350       case $as_dir in #(
4351       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
4352       *) as_qdir=$as_dir;;
4353       esac
4354       as_dirs="'$as_qdir' $as_dirs"
4355       as_dir=`$as_dirname -- "$as_dir" ||
4356 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4357          X"$as_dir" : 'X\(//\)[^/]' \| \
4358          X"$as_dir" : 'X\(//\)$' \| \
4359          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4360 echo X"$as_dir" |
4361     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4362             s//\1/
4363             q
4364           }
4365           /^X\(\/\/\)[^/].*/{
4366             s//\1/
4367             q
4368           }
4369           /^X\(\/\/\)$/{
4370             s//\1/
4371             q
4372           }
4373           /^X\(\/\).*/{
4374             s//\1/
4375             q
4376           }
4377           s/.*/./; q'`
4378       test -d "$as_dir" && break
4379     done
4380     test -z "$as_dirs" || eval "mkdir $as_dirs"
4381   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
4382 echo "$as_me: error: cannot create directory $as_dir" >&2;}
4383    { (exit 1); exit 1; }; }; }
4384   ac_builddir=.
4385
4386 case "$ac_dir" in
4387 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4388 *)
4389   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4390   # A ".." for each directory in $ac_dir_suffix.
4391   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
4392   case $ac_top_builddir_sub in
4393   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4394   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4395   esac ;;
4396 esac
4397 ac_abs_top_builddir=$ac_pwd
4398 ac_abs_builddir=$ac_pwd$ac_dir_suffix
4399 # for backward compatibility:
4400 ac_top_builddir=$ac_top_build_prefix
4401
4402 case $srcdir in
4403   .)  # We are building in place.
4404     ac_srcdir=.
4405     ac_top_srcdir=$ac_top_builddir_sub
4406     ac_abs_top_srcdir=$ac_pwd ;;
4407   [\\/]* | ?:[\\/]* )  # Absolute name.
4408     ac_srcdir=$srcdir$ac_dir_suffix;
4409     ac_top_srcdir=$srcdir
4410     ac_abs_top_srcdir=$srcdir ;;
4411   *) # Relative name.
4412     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4413     ac_top_srcdir=$ac_top_build_prefix$srcdir
4414     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4415 esac
4416 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4417
4418
4419   case $ac_mode in
4420   :F)
4421   #
4422   # CONFIG_FILE
4423   #
4424
4425 _ACEOF
4426
4427 cat >>$CONFIG_STATUS <<\_ACEOF
4428 # If the template does not know about datarootdir, expand it.
4429 # FIXME: This hack should be removed a few years after 2.60.
4430 ac_datarootdir_hack=; ac_datarootdir_seen=
4431
4432 case `sed -n '/datarootdir/ {
4433   p
4434   q
4435 }
4436 /@datadir@/p
4437 /@docdir@/p
4438 /@infodir@/p
4439 /@localedir@/p
4440 /@mandir@/p
4441 ' $ac_file_inputs` in
4442 *datarootdir*) ac_datarootdir_seen=yes;;
4443 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4444   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4445 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4446 _ACEOF
4447 cat >>$CONFIG_STATUS <<_ACEOF
4448   ac_datarootdir_hack='
4449   s&@datadir@&$datadir&g
4450   s&@docdir@&$docdir&g
4451   s&@infodir@&$infodir&g
4452   s&@localedir@&$localedir&g
4453   s&@mandir@&$mandir&g
4454     s&\\\${datarootdir}&$datarootdir&g' ;;
4455 esac
4456 _ACEOF
4457
4458 # Neutralize VPATH when `$srcdir' = `.'.
4459 # Shell code in configure.ac might set extrasub.
4460 # FIXME: do we really want to maintain this feature?
4461 cat >>$CONFIG_STATUS <<_ACEOF
4462   sed "$ac_vpsub
4463 $extrasub
4464 _ACEOF
4465 cat >>$CONFIG_STATUS <<\_ACEOF
4466 :t
4467 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4468 s&@configure_input@&$configure_input&;t t
4469 s&@top_builddir@&$ac_top_builddir_sub&;t t
4470 s&@srcdir@&$ac_srcdir&;t t
4471 s&@abs_srcdir@&$ac_abs_srcdir&;t t
4472 s&@top_srcdir@&$ac_top_srcdir&;t t
4473 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4474 s&@builddir@&$ac_builddir&;t t
4475 s&@abs_builddir@&$ac_abs_builddir&;t t
4476 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4477 $ac_datarootdir_hack
4478 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
4479
4480 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4481   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
4482   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
4483   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4484 which seems to be undefined.  Please make sure it is defined." >&5
4485 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4486 which seems to be undefined.  Please make sure it is defined." >&2;}
4487
4488   rm -f "$tmp/stdin"
4489   case $ac_file in
4490   -) cat "$tmp/out"; rm -f "$tmp/out";;
4491   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
4492   esac
4493  ;;
4494   :H)
4495   #
4496   # CONFIG_HEADER
4497   #
4498 _ACEOF
4499
4500 # Transform confdefs.h into a sed script `conftest.defines', that
4501 # substitutes the proper values into config.h.in to produce config.h.
4502 rm -f conftest.defines conftest.tail
4503 # First, append a space to every undef/define line, to ease matching.
4504 echo 's/$/ /' >conftest.defines
4505 # Then, protect against being on the right side of a sed subst, or in
4506 # an unquoted here document, in config.status.  If some macros were
4507 # called several times there might be several #defines for the same
4508 # symbol, which is useless.  But do not sort them, since the last
4509 # AC_DEFINE must be honored.
4510 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
4511 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
4512 # NAME is the cpp macro being defined, VALUE is the value it is being given.
4513 # PARAMS is the parameter list in the macro definition--in most cases, it's
4514 # just an empty string.
4515 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
4516 ac_dB='\\)[      (].*,\\1define\\2'
4517 ac_dC=' '
4518 ac_dD=' ,'
4519
4520 uniq confdefs.h |
4521   sed -n '
4522         t rset
4523         :rset
4524         s/^[     ]*#[    ]*define[       ][      ]*//
4525         t ok
4526         d
4527         :ok
4528         s/[\\&,]/\\&/g
4529         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
4530         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
4531   ' >>conftest.defines
4532
4533 # Remove the space that was appended to ease matching.
4534 # Then replace #undef with comments.  This is necessary, for
4535 # example, in the case of _POSIX_SOURCE, which is predefined and required
4536 # on some systems where configure will not decide to define it.
4537 # (The regexp can be short, since the line contains either #define or #undef.)
4538 echo 's/ $//
4539 s,^[     #]*u.*,/* & */,' >>conftest.defines
4540
4541 # Break up conftest.defines:
4542 ac_max_sed_lines=50
4543
4544 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
4545 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
4546 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
4547 # et cetera.
4548 ac_in='$ac_file_inputs'
4549 ac_out='"$tmp/out1"'
4550 ac_nxt='"$tmp/out2"'
4551
4552 while :
4553 do
4554   # Write a here document:
4555     cat >>$CONFIG_STATUS <<_ACEOF
4556     # First, check the format of the line:
4557     cat >"\$tmp/defines.sed" <<\\CEOF
4558 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
4559 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
4560 b
4561 :def
4562 _ACEOF
4563   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
4564   echo 'CEOF
4565     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
4566   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
4567   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
4568   grep . conftest.tail >/dev/null || break
4569   rm -f conftest.defines
4570   mv conftest.tail conftest.defines
4571 done
4572 rm -f conftest.defines conftest.tail
4573
4574 echo "ac_result=$ac_in" >>$CONFIG_STATUS
4575 cat >>$CONFIG_STATUS <<\_ACEOF
4576   if test x"$ac_file" != x-; then
4577     echo "/* $configure_input  */" >"$tmp/config.h"
4578     cat "$ac_result" >>"$tmp/config.h"
4579     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
4580       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4581 echo "$as_me: $ac_file is unchanged" >&6;}
4582     else
4583       rm -f $ac_file
4584       mv "$tmp/config.h" $ac_file
4585     fi
4586   else
4587     echo "/* $configure_input  */"
4588     cat "$ac_result"
4589   fi
4590   rm -f "$tmp/out12"
4591  ;;
4592
4593
4594   esac
4595
4596 done # for ac_tag
4597
4598
4599 { (exit 0); exit 0; }
4600 _ACEOF
4601 chmod +x $CONFIG_STATUS
4602 ac_clean_files=$ac_clean_files_save
4603
4604
4605 # configure is writing to config.log, and then calls config.status.
4606 # config.status does its own redirection, appending to config.log.
4607 # Unfortunately, on DOS this fails, as config.log is still kept open
4608 # by configure, so config.status won't be able to write to it; its
4609 # output is simply discarded.  So we exec the FD to /dev/null,
4610 # effectively closing config.log, so it can be properly (re)opened and
4611 # appended to by config.status.  When coming back to configure, we
4612 # need to make the FD available again.
4613 if test "$no_create" != yes; then
4614   ac_cs_success=:
4615   ac_config_status_args=
4616   test "$silent" = yes &&
4617     ac_config_status_args="$ac_config_status_args --quiet"
4618   exec 5>/dev/null
4619   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4620   exec 5>>config.log
4621   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4622   # would make configure fail if this is the last instruction.
4623   $ac_cs_success || { (exit 1); exit 1; }
4624 fi
4625
4626
4627 echo "configuration of ragel complete"