]> git.decadent.org.uk Git - dak.git/blob - tools/dsync-0.0/configure
LOCAL: Remove replay check
[dak.git] / tools / dsync-0.0 / 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="configure.in"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 #  include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #  include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 CC
654 CFLAGS
655 LDFLAGS
656 CPPFLAGS
657 ac_ct_CC
658 EXEEXT
659 OBJEXT
660 build
661 build_cpu
662 build_vendor
663 build_os
664 host
665 host_cpu
666 host_vendor
667 host_os
668 CXX
669 CXXFLAGS
670 ac_ct_CXX
671 AR
672 PTHREADLIB
673 CXXCPP
674 GREP
675 EGREP
676 HAVE_C9X
677 DEBIANDOC_HTML
678 DEBIANDOC_TEXT
679 YODL_MAN
680 LIBOBJS
681 LTLIBOBJS'
682 ac_subst_files=''
683       ac_precious_vars='build_alias
684 host_alias
685 target_alias
686 CC
687 CFLAGS
688 LDFLAGS
689 LIBS
690 CPPFLAGS
691 CXX
692 CXXFLAGS
693 CCC
694 CXXCPP'
695
696
697 # Initialize some variables set by options.
698 ac_init_help=
699 ac_init_version=false
700 # The variables have the same names as the options, with
701 # dashes changed to underlines.
702 cache_file=/dev/null
703 exec_prefix=NONE
704 no_create=
705 no_recursion=
706 prefix=NONE
707 program_prefix=NONE
708 program_suffix=NONE
709 program_transform_name=s,x,x,
710 silent=
711 site=
712 srcdir=
713 verbose=
714 x_includes=NONE
715 x_libraries=NONE
716
717 # Installation directory options.
718 # These are left unexpanded so users can "make install exec_prefix=/foo"
719 # and all the variables that are supposed to be based on exec_prefix
720 # by default will actually change.
721 # Use braces instead of parens because sh, perl, etc. also accept them.
722 # (The list follows the same order as the GNU Coding Standards.)
723 bindir='${exec_prefix}/bin'
724 sbindir='${exec_prefix}/sbin'
725 libexecdir='${exec_prefix}/libexec'
726 datarootdir='${prefix}/share'
727 datadir='${datarootdir}'
728 sysconfdir='${prefix}/etc'
729 sharedstatedir='${prefix}/com'
730 localstatedir='${prefix}/var'
731 includedir='${prefix}/include'
732 oldincludedir='/usr/include'
733 docdir='${datarootdir}/doc/${PACKAGE}'
734 infodir='${datarootdir}/info'
735 htmldir='${docdir}'
736 dvidir='${docdir}'
737 pdfdir='${docdir}'
738 psdir='${docdir}'
739 libdir='${exec_prefix}/lib'
740 localedir='${datarootdir}/locale'
741 mandir='${datarootdir}/man'
742
743 ac_prev=
744 ac_dashdash=
745 for ac_option
746 do
747   # If the previous option needs an argument, assign it.
748   if test -n "$ac_prev"; then
749     eval $ac_prev=\$ac_option
750     ac_prev=
751     continue
752   fi
753
754   case $ac_option in
755   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
756   *)    ac_optarg=yes ;;
757   esac
758
759   # Accept the important Cygnus configure options, so we can diagnose typos.
760
761   case $ac_dashdash$ac_option in
762   --)
763     ac_dashdash=yes ;;
764
765   -bindir | --bindir | --bindi | --bind | --bin | --bi)
766     ac_prev=bindir ;;
767   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
768     bindir=$ac_optarg ;;
769
770   -build | --build | --buil | --bui | --bu)
771     ac_prev=build_alias ;;
772   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
773     build_alias=$ac_optarg ;;
774
775   -cache-file | --cache-file | --cache-fil | --cache-fi \
776   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
777     ac_prev=cache_file ;;
778   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
779   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
780     cache_file=$ac_optarg ;;
781
782   --config-cache | -C)
783     cache_file=config.cache ;;
784
785   -datadir | --datadir | --datadi | --datad)
786     ac_prev=datadir ;;
787   -datadir=* | --datadir=* | --datadi=* | --datad=*)
788     datadir=$ac_optarg ;;
789
790   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
791   | --dataroo | --dataro | --datar)
792     ac_prev=datarootdir ;;
793   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
794   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
795     datarootdir=$ac_optarg ;;
796
797   -disable-* | --disable-*)
798     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
799     # Reject names that are not valid shell variable names.
800     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
802    { (exit 1); exit 1; }; }
803     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
804     eval enable_$ac_feature=no ;;
805
806   -docdir | --docdir | --docdi | --doc | --do)
807     ac_prev=docdir ;;
808   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
809     docdir=$ac_optarg ;;
810
811   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
812     ac_prev=dvidir ;;
813   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
814     dvidir=$ac_optarg ;;
815
816   -enable-* | --enable-*)
817     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
818     # Reject names that are not valid shell variable names.
819     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
820       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
821    { (exit 1); exit 1; }; }
822     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
823     eval enable_$ac_feature=\$ac_optarg ;;
824
825   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
826   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
827   | --exec | --exe | --ex)
828     ac_prev=exec_prefix ;;
829   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
830   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
831   | --exec=* | --exe=* | --ex=*)
832     exec_prefix=$ac_optarg ;;
833
834   -gas | --gas | --ga | --g)
835     # Obsolete; use --with-gas.
836     with_gas=yes ;;
837
838   -help | --help | --hel | --he | -h)
839     ac_init_help=long ;;
840   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
841     ac_init_help=recursive ;;
842   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
843     ac_init_help=short ;;
844
845   -host | --host | --hos | --ho)
846     ac_prev=host_alias ;;
847   -host=* | --host=* | --hos=* | --ho=*)
848     host_alias=$ac_optarg ;;
849
850   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
851     ac_prev=htmldir ;;
852   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
853   | --ht=*)
854     htmldir=$ac_optarg ;;
855
856   -includedir | --includedir | --includedi | --included | --include \
857   | --includ | --inclu | --incl | --inc)
858     ac_prev=includedir ;;
859   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
860   | --includ=* | --inclu=* | --incl=* | --inc=*)
861     includedir=$ac_optarg ;;
862
863   -infodir | --infodir | --infodi | --infod | --info | --inf)
864     ac_prev=infodir ;;
865   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
866     infodir=$ac_optarg ;;
867
868   -libdir | --libdir | --libdi | --libd)
869     ac_prev=libdir ;;
870   -libdir=* | --libdir=* | --libdi=* | --libd=*)
871     libdir=$ac_optarg ;;
872
873   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
874   | --libexe | --libex | --libe)
875     ac_prev=libexecdir ;;
876   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
877   | --libexe=* | --libex=* | --libe=*)
878     libexecdir=$ac_optarg ;;
879
880   -localedir | --localedir | --localedi | --localed | --locale)
881     ac_prev=localedir ;;
882   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
883     localedir=$ac_optarg ;;
884
885   -localstatedir | --localstatedir | --localstatedi | --localstated \
886   | --localstate | --localstat | --localsta | --localst | --locals)
887     ac_prev=localstatedir ;;
888   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
889   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
890     localstatedir=$ac_optarg ;;
891
892   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
893     ac_prev=mandir ;;
894   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
895     mandir=$ac_optarg ;;
896
897   -nfp | --nfp | --nf)
898     # Obsolete; use --without-fp.
899     with_fp=no ;;
900
901   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
902   | --no-cr | --no-c | -n)
903     no_create=yes ;;
904
905   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
906   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
907     no_recursion=yes ;;
908
909   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
910   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
911   | --oldin | --oldi | --old | --ol | --o)
912     ac_prev=oldincludedir ;;
913   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
914   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
915   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
916     oldincludedir=$ac_optarg ;;
917
918   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
919     ac_prev=prefix ;;
920   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
921     prefix=$ac_optarg ;;
922
923   -program-prefix | --program-prefix | --program-prefi | --program-pref \
924   | --program-pre | --program-pr | --program-p)
925     ac_prev=program_prefix ;;
926   -program-prefix=* | --program-prefix=* | --program-prefi=* \
927   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
928     program_prefix=$ac_optarg ;;
929
930   -program-suffix | --program-suffix | --program-suffi | --program-suff \
931   | --program-suf | --program-su | --program-s)
932     ac_prev=program_suffix ;;
933   -program-suffix=* | --program-suffix=* | --program-suffi=* \
934   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
935     program_suffix=$ac_optarg ;;
936
937   -program-transform-name | --program-transform-name \
938   | --program-transform-nam | --program-transform-na \
939   | --program-transform-n | --program-transform- \
940   | --program-transform | --program-transfor \
941   | --program-transfo | --program-transf \
942   | --program-trans | --program-tran \
943   | --progr-tra | --program-tr | --program-t)
944     ac_prev=program_transform_name ;;
945   -program-transform-name=* | --program-transform-name=* \
946   | --program-transform-nam=* | --program-transform-na=* \
947   | --program-transform-n=* | --program-transform-=* \
948   | --program-transform=* | --program-transfor=* \
949   | --program-transfo=* | --program-transf=* \
950   | --program-trans=* | --program-tran=* \
951   | --progr-tra=* | --program-tr=* | --program-t=*)
952     program_transform_name=$ac_optarg ;;
953
954   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
955     ac_prev=pdfdir ;;
956   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
957     pdfdir=$ac_optarg ;;
958
959   -psdir | --psdir | --psdi | --psd | --ps)
960     ac_prev=psdir ;;
961   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
962     psdir=$ac_optarg ;;
963
964   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
965   | -silent | --silent | --silen | --sile | --sil)
966     silent=yes ;;
967
968   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
969     ac_prev=sbindir ;;
970   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
971   | --sbi=* | --sb=*)
972     sbindir=$ac_optarg ;;
973
974   -sharedstatedir | --sharedstatedir | --sharedstatedi \
975   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
976   | --sharedst | --shareds | --shared | --share | --shar \
977   | --sha | --sh)
978     ac_prev=sharedstatedir ;;
979   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
980   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
981   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
982   | --sha=* | --sh=*)
983     sharedstatedir=$ac_optarg ;;
984
985   -site | --site | --sit)
986     ac_prev=site ;;
987   -site=* | --site=* | --sit=*)
988     site=$ac_optarg ;;
989
990   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
991     ac_prev=srcdir ;;
992   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
993     srcdir=$ac_optarg ;;
994
995   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
996   | --syscon | --sysco | --sysc | --sys | --sy)
997     ac_prev=sysconfdir ;;
998   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
999   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1000     sysconfdir=$ac_optarg ;;
1001
1002   -target | --target | --targe | --targ | --tar | --ta | --t)
1003     ac_prev=target_alias ;;
1004   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1005     target_alias=$ac_optarg ;;
1006
1007   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1008     verbose=yes ;;
1009
1010   -version | --version | --versio | --versi | --vers | -V)
1011     ac_init_version=: ;;
1012
1013   -with-* | --with-*)
1014     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1015     # Reject names that are not valid shell variable names.
1016     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1017       { echo "$as_me: error: invalid package name: $ac_package" >&2
1018    { (exit 1); exit 1; }; }
1019     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1020     eval with_$ac_package=\$ac_optarg ;;
1021
1022   -without-* | --without-*)
1023     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1024     # Reject names that are not valid shell variable names.
1025     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1026       { echo "$as_me: error: invalid package name: $ac_package" >&2
1027    { (exit 1); exit 1; }; }
1028     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1029     eval with_$ac_package=no ;;
1030
1031   --x)
1032     # Obsolete; use --with-x.
1033     with_x=yes ;;
1034
1035   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1036   | --x-incl | --x-inc | --x-in | --x-i)
1037     ac_prev=x_includes ;;
1038   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1039   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1040     x_includes=$ac_optarg ;;
1041
1042   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1043   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1044     ac_prev=x_libraries ;;
1045   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1046   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1047     x_libraries=$ac_optarg ;;
1048
1049   -*) { echo "$as_me: error: unrecognized option: $ac_option
1050 Try \`$0 --help' for more information." >&2
1051    { (exit 1); exit 1; }; }
1052     ;;
1053
1054   *=*)
1055     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1056     # Reject names that are not valid shell variable names.
1057     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1058       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1059    { (exit 1); exit 1; }; }
1060     eval $ac_envvar=\$ac_optarg
1061     export $ac_envvar ;;
1062
1063   *)
1064     # FIXME: should be removed in autoconf 3.0.
1065     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1066     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1067       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1068     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1069     ;;
1070
1071   esac
1072 done
1073
1074 if test -n "$ac_prev"; then
1075   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1076   { echo "$as_me: error: missing argument to $ac_option" >&2
1077    { (exit 1); exit 1; }; }
1078 fi
1079
1080 # Be sure to have absolute directory names.
1081 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1082                 datadir sysconfdir sharedstatedir localstatedir includedir \
1083                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1084                 libdir localedir mandir
1085 do
1086   eval ac_val=\$$ac_var
1087   case $ac_val in
1088     [\\/$]* | ?:[\\/]* )  continue;;
1089     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1090   esac
1091   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1092    { (exit 1); exit 1; }; }
1093 done
1094
1095 # There might be people who depend on the old broken behavior: `$host'
1096 # used to hold the argument of --host etc.
1097 # FIXME: To remove some day.
1098 build=$build_alias
1099 host=$host_alias
1100 target=$target_alias
1101
1102 # FIXME: To remove some day.
1103 if test "x$host_alias" != x; then
1104   if test "x$build_alias" = x; then
1105     cross_compiling=maybe
1106     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1107     If a cross compiler is detected then cross compile mode will be used." >&2
1108   elif test "x$build_alias" != "x$host_alias"; then
1109     cross_compiling=yes
1110   fi
1111 fi
1112
1113 ac_tool_prefix=
1114 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1115
1116 test "$silent" = yes && exec 6>/dev/null
1117
1118
1119 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1120 ac_ls_di=`ls -di .` &&
1121 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1122   { echo "$as_me: error: Working directory cannot be determined" >&2
1123    { (exit 1); exit 1; }; }
1124 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1125   { echo "$as_me: error: pwd does not report name of working directory" >&2
1126    { (exit 1); exit 1; }; }
1127
1128
1129 # Find the source files, if location was not specified.
1130 if test -z "$srcdir"; then
1131   ac_srcdir_defaulted=yes
1132   # Try the directory containing this script, then the parent directory.
1133   ac_confdir=`$as_dirname -- "$0" ||
1134 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1135          X"$0" : 'X\(//\)[^/]' \| \
1136          X"$0" : 'X\(//\)$' \| \
1137          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1138 echo X"$0" |
1139     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1140             s//\1/
1141             q
1142           }
1143           /^X\(\/\/\)[^/].*/{
1144             s//\1/
1145             q
1146           }
1147           /^X\(\/\/\)$/{
1148             s//\1/
1149             q
1150           }
1151           /^X\(\/\).*/{
1152             s//\1/
1153             q
1154           }
1155           s/.*/./; q'`
1156   srcdir=$ac_confdir
1157   if test ! -r "$srcdir/$ac_unique_file"; then
1158     srcdir=..
1159   fi
1160 else
1161   ac_srcdir_defaulted=no
1162 fi
1163 if test ! -r "$srcdir/$ac_unique_file"; then
1164   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1165   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1166    { (exit 1); exit 1; }; }
1167 fi
1168 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1169 ac_abs_confdir=`(
1170         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1171    { (exit 1); exit 1; }; }
1172         pwd)`
1173 # When building in place, set srcdir=.
1174 if test "$ac_abs_confdir" = "$ac_pwd"; then
1175   srcdir=.
1176 fi
1177 # Remove unnecessary trailing slashes from srcdir.
1178 # Double slashes in file names in object file debugging info
1179 # mess up M-x gdb in Emacs.
1180 case $srcdir in
1181 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1182 esac
1183 for ac_var in $ac_precious_vars; do
1184   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1185   eval ac_env_${ac_var}_value=\$${ac_var}
1186   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1187   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1188 done
1189
1190 #
1191 # Report the --help message.
1192 #
1193 if test "$ac_init_help" = "long"; then
1194   # Omit some internal or obsolete options to make the list less imposing.
1195   # This message is too long to be a string in the A/UX 3.1 sh.
1196   cat <<_ACEOF
1197 \`configure' configures this package to adapt to many kinds of systems.
1198
1199 Usage: $0 [OPTION]... [VAR=VALUE]...
1200
1201 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1202 VAR=VALUE.  See below for descriptions of some of the useful variables.
1203
1204 Defaults for the options are specified in brackets.
1205
1206 Configuration:
1207   -h, --help              display this help and exit
1208       --help=short        display options specific to this package
1209       --help=recursive    display the short help of all the included packages
1210   -V, --version           display version information and exit
1211   -q, --quiet, --silent   do not print \`checking...' messages
1212       --cache-file=FILE   cache test results in FILE [disabled]
1213   -C, --config-cache      alias for \`--cache-file=config.cache'
1214   -n, --no-create         do not create output files
1215       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1216
1217 Installation directories:
1218   --prefix=PREFIX         install architecture-independent files in PREFIX
1219                           [$ac_default_prefix]
1220   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1221                           [PREFIX]
1222
1223 By default, \`make install' will install all the files in
1224 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1225 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1226 for instance \`--prefix=\$HOME'.
1227
1228 For better control, use the options below.
1229
1230 Fine tuning of the installation directories:
1231   --bindir=DIR           user executables [EPREFIX/bin]
1232   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1233   --libexecdir=DIR       program executables [EPREFIX/libexec]
1234   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1235   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1236   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1237   --libdir=DIR           object code libraries [EPREFIX/lib]
1238   --includedir=DIR       C header files [PREFIX/include]
1239   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1240   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1241   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1242   --infodir=DIR          info documentation [DATAROOTDIR/info]
1243   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1244   --mandir=DIR           man documentation [DATAROOTDIR/man]
1245   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1246   --htmldir=DIR          html documentation [DOCDIR]
1247   --dvidir=DIR           dvi documentation [DOCDIR]
1248   --pdfdir=DIR           pdf documentation [DOCDIR]
1249   --psdir=DIR            ps documentation [DOCDIR]
1250 _ACEOF
1251
1252   cat <<\_ACEOF
1253
1254 System types:
1255   --build=BUILD     configure for building on BUILD [guessed]
1256   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1257 _ACEOF
1258 fi
1259
1260 if test -n "$ac_init_help"; then
1261
1262   cat <<\_ACEOF
1263
1264 Some influential environment variables:
1265   CC          C compiler command
1266   CFLAGS      C compiler flags
1267   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1268               nonstandard directory <lib dir>
1269   LIBS        libraries to pass to the linker, e.g. -l<library>
1270   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1271               you have headers in a nonstandard directory <include dir>
1272   CXX         C++ compiler command
1273   CXXFLAGS    C++ compiler flags
1274   CXXCPP      C++ preprocessor
1275
1276 Use these variables to override the choices made by `configure' or to help
1277 it to find libraries and programs with nonstandard names/locations.
1278
1279 _ACEOF
1280 ac_status=$?
1281 fi
1282
1283 if test "$ac_init_help" = "recursive"; then
1284   # If there are subdirs, report their specific --help.
1285   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1286     test -d "$ac_dir" || continue
1287     ac_builddir=.
1288
1289 case "$ac_dir" in
1290 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1291 *)
1292   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1293   # A ".." for each directory in $ac_dir_suffix.
1294   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1295   case $ac_top_builddir_sub in
1296   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1297   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1298   esac ;;
1299 esac
1300 ac_abs_top_builddir=$ac_pwd
1301 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1302 # for backward compatibility:
1303 ac_top_builddir=$ac_top_build_prefix
1304
1305 case $srcdir in
1306   .)  # We are building in place.
1307     ac_srcdir=.
1308     ac_top_srcdir=$ac_top_builddir_sub
1309     ac_abs_top_srcdir=$ac_pwd ;;
1310   [\\/]* | ?:[\\/]* )  # Absolute name.
1311     ac_srcdir=$srcdir$ac_dir_suffix;
1312     ac_top_srcdir=$srcdir
1313     ac_abs_top_srcdir=$srcdir ;;
1314   *) # Relative name.
1315     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1316     ac_top_srcdir=$ac_top_build_prefix$srcdir
1317     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1318 esac
1319 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1320
1321     cd "$ac_dir" || { ac_status=$?; continue; }
1322     # Check for guested configure.
1323     if test -f "$ac_srcdir/configure.gnu"; then
1324       echo &&
1325       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1326     elif test -f "$ac_srcdir/configure"; then
1327       echo &&
1328       $SHELL "$ac_srcdir/configure" --help=recursive
1329     else
1330       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1331     fi || ac_status=$?
1332     cd "$ac_pwd" || { ac_status=$?; break; }
1333   done
1334 fi
1335
1336 test -n "$ac_init_help" && exit $ac_status
1337 if $ac_init_version; then
1338   cat <<\_ACEOF
1339 configure
1340 generated by GNU Autoconf 2.61
1341
1342 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1343 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1344 This configure script is free software; the Free Software Foundation
1345 gives unlimited permission to copy, distribute and modify it.
1346 _ACEOF
1347   exit
1348 fi
1349 cat >config.log <<_ACEOF
1350 This file contains any messages produced by compilers while
1351 running configure, to aid debugging if configure makes a mistake.
1352
1353 It was created by $as_me, which was
1354 generated by GNU Autoconf 2.61.  Invocation command line was
1355
1356   $ $0 $@
1357
1358 _ACEOF
1359 exec 5>>config.log
1360 {
1361 cat <<_ASUNAME
1362 ## --------- ##
1363 ## Platform. ##
1364 ## --------- ##
1365
1366 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1367 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1368 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1369 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1370 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1371
1372 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1373 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1374
1375 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1376 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1377 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1378 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1379 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1380 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1381 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1382
1383 _ASUNAME
1384
1385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1386 for as_dir in $PATH
1387 do
1388   IFS=$as_save_IFS
1389   test -z "$as_dir" && as_dir=.
1390   echo "PATH: $as_dir"
1391 done
1392 IFS=$as_save_IFS
1393
1394 } >&5
1395
1396 cat >&5 <<_ACEOF
1397
1398
1399 ## ----------- ##
1400 ## Core tests. ##
1401 ## ----------- ##
1402
1403 _ACEOF
1404
1405
1406 # Keep a trace of the command line.
1407 # Strip out --no-create and --no-recursion so they do not pile up.
1408 # Strip out --silent because we don't want to record it for future runs.
1409 # Also quote any args containing shell meta-characters.
1410 # Make two passes to allow for proper duplicate-argument suppression.
1411 ac_configure_args=
1412 ac_configure_args0=
1413 ac_configure_args1=
1414 ac_must_keep_next=false
1415 for ac_pass in 1 2
1416 do
1417   for ac_arg
1418   do
1419     case $ac_arg in
1420     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1421     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1422     | -silent | --silent | --silen | --sile | --sil)
1423       continue ;;
1424     *\'*)
1425       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1426     esac
1427     case $ac_pass in
1428     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1429     2)
1430       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1431       if test $ac_must_keep_next = true; then
1432         ac_must_keep_next=false # Got value, back to normal.
1433       else
1434         case $ac_arg in
1435           *=* | --config-cache | -C | -disable-* | --disable-* \
1436           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1437           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1438           | -with-* | --with-* | -without-* | --without-* | --x)
1439             case "$ac_configure_args0 " in
1440               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1441             esac
1442             ;;
1443           -* ) ac_must_keep_next=true ;;
1444         esac
1445       fi
1446       ac_configure_args="$ac_configure_args '$ac_arg'"
1447       ;;
1448     esac
1449   done
1450 done
1451 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1452 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1453
1454 # When interrupted or exit'd, cleanup temporary files, and complete
1455 # config.log.  We remove comments because anyway the quotes in there
1456 # would cause problems or look ugly.
1457 # WARNING: Use '\'' to represent an apostrophe within the trap.
1458 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1459 trap 'exit_status=$?
1460   # Save into config.log some information that might help in debugging.
1461   {
1462     echo
1463
1464     cat <<\_ASBOX
1465 ## ---------------- ##
1466 ## Cache variables. ##
1467 ## ---------------- ##
1468 _ASBOX
1469     echo
1470     # The following way of writing the cache mishandles newlines in values,
1471 (
1472   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1473     eval ac_val=\$$ac_var
1474     case $ac_val in #(
1475     *${as_nl}*)
1476       case $ac_var in #(
1477       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1478 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1479       esac
1480       case $ac_var in #(
1481       _ | IFS | as_nl) ;; #(
1482       *) $as_unset $ac_var ;;
1483       esac ;;
1484     esac
1485   done
1486   (set) 2>&1 |
1487     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1488     *${as_nl}ac_space=\ *)
1489       sed -n \
1490         "s/'\''/'\''\\\\'\'''\''/g;
1491           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1492       ;; #(
1493     *)
1494       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1495       ;;
1496     esac |
1497     sort
1498 )
1499     echo
1500
1501     cat <<\_ASBOX
1502 ## ----------------- ##
1503 ## Output variables. ##
1504 ## ----------------- ##
1505 _ASBOX
1506     echo
1507     for ac_var in $ac_subst_vars
1508     do
1509       eval ac_val=\$$ac_var
1510       case $ac_val in
1511       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1512       esac
1513       echo "$ac_var='\''$ac_val'\''"
1514     done | sort
1515     echo
1516
1517     if test -n "$ac_subst_files"; then
1518       cat <<\_ASBOX
1519 ## ------------------- ##
1520 ## File substitutions. ##
1521 ## ------------------- ##
1522 _ASBOX
1523       echo
1524       for ac_var in $ac_subst_files
1525       do
1526         eval ac_val=\$$ac_var
1527         case $ac_val in
1528         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1529         esac
1530         echo "$ac_var='\''$ac_val'\''"
1531       done | sort
1532       echo
1533     fi
1534
1535     if test -s confdefs.h; then
1536       cat <<\_ASBOX
1537 ## ----------- ##
1538 ## confdefs.h. ##
1539 ## ----------- ##
1540 _ASBOX
1541       echo
1542       cat confdefs.h
1543       echo
1544     fi
1545     test "$ac_signal" != 0 &&
1546       echo "$as_me: caught signal $ac_signal"
1547     echo "$as_me: exit $exit_status"
1548   } >&5
1549   rm -f core *.core core.conftest.* &&
1550     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1551     exit $exit_status
1552 ' 0
1553 for ac_signal in 1 2 13 15; do
1554   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1555 done
1556 ac_signal=0
1557
1558 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1559 rm -f -r conftest* confdefs.h
1560
1561 # Predefined preprocessor variables.
1562
1563 cat >>confdefs.h <<_ACEOF
1564 #define PACKAGE_NAME "$PACKAGE_NAME"
1565 _ACEOF
1566
1567
1568 cat >>confdefs.h <<_ACEOF
1569 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1570 _ACEOF
1571
1572
1573 cat >>confdefs.h <<_ACEOF
1574 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1575 _ACEOF
1576
1577
1578 cat >>confdefs.h <<_ACEOF
1579 #define PACKAGE_STRING "$PACKAGE_STRING"
1580 _ACEOF
1581
1582
1583 cat >>confdefs.h <<_ACEOF
1584 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1585 _ACEOF
1586
1587
1588 # Let the site file select an alternate cache file if it wants to.
1589 # Prefer explicitly selected file to automatically selected ones.
1590 if test -n "$CONFIG_SITE"; then
1591   set x "$CONFIG_SITE"
1592 elif test "x$prefix" != xNONE; then
1593   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1594 else
1595   set x "$ac_default_prefix/share/config.site" \
1596         "$ac_default_prefix/etc/config.site"
1597 fi
1598 shift
1599 for ac_site_file
1600 do
1601   if test -r "$ac_site_file"; then
1602     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1603 echo "$as_me: loading site script $ac_site_file" >&6;}
1604     sed 's/^/| /' "$ac_site_file" >&5
1605     . "$ac_site_file"
1606   fi
1607 done
1608
1609 if test -r "$cache_file"; then
1610   # Some versions of bash will fail to source /dev/null (special
1611   # files actually), so we avoid doing that.
1612   if test -f "$cache_file"; then
1613     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1614 echo "$as_me: loading cache $cache_file" >&6;}
1615     case $cache_file in
1616       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1617       *)                      . "./$cache_file";;
1618     esac
1619   fi
1620 else
1621   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1622 echo "$as_me: creating cache $cache_file" >&6;}
1623   >$cache_file
1624 fi
1625
1626 # Check that the precious variables saved in the cache have kept the same
1627 # value.
1628 ac_cache_corrupted=false
1629 for ac_var in $ac_precious_vars; do
1630   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1631   eval ac_new_set=\$ac_env_${ac_var}_set
1632   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1633   eval ac_new_val=\$ac_env_${ac_var}_value
1634   case $ac_old_set,$ac_new_set in
1635     set,)
1636       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1637 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1638       ac_cache_corrupted=: ;;
1639     ,set)
1640       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1641 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1642       ac_cache_corrupted=: ;;
1643     ,);;
1644     *)
1645       if test "x$ac_old_val" != "x$ac_new_val"; then
1646         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1647 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1648         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1649 echo "$as_me:   former value:  $ac_old_val" >&2;}
1650         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1651 echo "$as_me:   current value: $ac_new_val" >&2;}
1652         ac_cache_corrupted=:
1653       fi;;
1654   esac
1655   # Pass precious variables to config.status.
1656   if test "$ac_new_set" = set; then
1657     case $ac_new_val in
1658     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1659     *) ac_arg=$ac_var=$ac_new_val ;;
1660     esac
1661     case " $ac_configure_args " in
1662       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1663       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1664     esac
1665   fi
1666 done
1667 if $ac_cache_corrupted; then
1668   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1669 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1670   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1671 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1672    { (exit 1); exit 1; }; }
1673 fi
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691 ac_ext=c
1692 ac_cpp='$CPP $CPPFLAGS'
1693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1696
1697
1698 ac_aux_dir=
1699 for ac_dir in buildlib "$srcdir"/buildlib; do
1700   if test -f "$ac_dir/install-sh"; then
1701     ac_aux_dir=$ac_dir
1702     ac_install_sh="$ac_aux_dir/install-sh -c"
1703     break
1704   elif test -f "$ac_dir/install.sh"; then
1705     ac_aux_dir=$ac_dir
1706     ac_install_sh="$ac_aux_dir/install.sh -c"
1707     break
1708   elif test -f "$ac_dir/shtool"; then
1709     ac_aux_dir=$ac_dir
1710     ac_install_sh="$ac_aux_dir/shtool install -c"
1711     break
1712   fi
1713 done
1714 if test -z "$ac_aux_dir"; then
1715   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in buildlib \"$srcdir\"/buildlib" >&5
1716 echo "$as_me: error: cannot find install-sh or install.sh in buildlib \"$srcdir\"/buildlib" >&2;}
1717    { (exit 1); exit 1; }; }
1718 fi
1719
1720 # These three variables are undocumented and unsupported,
1721 # and are intended to be withdrawn in a future Autoconf release.
1722 # They can cause serious problems if a builder's source tree is in a directory
1723 # whose full name contains unusual characters.
1724 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1725 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1726 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1727
1728
1729 ac_config_headers="$ac_config_headers include/config.h:buildlib/config.h.in"
1730
1731
1732 cat >>confdefs.h <<_ACEOF
1733 #define VERSION "0.0"
1734 _ACEOF
1735
1736 cat >>confdefs.h <<_ACEOF
1737 #define PACKAGE "dsync"
1738 _ACEOF
1739
1740
1741
1742 ac_ext=c
1743 ac_cpp='$CPP $CPPFLAGS'
1744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1747 if test -n "$ac_tool_prefix"; then
1748   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1749 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1752 if test "${ac_cv_prog_CC+set}" = set; then
1753   echo $ECHO_N "(cached) $ECHO_C" >&6
1754 else
1755   if test -n "$CC"; then
1756   ac_cv_prog_CC="$CC" # Let the user override the test.
1757 else
1758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1759 for as_dir in $PATH
1760 do
1761   IFS=$as_save_IFS
1762   test -z "$as_dir" && as_dir=.
1763   for ac_exec_ext in '' $ac_executable_extensions; do
1764   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1765     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1766     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1767     break 2
1768   fi
1769 done
1770 done
1771 IFS=$as_save_IFS
1772
1773 fi
1774 fi
1775 CC=$ac_cv_prog_CC
1776 if test -n "$CC"; then
1777   { echo "$as_me:$LINENO: result: $CC" >&5
1778 echo "${ECHO_T}$CC" >&6; }
1779 else
1780   { echo "$as_me:$LINENO: result: no" >&5
1781 echo "${ECHO_T}no" >&6; }
1782 fi
1783
1784
1785 fi
1786 if test -z "$ac_cv_prog_CC"; then
1787   ac_ct_CC=$CC
1788   # Extract the first word of "gcc", so it can be a program name with args.
1789 set dummy gcc; ac_word=$2
1790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1792 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1793   echo $ECHO_N "(cached) $ECHO_C" >&6
1794 else
1795   if test -n "$ac_ct_CC"; then
1796   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1797 else
1798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1799 for as_dir in $PATH
1800 do
1801   IFS=$as_save_IFS
1802   test -z "$as_dir" && as_dir=.
1803   for ac_exec_ext in '' $ac_executable_extensions; do
1804   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1805     ac_cv_prog_ac_ct_CC="gcc"
1806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1807     break 2
1808   fi
1809 done
1810 done
1811 IFS=$as_save_IFS
1812
1813 fi
1814 fi
1815 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1816 if test -n "$ac_ct_CC"; then
1817   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1818 echo "${ECHO_T}$ac_ct_CC" >&6; }
1819 else
1820   { echo "$as_me:$LINENO: result: no" >&5
1821 echo "${ECHO_T}no" >&6; }
1822 fi
1823
1824   if test "x$ac_ct_CC" = x; then
1825     CC=""
1826   else
1827     case $cross_compiling:$ac_tool_warned in
1828 yes:)
1829 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1830 whose name does not start with the host triplet.  If you think this
1831 configuration is useful to you, please write to autoconf@gnu.org." >&5
1832 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1833 whose name does not start with the host triplet.  If you think this
1834 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1835 ac_tool_warned=yes ;;
1836 esac
1837     CC=$ac_ct_CC
1838   fi
1839 else
1840   CC="$ac_cv_prog_CC"
1841 fi
1842
1843 if test -z "$CC"; then
1844           if test -n "$ac_tool_prefix"; then
1845     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1846 set dummy ${ac_tool_prefix}cc; ac_word=$2
1847 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1849 if test "${ac_cv_prog_CC+set}" = set; then
1850   echo $ECHO_N "(cached) $ECHO_C" >&6
1851 else
1852   if test -n "$CC"; then
1853   ac_cv_prog_CC="$CC" # Let the user override the test.
1854 else
1855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1856 for as_dir in $PATH
1857 do
1858   IFS=$as_save_IFS
1859   test -z "$as_dir" && as_dir=.
1860   for ac_exec_ext in '' $ac_executable_extensions; do
1861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1862     ac_cv_prog_CC="${ac_tool_prefix}cc"
1863     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1864     break 2
1865   fi
1866 done
1867 done
1868 IFS=$as_save_IFS
1869
1870 fi
1871 fi
1872 CC=$ac_cv_prog_CC
1873 if test -n "$CC"; then
1874   { echo "$as_me:$LINENO: result: $CC" >&5
1875 echo "${ECHO_T}$CC" >&6; }
1876 else
1877   { echo "$as_me:$LINENO: result: no" >&5
1878 echo "${ECHO_T}no" >&6; }
1879 fi
1880
1881
1882   fi
1883 fi
1884 if test -z "$CC"; then
1885   # Extract the first word of "cc", so it can be a program name with args.
1886 set dummy cc; ac_word=$2
1887 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1889 if test "${ac_cv_prog_CC+set}" = set; then
1890   echo $ECHO_N "(cached) $ECHO_C" >&6
1891 else
1892   if test -n "$CC"; then
1893   ac_cv_prog_CC="$CC" # Let the user override the test.
1894 else
1895   ac_prog_rejected=no
1896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1897 for as_dir in $PATH
1898 do
1899   IFS=$as_save_IFS
1900   test -z "$as_dir" && as_dir=.
1901   for ac_exec_ext in '' $ac_executable_extensions; do
1902   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1903     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1904        ac_prog_rejected=yes
1905        continue
1906      fi
1907     ac_cv_prog_CC="cc"
1908     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1909     break 2
1910   fi
1911 done
1912 done
1913 IFS=$as_save_IFS
1914
1915 if test $ac_prog_rejected = yes; then
1916   # We found a bogon in the path, so make sure we never use it.
1917   set dummy $ac_cv_prog_CC
1918   shift
1919   if test $# != 0; then
1920     # We chose a different compiler from the bogus one.
1921     # However, it has the same basename, so the bogon will be chosen
1922     # first if we set CC to just the basename; use the full file name.
1923     shift
1924     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1925   fi
1926 fi
1927 fi
1928 fi
1929 CC=$ac_cv_prog_CC
1930 if test -n "$CC"; then
1931   { echo "$as_me:$LINENO: result: $CC" >&5
1932 echo "${ECHO_T}$CC" >&6; }
1933 else
1934   { echo "$as_me:$LINENO: result: no" >&5
1935 echo "${ECHO_T}no" >&6; }
1936 fi
1937
1938
1939 fi
1940 if test -z "$CC"; then
1941   if test -n "$ac_tool_prefix"; then
1942   for ac_prog in cl.exe
1943   do
1944     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1945 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1946 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1948 if test "${ac_cv_prog_CC+set}" = set; then
1949   echo $ECHO_N "(cached) $ECHO_C" >&6
1950 else
1951   if test -n "$CC"; then
1952   ac_cv_prog_CC="$CC" # Let the user override the test.
1953 else
1954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1955 for as_dir in $PATH
1956 do
1957   IFS=$as_save_IFS
1958   test -z "$as_dir" && as_dir=.
1959   for ac_exec_ext in '' $ac_executable_extensions; do
1960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1961     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1963     break 2
1964   fi
1965 done
1966 done
1967 IFS=$as_save_IFS
1968
1969 fi
1970 fi
1971 CC=$ac_cv_prog_CC
1972 if test -n "$CC"; then
1973   { echo "$as_me:$LINENO: result: $CC" >&5
1974 echo "${ECHO_T}$CC" >&6; }
1975 else
1976   { echo "$as_me:$LINENO: result: no" >&5
1977 echo "${ECHO_T}no" >&6; }
1978 fi
1979
1980
1981     test -n "$CC" && break
1982   done
1983 fi
1984 if test -z "$CC"; then
1985   ac_ct_CC=$CC
1986   for ac_prog in cl.exe
1987 do
1988   # Extract the first word of "$ac_prog", so it can be a program name with args.
1989 set dummy $ac_prog; ac_word=$2
1990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1992 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1993   echo $ECHO_N "(cached) $ECHO_C" >&6
1994 else
1995   if test -n "$ac_ct_CC"; then
1996   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1997 else
1998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1999 for as_dir in $PATH
2000 do
2001   IFS=$as_save_IFS
2002   test -z "$as_dir" && as_dir=.
2003   for ac_exec_ext in '' $ac_executable_extensions; do
2004   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2005     ac_cv_prog_ac_ct_CC="$ac_prog"
2006     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2007     break 2
2008   fi
2009 done
2010 done
2011 IFS=$as_save_IFS
2012
2013 fi
2014 fi
2015 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2016 if test -n "$ac_ct_CC"; then
2017   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2018 echo "${ECHO_T}$ac_ct_CC" >&6; }
2019 else
2020   { echo "$as_me:$LINENO: result: no" >&5
2021 echo "${ECHO_T}no" >&6; }
2022 fi
2023
2024
2025   test -n "$ac_ct_CC" && break
2026 done
2027
2028   if test "x$ac_ct_CC" = x; then
2029     CC=""
2030   else
2031     case $cross_compiling:$ac_tool_warned in
2032 yes:)
2033 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2034 whose name does not start with the host triplet.  If you think this
2035 configuration is useful to you, please write to autoconf@gnu.org." >&5
2036 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2037 whose name does not start with the host triplet.  If you think this
2038 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2039 ac_tool_warned=yes ;;
2040 esac
2041     CC=$ac_ct_CC
2042   fi
2043 fi
2044
2045 fi
2046
2047
2048 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2049 See \`config.log' for more details." >&5
2050 echo "$as_me: error: no acceptable C compiler found in \$PATH
2051 See \`config.log' for more details." >&2;}
2052    { (exit 1); exit 1; }; }
2053
2054 # Provide some information about the compiler.
2055 echo "$as_me:$LINENO: checking for C compiler version" >&5
2056 ac_compiler=`set X $ac_compile; echo $2`
2057 { (ac_try="$ac_compiler --version >&5"
2058 case "(($ac_try" in
2059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2060   *) ac_try_echo=$ac_try;;
2061 esac
2062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2063   (eval "$ac_compiler --version >&5") 2>&5
2064   ac_status=$?
2065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066   (exit $ac_status); }
2067 { (ac_try="$ac_compiler -v >&5"
2068 case "(($ac_try" in
2069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2070   *) ac_try_echo=$ac_try;;
2071 esac
2072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2073   (eval "$ac_compiler -v >&5") 2>&5
2074   ac_status=$?
2075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076   (exit $ac_status); }
2077 { (ac_try="$ac_compiler -V >&5"
2078 case "(($ac_try" in
2079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2080   *) ac_try_echo=$ac_try;;
2081 esac
2082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2083   (eval "$ac_compiler -V >&5") 2>&5
2084   ac_status=$?
2085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086   (exit $ac_status); }
2087
2088 cat >conftest.$ac_ext <<_ACEOF
2089 /* confdefs.h.  */
2090 _ACEOF
2091 cat confdefs.h >>conftest.$ac_ext
2092 cat >>conftest.$ac_ext <<_ACEOF
2093 /* end confdefs.h.  */
2094
2095 int
2096 main ()
2097 {
2098
2099   ;
2100   return 0;
2101 }
2102 _ACEOF
2103 ac_clean_files_save=$ac_clean_files
2104 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2105 # Try to create an executable without -o first, disregard a.out.
2106 # It will help us diagnose broken compilers, and finding out an intuition
2107 # of exeext.
2108 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2109 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2110 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2111 #
2112 # List of possible output files, starting from the most likely.
2113 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2114 # only as a last resort.  b.out is created by i960 compilers.
2115 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2116 #
2117 # The IRIX 6 linker writes into existing files which may not be
2118 # executable, retaining their permissions.  Remove them first so a
2119 # subsequent execution test works.
2120 ac_rmfiles=
2121 for ac_file in $ac_files
2122 do
2123   case $ac_file in
2124     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2125     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2126   esac
2127 done
2128 rm -f $ac_rmfiles
2129
2130 if { (ac_try="$ac_link_default"
2131 case "(($ac_try" in
2132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2133   *) ac_try_echo=$ac_try;;
2134 esac
2135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2136   (eval "$ac_link_default") 2>&5
2137   ac_status=$?
2138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139   (exit $ac_status); }; then
2140   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2141 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2142 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2143 # so that the user can short-circuit this test for compilers unknown to
2144 # Autoconf.
2145 for ac_file in $ac_files ''
2146 do
2147   test -f "$ac_file" || continue
2148   case $ac_file in
2149     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2150         ;;
2151     [ab].out )
2152         # We found the default executable, but exeext='' is most
2153         # certainly right.
2154         break;;
2155     *.* )
2156         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2157         then :; else
2158            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2159         fi
2160         # We set ac_cv_exeext here because the later test for it is not
2161         # safe: cross compilers may not add the suffix if given an `-o'
2162         # argument, so we may need to know it at that point already.
2163         # Even if this section looks crufty: it has the advantage of
2164         # actually working.
2165         break;;
2166     * )
2167         break;;
2168   esac
2169 done
2170 test "$ac_cv_exeext" = no && ac_cv_exeext=
2171
2172 else
2173   ac_file=''
2174 fi
2175
2176 { echo "$as_me:$LINENO: result: $ac_file" >&5
2177 echo "${ECHO_T}$ac_file" >&6; }
2178 if test -z "$ac_file"; then
2179   echo "$as_me: failed program was:" >&5
2180 sed 's/^/| /' conftest.$ac_ext >&5
2181
2182 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2183 See \`config.log' for more details." >&5
2184 echo "$as_me: error: C compiler cannot create executables
2185 See \`config.log' for more details." >&2;}
2186    { (exit 77); exit 77; }; }
2187 fi
2188
2189 ac_exeext=$ac_cv_exeext
2190
2191 # Check that the compiler produces executables we can run.  If not, either
2192 # the compiler is broken, or we cross compile.
2193 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2194 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2195 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2196 # If not cross compiling, check that we can run a simple program.
2197 if test "$cross_compiling" != yes; then
2198   if { ac_try='./$ac_file'
2199   { (case "(($ac_try" in
2200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2201   *) ac_try_echo=$ac_try;;
2202 esac
2203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2204   (eval "$ac_try") 2>&5
2205   ac_status=$?
2206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207   (exit $ac_status); }; }; then
2208     cross_compiling=no
2209   else
2210     if test "$cross_compiling" = maybe; then
2211         cross_compiling=yes
2212     else
2213         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2214 If you meant to cross compile, use \`--host'.
2215 See \`config.log' for more details." >&5
2216 echo "$as_me: error: cannot run C compiled programs.
2217 If you meant to cross compile, use \`--host'.
2218 See \`config.log' for more details." >&2;}
2219    { (exit 1); exit 1; }; }
2220     fi
2221   fi
2222 fi
2223 { echo "$as_me:$LINENO: result: yes" >&5
2224 echo "${ECHO_T}yes" >&6; }
2225
2226 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2227 ac_clean_files=$ac_clean_files_save
2228 # Check that the compiler produces executables we can run.  If not, either
2229 # the compiler is broken, or we cross compile.
2230 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2231 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2232 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2233 echo "${ECHO_T}$cross_compiling" >&6; }
2234
2235 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2236 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2237 if { (ac_try="$ac_link"
2238 case "(($ac_try" in
2239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2240   *) ac_try_echo=$ac_try;;
2241 esac
2242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2243   (eval "$ac_link") 2>&5
2244   ac_status=$?
2245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246   (exit $ac_status); }; then
2247   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2248 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2249 # work properly (i.e., refer to `conftest.exe'), while it won't with
2250 # `rm'.
2251 for ac_file in conftest.exe conftest conftest.*; do
2252   test -f "$ac_file" || continue
2253   case $ac_file in
2254     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2255     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2256           break;;
2257     * ) break;;
2258   esac
2259 done
2260 else
2261   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2262 See \`config.log' for more details." >&5
2263 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2264 See \`config.log' for more details." >&2;}
2265    { (exit 1); exit 1; }; }
2266 fi
2267
2268 rm -f conftest$ac_cv_exeext
2269 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2270 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2271
2272 rm -f conftest.$ac_ext
2273 EXEEXT=$ac_cv_exeext
2274 ac_exeext=$EXEEXT
2275 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2276 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2277 if test "${ac_cv_objext+set}" = set; then
2278   echo $ECHO_N "(cached) $ECHO_C" >&6
2279 else
2280   cat >conftest.$ac_ext <<_ACEOF
2281 /* confdefs.h.  */
2282 _ACEOF
2283 cat confdefs.h >>conftest.$ac_ext
2284 cat >>conftest.$ac_ext <<_ACEOF
2285 /* end confdefs.h.  */
2286
2287 int
2288 main ()
2289 {
2290
2291   ;
2292   return 0;
2293 }
2294 _ACEOF
2295 rm -f conftest.o conftest.obj
2296 if { (ac_try="$ac_compile"
2297 case "(($ac_try" in
2298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2299   *) ac_try_echo=$ac_try;;
2300 esac
2301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2302   (eval "$ac_compile") 2>&5
2303   ac_status=$?
2304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305   (exit $ac_status); }; then
2306   for ac_file in conftest.o conftest.obj conftest.*; do
2307   test -f "$ac_file" || continue;
2308   case $ac_file in
2309     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2310     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2311        break;;
2312   esac
2313 done
2314 else
2315   echo "$as_me: failed program was:" >&5
2316 sed 's/^/| /' conftest.$ac_ext >&5
2317
2318 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2319 See \`config.log' for more details." >&5
2320 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2321 See \`config.log' for more details." >&2;}
2322    { (exit 1); exit 1; }; }
2323 fi
2324
2325 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2326 fi
2327 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2328 echo "${ECHO_T}$ac_cv_objext" >&6; }
2329 OBJEXT=$ac_cv_objext
2330 ac_objext=$OBJEXT
2331 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2332 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2333 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2334   echo $ECHO_N "(cached) $ECHO_C" >&6
2335 else
2336   cat >conftest.$ac_ext <<_ACEOF
2337 /* confdefs.h.  */
2338 _ACEOF
2339 cat confdefs.h >>conftest.$ac_ext
2340 cat >>conftest.$ac_ext <<_ACEOF
2341 /* end confdefs.h.  */
2342
2343 int
2344 main ()
2345 {
2346 #ifndef __GNUC__
2347        choke me
2348 #endif
2349
2350   ;
2351   return 0;
2352 }
2353 _ACEOF
2354 rm -f conftest.$ac_objext
2355 if { (ac_try="$ac_compile"
2356 case "(($ac_try" in
2357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2358   *) ac_try_echo=$ac_try;;
2359 esac
2360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2361   (eval "$ac_compile") 2>conftest.er1
2362   ac_status=$?
2363   grep -v '^ *+' conftest.er1 >conftest.err
2364   rm -f conftest.er1
2365   cat conftest.err >&5
2366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367   (exit $ac_status); } && {
2368          test -z "$ac_c_werror_flag" ||
2369          test ! -s conftest.err
2370        } && test -s conftest.$ac_objext; then
2371   ac_compiler_gnu=yes
2372 else
2373   echo "$as_me: failed program was:" >&5
2374 sed 's/^/| /' conftest.$ac_ext >&5
2375
2376         ac_compiler_gnu=no
2377 fi
2378
2379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2380 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2381
2382 fi
2383 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2384 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2385 GCC=`test $ac_compiler_gnu = yes && echo yes`
2386 ac_test_CFLAGS=${CFLAGS+set}
2387 ac_save_CFLAGS=$CFLAGS
2388 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2389 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2390 if test "${ac_cv_prog_cc_g+set}" = set; then
2391   echo $ECHO_N "(cached) $ECHO_C" >&6
2392 else
2393   ac_save_c_werror_flag=$ac_c_werror_flag
2394    ac_c_werror_flag=yes
2395    ac_cv_prog_cc_g=no
2396    CFLAGS="-g"
2397    cat >conftest.$ac_ext <<_ACEOF
2398 /* confdefs.h.  */
2399 _ACEOF
2400 cat confdefs.h >>conftest.$ac_ext
2401 cat >>conftest.$ac_ext <<_ACEOF
2402 /* end confdefs.h.  */
2403
2404 int
2405 main ()
2406 {
2407
2408   ;
2409   return 0;
2410 }
2411 _ACEOF
2412 rm -f conftest.$ac_objext
2413 if { (ac_try="$ac_compile"
2414 case "(($ac_try" in
2415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2416   *) ac_try_echo=$ac_try;;
2417 esac
2418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2419   (eval "$ac_compile") 2>conftest.er1
2420   ac_status=$?
2421   grep -v '^ *+' conftest.er1 >conftest.err
2422   rm -f conftest.er1
2423   cat conftest.err >&5
2424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425   (exit $ac_status); } && {
2426          test -z "$ac_c_werror_flag" ||
2427          test ! -s conftest.err
2428        } && test -s conftest.$ac_objext; then
2429   ac_cv_prog_cc_g=yes
2430 else
2431   echo "$as_me: failed program was:" >&5
2432 sed 's/^/| /' conftest.$ac_ext >&5
2433
2434         CFLAGS=""
2435       cat >conftest.$ac_ext <<_ACEOF
2436 /* confdefs.h.  */
2437 _ACEOF
2438 cat confdefs.h >>conftest.$ac_ext
2439 cat >>conftest.$ac_ext <<_ACEOF
2440 /* end confdefs.h.  */
2441
2442 int
2443 main ()
2444 {
2445
2446   ;
2447   return 0;
2448 }
2449 _ACEOF
2450 rm -f conftest.$ac_objext
2451 if { (ac_try="$ac_compile"
2452 case "(($ac_try" in
2453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2454   *) ac_try_echo=$ac_try;;
2455 esac
2456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2457   (eval "$ac_compile") 2>conftest.er1
2458   ac_status=$?
2459   grep -v '^ *+' conftest.er1 >conftest.err
2460   rm -f conftest.er1
2461   cat conftest.err >&5
2462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463   (exit $ac_status); } && {
2464          test -z "$ac_c_werror_flag" ||
2465          test ! -s conftest.err
2466        } && test -s conftest.$ac_objext; then
2467   :
2468 else
2469   echo "$as_me: failed program was:" >&5
2470 sed 's/^/| /' conftest.$ac_ext >&5
2471
2472         ac_c_werror_flag=$ac_save_c_werror_flag
2473          CFLAGS="-g"
2474          cat >conftest.$ac_ext <<_ACEOF
2475 /* confdefs.h.  */
2476 _ACEOF
2477 cat confdefs.h >>conftest.$ac_ext
2478 cat >>conftest.$ac_ext <<_ACEOF
2479 /* end confdefs.h.  */
2480
2481 int
2482 main ()
2483 {
2484
2485   ;
2486   return 0;
2487 }
2488 _ACEOF
2489 rm -f conftest.$ac_objext
2490 if { (ac_try="$ac_compile"
2491 case "(($ac_try" in
2492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2493   *) ac_try_echo=$ac_try;;
2494 esac
2495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2496   (eval "$ac_compile") 2>conftest.er1
2497   ac_status=$?
2498   grep -v '^ *+' conftest.er1 >conftest.err
2499   rm -f conftest.er1
2500   cat conftest.err >&5
2501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502   (exit $ac_status); } && {
2503          test -z "$ac_c_werror_flag" ||
2504          test ! -s conftest.err
2505        } && test -s conftest.$ac_objext; then
2506   ac_cv_prog_cc_g=yes
2507 else
2508   echo "$as_me: failed program was:" >&5
2509 sed 's/^/| /' conftest.$ac_ext >&5
2510
2511
2512 fi
2513
2514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2515 fi
2516
2517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2518 fi
2519
2520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2521    ac_c_werror_flag=$ac_save_c_werror_flag
2522 fi
2523 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2524 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2525 if test "$ac_test_CFLAGS" = set; then
2526   CFLAGS=$ac_save_CFLAGS
2527 elif test $ac_cv_prog_cc_g = yes; then
2528   if test "$GCC" = yes; then
2529     CFLAGS="-g -O2"
2530   else
2531     CFLAGS="-g"
2532   fi
2533 else
2534   if test "$GCC" = yes; then
2535     CFLAGS="-O2"
2536   else
2537     CFLAGS=
2538   fi
2539 fi
2540 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2541 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2542 if test "${ac_cv_prog_cc_c89+set}" = set; then
2543   echo $ECHO_N "(cached) $ECHO_C" >&6
2544 else
2545   ac_cv_prog_cc_c89=no
2546 ac_save_CC=$CC
2547 cat >conftest.$ac_ext <<_ACEOF
2548 /* confdefs.h.  */
2549 _ACEOF
2550 cat confdefs.h >>conftest.$ac_ext
2551 cat >>conftest.$ac_ext <<_ACEOF
2552 /* end confdefs.h.  */
2553 #include <stdarg.h>
2554 #include <stdio.h>
2555 #include <sys/types.h>
2556 #include <sys/stat.h>
2557 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2558 struct buf { int x; };
2559 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2560 static char *e (p, i)
2561      char **p;
2562      int i;
2563 {
2564   return p[i];
2565 }
2566 static char *f (char * (*g) (char **, int), char **p, ...)
2567 {
2568   char *s;
2569   va_list v;
2570   va_start (v,p);
2571   s = g (p, va_arg (v,int));
2572   va_end (v);
2573   return s;
2574 }
2575
2576 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2577    function prototypes and stuff, but not '\xHH' hex character constants.
2578    These don't provoke an error unfortunately, instead are silently treated
2579    as 'x'.  The following induces an error, until -std is added to get
2580    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2581    array size at least.  It's necessary to write '\x00'==0 to get something
2582    that's true only with -std.  */
2583 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2584
2585 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2586    inside strings and character constants.  */
2587 #define FOO(x) 'x'
2588 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2589
2590 int test (int i, double x);
2591 struct s1 {int (*f) (int a);};
2592 struct s2 {int (*f) (double a);};
2593 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2594 int argc;
2595 char **argv;
2596 int
2597 main ()
2598 {
2599 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2600   ;
2601   return 0;
2602 }
2603 _ACEOF
2604 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2605         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2606 do
2607   CC="$ac_save_CC $ac_arg"
2608   rm -f conftest.$ac_objext
2609 if { (ac_try="$ac_compile"
2610 case "(($ac_try" in
2611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2612   *) ac_try_echo=$ac_try;;
2613 esac
2614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2615   (eval "$ac_compile") 2>conftest.er1
2616   ac_status=$?
2617   grep -v '^ *+' conftest.er1 >conftest.err
2618   rm -f conftest.er1
2619   cat conftest.err >&5
2620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621   (exit $ac_status); } && {
2622          test -z "$ac_c_werror_flag" ||
2623          test ! -s conftest.err
2624        } && test -s conftest.$ac_objext; then
2625   ac_cv_prog_cc_c89=$ac_arg
2626 else
2627   echo "$as_me: failed program was:" >&5
2628 sed 's/^/| /' conftest.$ac_ext >&5
2629
2630
2631 fi
2632
2633 rm -f core conftest.err conftest.$ac_objext
2634   test "x$ac_cv_prog_cc_c89" != "xno" && break
2635 done
2636 rm -f conftest.$ac_ext
2637 CC=$ac_save_CC
2638
2639 fi
2640 # AC_CACHE_VAL
2641 case "x$ac_cv_prog_cc_c89" in
2642   x)
2643     { echo "$as_me:$LINENO: result: none needed" >&5
2644 echo "${ECHO_T}none needed" >&6; } ;;
2645   xno)
2646     { echo "$as_me:$LINENO: result: unsupported" >&5
2647 echo "${ECHO_T}unsupported" >&6; } ;;
2648   *)
2649     CC="$CC $ac_cv_prog_cc_c89"
2650     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2651 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2652 esac
2653
2654
2655 ac_ext=c
2656 ac_cpp='$CPP $CPPFLAGS'
2657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2660
2661
2662 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
2663 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
2664 if test "${ac_cv_search_strerror+set}" = set; then
2665   echo $ECHO_N "(cached) $ECHO_C" >&6
2666 else
2667   ac_func_search_save_LIBS=$LIBS
2668 cat >conftest.$ac_ext <<_ACEOF
2669 /* confdefs.h.  */
2670 _ACEOF
2671 cat confdefs.h >>conftest.$ac_ext
2672 cat >>conftest.$ac_ext <<_ACEOF
2673 /* end confdefs.h.  */
2674
2675 /* Override any GCC internal prototype to avoid an error.
2676    Use char because int might match the return type of a GCC
2677    builtin and then its argument prototype would still apply.  */
2678 #ifdef __cplusplus
2679 extern "C"
2680 #endif
2681 char strerror ();
2682 int
2683 main ()
2684 {
2685 return strerror ();
2686   ;
2687   return 0;
2688 }
2689 _ACEOF
2690 for ac_lib in '' cposix; do
2691   if test -z "$ac_lib"; then
2692     ac_res="none required"
2693   else
2694     ac_res=-l$ac_lib
2695     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2696   fi
2697   rm -f conftest.$ac_objext conftest$ac_exeext
2698 if { (ac_try="$ac_link"
2699 case "(($ac_try" in
2700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701   *) ac_try_echo=$ac_try;;
2702 esac
2703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2704   (eval "$ac_link") 2>conftest.er1
2705   ac_status=$?
2706   grep -v '^ *+' conftest.er1 >conftest.err
2707   rm -f conftest.er1
2708   cat conftest.err >&5
2709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710   (exit $ac_status); } && {
2711          test -z "$ac_c_werror_flag" ||
2712          test ! -s conftest.err
2713        } && test -s conftest$ac_exeext &&
2714        $as_test_x conftest$ac_exeext; then
2715   ac_cv_search_strerror=$ac_res
2716 else
2717   echo "$as_me: failed program was:" >&5
2718 sed 's/^/| /' conftest.$ac_ext >&5
2719
2720
2721 fi
2722
2723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2724       conftest$ac_exeext
2725   if test "${ac_cv_search_strerror+set}" = set; then
2726   break
2727 fi
2728 done
2729 if test "${ac_cv_search_strerror+set}" = set; then
2730   :
2731 else
2732   ac_cv_search_strerror=no
2733 fi
2734 rm conftest.$ac_ext
2735 LIBS=$ac_func_search_save_LIBS
2736 fi
2737 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2738 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
2739 ac_res=$ac_cv_search_strerror
2740 if test "$ac_res" != no; then
2741   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2742
2743 fi
2744
2745
2746 # Make sure we can run config.sub.
2747 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2748   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2749 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2750    { (exit 1); exit 1; }; }
2751
2752 { echo "$as_me:$LINENO: checking build system type" >&5
2753 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2754 if test "${ac_cv_build+set}" = set; then
2755   echo $ECHO_N "(cached) $ECHO_C" >&6
2756 else
2757   ac_build_alias=$build_alias
2758 test "x$ac_build_alias" = x &&
2759   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2760 test "x$ac_build_alias" = x &&
2761   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2762 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2763    { (exit 1); exit 1; }; }
2764 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2765   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2766 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2767    { (exit 1); exit 1; }; }
2768
2769 fi
2770 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2771 echo "${ECHO_T}$ac_cv_build" >&6; }
2772 case $ac_cv_build in
2773 *-*-*) ;;
2774 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2775 echo "$as_me: error: invalid value of canonical build" >&2;}
2776    { (exit 1); exit 1; }; };;
2777 esac
2778 build=$ac_cv_build
2779 ac_save_IFS=$IFS; IFS='-'
2780 set x $ac_cv_build
2781 shift
2782 build_cpu=$1
2783 build_vendor=$2
2784 shift; shift
2785 # Remember, the first character of IFS is used to create $*,
2786 # except with old shells:
2787 build_os=$*
2788 IFS=$ac_save_IFS
2789 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2790
2791
2792 { echo "$as_me:$LINENO: checking host system type" >&5
2793 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2794 if test "${ac_cv_host+set}" = set; then
2795   echo $ECHO_N "(cached) $ECHO_C" >&6
2796 else
2797   if test "x$host_alias" = x; then
2798   ac_cv_host=$ac_cv_build
2799 else
2800   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2801     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2802 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2803    { (exit 1); exit 1; }; }
2804 fi
2805
2806 fi
2807 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2808 echo "${ECHO_T}$ac_cv_host" >&6; }
2809 case $ac_cv_host in
2810 *-*-*) ;;
2811 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2812 echo "$as_me: error: invalid value of canonical host" >&2;}
2813    { (exit 1); exit 1; }; };;
2814 esac
2815 host=$ac_cv_host
2816 ac_save_IFS=$IFS; IFS='-'
2817 set x $ac_cv_host
2818 shift
2819 host_cpu=$1
2820 host_vendor=$2
2821 shift; shift
2822 # Remember, the first character of IFS is used to create $*,
2823 # except with old shells:
2824 host_os=$*
2825 IFS=$ac_save_IFS
2826 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2827
2828
2829
2830 ac_ext=cpp
2831 ac_cpp='$CXXCPP $CPPFLAGS'
2832 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2833 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2834 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2835 if test -z "$CXX"; then
2836   if test -n "$CCC"; then
2837     CXX=$CCC
2838   else
2839     if test -n "$ac_tool_prefix"; then
2840   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2841   do
2842     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2843 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2846 if test "${ac_cv_prog_CXX+set}" = set; then
2847   echo $ECHO_N "(cached) $ECHO_C" >&6
2848 else
2849   if test -n "$CXX"; then
2850   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2851 else
2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 for as_dir in $PATH
2854 do
2855   IFS=$as_save_IFS
2856   test -z "$as_dir" && as_dir=.
2857   for ac_exec_ext in '' $ac_executable_extensions; do
2858   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2859     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2860     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2861     break 2
2862   fi
2863 done
2864 done
2865 IFS=$as_save_IFS
2866
2867 fi
2868 fi
2869 CXX=$ac_cv_prog_CXX
2870 if test -n "$CXX"; then
2871   { echo "$as_me:$LINENO: result: $CXX" >&5
2872 echo "${ECHO_T}$CXX" >&6; }
2873 else
2874   { echo "$as_me:$LINENO: result: no" >&5
2875 echo "${ECHO_T}no" >&6; }
2876 fi
2877
2878
2879     test -n "$CXX" && break
2880   done
2881 fi
2882 if test -z "$CXX"; then
2883   ac_ct_CXX=$CXX
2884   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2885 do
2886   # Extract the first word of "$ac_prog", so it can be a program name with args.
2887 set dummy $ac_prog; ac_word=$2
2888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2890 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2891   echo $ECHO_N "(cached) $ECHO_C" >&6
2892 else
2893   if test -n "$ac_ct_CXX"; then
2894   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2895 else
2896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897 for as_dir in $PATH
2898 do
2899   IFS=$as_save_IFS
2900   test -z "$as_dir" && as_dir=.
2901   for ac_exec_ext in '' $ac_executable_extensions; do
2902   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2903     ac_cv_prog_ac_ct_CXX="$ac_prog"
2904     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2905     break 2
2906   fi
2907 done
2908 done
2909 IFS=$as_save_IFS
2910
2911 fi
2912 fi
2913 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2914 if test -n "$ac_ct_CXX"; then
2915   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2916 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2917 else
2918   { echo "$as_me:$LINENO: result: no" >&5
2919 echo "${ECHO_T}no" >&6; }
2920 fi
2921
2922
2923   test -n "$ac_ct_CXX" && break
2924 done
2925
2926   if test "x$ac_ct_CXX" = x; then
2927     CXX="g++"
2928   else
2929     case $cross_compiling:$ac_tool_warned in
2930 yes:)
2931 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2932 whose name does not start with the host triplet.  If you think this
2933 configuration is useful to you, please write to autoconf@gnu.org." >&5
2934 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2935 whose name does not start with the host triplet.  If you think this
2936 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2937 ac_tool_warned=yes ;;
2938 esac
2939     CXX=$ac_ct_CXX
2940   fi
2941 fi
2942
2943   fi
2944 fi
2945 # Provide some information about the compiler.
2946 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2947 ac_compiler=`set X $ac_compile; echo $2`
2948 { (ac_try="$ac_compiler --version >&5"
2949 case "(($ac_try" in
2950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951   *) ac_try_echo=$ac_try;;
2952 esac
2953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2954   (eval "$ac_compiler --version >&5") 2>&5
2955   ac_status=$?
2956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957   (exit $ac_status); }
2958 { (ac_try="$ac_compiler -v >&5"
2959 case "(($ac_try" in
2960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2961   *) ac_try_echo=$ac_try;;
2962 esac
2963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2964   (eval "$ac_compiler -v >&5") 2>&5
2965   ac_status=$?
2966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967   (exit $ac_status); }
2968 { (ac_try="$ac_compiler -V >&5"
2969 case "(($ac_try" in
2970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971   *) ac_try_echo=$ac_try;;
2972 esac
2973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2974   (eval "$ac_compiler -V >&5") 2>&5
2975   ac_status=$?
2976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977   (exit $ac_status); }
2978
2979 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2980 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2981 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2982   echo $ECHO_N "(cached) $ECHO_C" >&6
2983 else
2984   cat >conftest.$ac_ext <<_ACEOF
2985 /* confdefs.h.  */
2986 _ACEOF
2987 cat confdefs.h >>conftest.$ac_ext
2988 cat >>conftest.$ac_ext <<_ACEOF
2989 /* end confdefs.h.  */
2990
2991 int
2992 main ()
2993 {
2994 #ifndef __GNUC__
2995        choke me
2996 #endif
2997
2998   ;
2999   return 0;
3000 }
3001 _ACEOF
3002 rm -f conftest.$ac_objext
3003 if { (ac_try="$ac_compile"
3004 case "(($ac_try" in
3005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006   *) ac_try_echo=$ac_try;;
3007 esac
3008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3009   (eval "$ac_compile") 2>conftest.er1
3010   ac_status=$?
3011   grep -v '^ *+' conftest.er1 >conftest.err
3012   rm -f conftest.er1
3013   cat conftest.err >&5
3014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015   (exit $ac_status); } && {
3016          test -z "$ac_cxx_werror_flag" ||
3017          test ! -s conftest.err
3018        } && test -s conftest.$ac_objext; then
3019   ac_compiler_gnu=yes
3020 else
3021   echo "$as_me: failed program was:" >&5
3022 sed 's/^/| /' conftest.$ac_ext >&5
3023
3024         ac_compiler_gnu=no
3025 fi
3026
3027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3028 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3029
3030 fi
3031 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3032 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3033 GXX=`test $ac_compiler_gnu = yes && echo yes`
3034 ac_test_CXXFLAGS=${CXXFLAGS+set}
3035 ac_save_CXXFLAGS=$CXXFLAGS
3036 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3037 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3038 if test "${ac_cv_prog_cxx_g+set}" = set; then
3039   echo $ECHO_N "(cached) $ECHO_C" >&6
3040 else
3041   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3042    ac_cxx_werror_flag=yes
3043    ac_cv_prog_cxx_g=no
3044    CXXFLAGS="-g"
3045    cat >conftest.$ac_ext <<_ACEOF
3046 /* confdefs.h.  */
3047 _ACEOF
3048 cat confdefs.h >>conftest.$ac_ext
3049 cat >>conftest.$ac_ext <<_ACEOF
3050 /* end confdefs.h.  */
3051
3052 int
3053 main ()
3054 {
3055
3056   ;
3057   return 0;
3058 }
3059 _ACEOF
3060 rm -f conftest.$ac_objext
3061 if { (ac_try="$ac_compile"
3062 case "(($ac_try" in
3063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064   *) ac_try_echo=$ac_try;;
3065 esac
3066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067   (eval "$ac_compile") 2>conftest.er1
3068   ac_status=$?
3069   grep -v '^ *+' conftest.er1 >conftest.err
3070   rm -f conftest.er1
3071   cat conftest.err >&5
3072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073   (exit $ac_status); } && {
3074          test -z "$ac_cxx_werror_flag" ||
3075          test ! -s conftest.err
3076        } && test -s conftest.$ac_objext; then
3077   ac_cv_prog_cxx_g=yes
3078 else
3079   echo "$as_me: failed program was:" >&5
3080 sed 's/^/| /' conftest.$ac_ext >&5
3081
3082         CXXFLAGS=""
3083       cat >conftest.$ac_ext <<_ACEOF
3084 /* confdefs.h.  */
3085 _ACEOF
3086 cat confdefs.h >>conftest.$ac_ext
3087 cat >>conftest.$ac_ext <<_ACEOF
3088 /* end confdefs.h.  */
3089
3090 int
3091 main ()
3092 {
3093
3094   ;
3095   return 0;
3096 }
3097 _ACEOF
3098 rm -f conftest.$ac_objext
3099 if { (ac_try="$ac_compile"
3100 case "(($ac_try" in
3101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102   *) ac_try_echo=$ac_try;;
3103 esac
3104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105   (eval "$ac_compile") 2>conftest.er1
3106   ac_status=$?
3107   grep -v '^ *+' conftest.er1 >conftest.err
3108   rm -f conftest.er1
3109   cat conftest.err >&5
3110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111   (exit $ac_status); } && {
3112          test -z "$ac_cxx_werror_flag" ||
3113          test ! -s conftest.err
3114        } && test -s conftest.$ac_objext; then
3115   :
3116 else
3117   echo "$as_me: failed program was:" >&5
3118 sed 's/^/| /' conftest.$ac_ext >&5
3119
3120         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3121          CXXFLAGS="-g"
3122          cat >conftest.$ac_ext <<_ACEOF
3123 /* confdefs.h.  */
3124 _ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h.  */
3128
3129 int
3130 main ()
3131 {
3132
3133   ;
3134   return 0;
3135 }
3136 _ACEOF
3137 rm -f conftest.$ac_objext
3138 if { (ac_try="$ac_compile"
3139 case "(($ac_try" in
3140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141   *) ac_try_echo=$ac_try;;
3142 esac
3143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144   (eval "$ac_compile") 2>conftest.er1
3145   ac_status=$?
3146   grep -v '^ *+' conftest.er1 >conftest.err
3147   rm -f conftest.er1
3148   cat conftest.err >&5
3149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150   (exit $ac_status); } && {
3151          test -z "$ac_cxx_werror_flag" ||
3152          test ! -s conftest.err
3153        } && test -s conftest.$ac_objext; then
3154   ac_cv_prog_cxx_g=yes
3155 else
3156   echo "$as_me: failed program was:" >&5
3157 sed 's/^/| /' conftest.$ac_ext >&5
3158
3159
3160 fi
3161
3162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3163 fi
3164
3165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3166 fi
3167
3168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3169    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3170 fi
3171 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3172 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3173 if test "$ac_test_CXXFLAGS" = set; then
3174   CXXFLAGS=$ac_save_CXXFLAGS
3175 elif test $ac_cv_prog_cxx_g = yes; then
3176   if test "$GXX" = yes; then
3177     CXXFLAGS="-g -O2"
3178   else
3179     CXXFLAGS="-g"
3180   fi
3181 else
3182   if test "$GXX" = yes; then
3183     CXXFLAGS="-O2"
3184   else
3185     CXXFLAGS=
3186   fi
3187 fi
3188 ac_ext=c
3189 ac_cpp='$CPP $CPPFLAGS'
3190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3193
3194 ac_ext=cpp
3195 ac_cpp='$CXXCPP $CPPFLAGS'
3196 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3197 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3198 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3199
3200 if test -n "$ac_tool_prefix"; then
3201   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3202 set dummy ${ac_tool_prefix}ar; ac_word=$2
3203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3205 if test "${ac_cv_prog_AR+set}" = set; then
3206   echo $ECHO_N "(cached) $ECHO_C" >&6
3207 else
3208   if test -n "$AR"; then
3209   ac_cv_prog_AR="$AR" # Let the user override the test.
3210 else
3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212 for as_dir in $PATH
3213 do
3214   IFS=$as_save_IFS
3215   test -z "$as_dir" && as_dir=.
3216   for ac_exec_ext in '' $ac_executable_extensions; do
3217   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3218     ac_cv_prog_AR="${ac_tool_prefix}ar"
3219     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3220     break 2
3221   fi
3222 done
3223 done
3224 IFS=$as_save_IFS
3225
3226 fi
3227 fi
3228 AR=$ac_cv_prog_AR
3229 if test -n "$AR"; then
3230   { echo "$as_me:$LINENO: result: $AR" >&5
3231 echo "${ECHO_T}$AR" >&6; }
3232 else
3233   { echo "$as_me:$LINENO: result: no" >&5
3234 echo "${ECHO_T}no" >&6; }
3235 fi
3236
3237
3238 fi
3239 if test -z "$ac_cv_prog_AR"; then
3240   ac_ct_AR=$AR
3241   # Extract the first word of "ar", so it can be a program name with args.
3242 set dummy ar; ac_word=$2
3243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3245 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3246   echo $ECHO_N "(cached) $ECHO_C" >&6
3247 else
3248   if test -n "$ac_ct_AR"; then
3249   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3250 else
3251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 for as_dir in $PATH
3253 do
3254   IFS=$as_save_IFS
3255   test -z "$as_dir" && as_dir=.
3256   for ac_exec_ext in '' $ac_executable_extensions; do
3257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3258     ac_cv_prog_ac_ct_AR="ar"
3259     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3260     break 2
3261   fi
3262 done
3263 done
3264 IFS=$as_save_IFS
3265
3266 fi
3267 fi
3268 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3269 if test -n "$ac_ct_AR"; then
3270   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3271 echo "${ECHO_T}$ac_ct_AR" >&6; }
3272 else
3273   { echo "$as_me:$LINENO: result: no" >&5
3274 echo "${ECHO_T}no" >&6; }
3275 fi
3276
3277   if test "x$ac_ct_AR" = x; then
3278     AR=":"
3279   else
3280     case $cross_compiling:$ac_tool_warned in
3281 yes:)
3282 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3283 whose name does not start with the host triplet.  If you think this
3284 configuration is useful to you, please write to autoconf@gnu.org." >&5
3285 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3286 whose name does not start with the host triplet.  If you think this
3287 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3288 ac_tool_warned=yes ;;
3289 esac
3290     AR=$ac_ct_AR
3291   fi
3292 else
3293   AR="$ac_cv_prog_AR"
3294 fi
3295
3296
3297 if test "$AR" = ":"; then
3298      { { echo "$as_me:$LINENO: error: failed: Sorry I could not find ar in the path" >&5
3299 echo "$as_me: error: failed: Sorry I could not find ar in the path" >&2;}
3300    { (exit 1); exit 1; }; }
3301 fi
3302
3303
3304 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
3305 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
3306 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
3307   echo $ECHO_N "(cached) $ECHO_C" >&6
3308 else
3309   ac_check_lib_save_LIBS=$LIBS
3310 LIBS="-lpthread  $LIBS"
3311 cat >conftest.$ac_ext <<_ACEOF
3312 /* confdefs.h.  */
3313 _ACEOF
3314 cat confdefs.h >>conftest.$ac_ext
3315 cat >>conftest.$ac_ext <<_ACEOF
3316 /* end confdefs.h.  */
3317
3318 /* Override any GCC internal prototype to avoid an error.
3319    Use char because int might match the return type of a GCC
3320    builtin and then its argument prototype would still apply.  */
3321 #ifdef __cplusplus
3322 extern "C"
3323 #endif
3324 char pthread_create ();
3325 int
3326 main ()
3327 {
3328 return pthread_create ();
3329   ;
3330   return 0;
3331 }
3332 _ACEOF
3333 rm -f conftest.$ac_objext conftest$ac_exeext
3334 if { (ac_try="$ac_link"
3335 case "(($ac_try" in
3336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337   *) ac_try_echo=$ac_try;;
3338 esac
3339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3340   (eval "$ac_link") 2>conftest.er1
3341   ac_status=$?
3342   grep -v '^ *+' conftest.er1 >conftest.err
3343   rm -f conftest.er1
3344   cat conftest.err >&5
3345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346   (exit $ac_status); } && {
3347          test -z "$ac_cxx_werror_flag" ||
3348          test ! -s conftest.err
3349        } && test -s conftest$ac_exeext &&
3350        $as_test_x conftest$ac_exeext; then
3351   ac_cv_lib_pthread_pthread_create=yes
3352 else
3353   echo "$as_me: failed program was:" >&5
3354 sed 's/^/| /' conftest.$ac_ext >&5
3355
3356         ac_cv_lib_pthread_pthread_create=no
3357 fi
3358
3359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3360       conftest$ac_exeext conftest.$ac_ext
3361 LIBS=$ac_check_lib_save_LIBS
3362 fi
3363 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
3364 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
3365 if test $ac_cv_lib_pthread_pthread_create = yes; then
3366   cat >>confdefs.h <<\_ACEOF
3367 #define HAVE_PTHREAD 1
3368 _ACEOF
3369  PTHREADLIB="-lpthread"
3370 fi
3371
3372
3373
3374 { echo "$as_me:$LINENO: checking system architecture" >&5
3375 echo $ECHO_N "checking system architecture... $ECHO_C" >&6; }
3376 archset="`awk '$1 == "'$host_cpu'" { print $2 }' $srcdir/buildlib/archtable`"
3377 if test "x$archset" = "x"; then
3378   { { echo "$as_me:$LINENO: error: failed: use --host=" >&5
3379 echo "$as_me: error: failed: use --host=" >&2;}
3380    { (exit 1); exit 1; }; }
3381 fi
3382 { echo "$as_me:$LINENO: result: $archset" >&5
3383 echo "${ECHO_T}$archset" >&6; }
3384 cat >>confdefs.h <<_ACEOF
3385 #define ARCHITECTURE "$archset"
3386 _ACEOF
3387
3388
3389 { echo "$as_me:$LINENO: checking for C9x integer types" >&5
3390 echo $ECHO_N "checking for C9x integer types... $ECHO_C" >&6; }
3391 if test "${c9x_ints+set}" = set; then
3392   echo $ECHO_N "(cached) $ECHO_C" >&6
3393 else
3394
3395     cat >conftest.$ac_ext <<_ACEOF
3396 /* confdefs.h.  */
3397 _ACEOF
3398 cat confdefs.h >>conftest.$ac_ext
3399 cat >>conftest.$ac_ext <<_ACEOF
3400 /* end confdefs.h.  */
3401 #include <inttypes.h>
3402 int
3403 main ()
3404 {
3405 uint8_t Foo1;uint16_t Foo2;uint32_t Foo3;uint64_t Foo
3406   ;
3407   return 0;
3408 }
3409 _ACEOF
3410 rm -f conftest.$ac_objext
3411 if { (ac_try="$ac_compile"
3412 case "(($ac_try" in
3413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414   *) ac_try_echo=$ac_try;;
3415 esac
3416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3417   (eval "$ac_compile") 2>conftest.er1
3418   ac_status=$?
3419   grep -v '^ *+' conftest.er1 >conftest.err
3420   rm -f conftest.er1
3421   cat conftest.err >&5
3422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423   (exit $ac_status); } && {
3424          test -z "$ac_cxx_werror_flag" ||
3425          test ! -s conftest.err
3426        } && test -s conftest.$ac_objext; then
3427   c9x_ints=yes
3428 else
3429   echo "$as_me: failed program was:" >&5
3430 sed 's/^/| /' conftest.$ac_ext >&5
3431
3432         c9x_ints=no
3433 fi
3434
3435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3436 fi
3437 { echo "$as_me:$LINENO: result: $c9x_ints" >&5
3438 echo "${ECHO_T}$c9x_ints" >&6; }
3439
3440
3441 if archline="`sed -ne 's/^'$archset':[  ]\+\(.*\)/\1/gp' $srcdir/buildlib/sizetable`"; then
3442
3443    set $archline
3444    if test "$1" = "little"; then
3445       ac_cv_c_bigendian=no
3446    else
3447       ac_cv_c_bigendian=yes
3448    fi
3449    size_char=$2
3450    size_int=$3
3451    size_short=$4
3452    size_long=$5
3453 fi
3454
3455 if test "$cross_compiling" = "yes" -a "$archline" = ""; then
3456   { { echo "$as_me:$LINENO: error: When cross compiling" >&5
3457 echo "$as_me: error: When cross compiling" >&2;}
3458    { (exit architecture must be present in sizetable); exit architecture must be present in sizetable; }; }
3459 fi
3460 ac_ext=cpp
3461 ac_cpp='$CXXCPP $CPPFLAGS'
3462 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3463 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3464 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3465 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3466 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
3467 if test -z "$CXXCPP"; then
3468   if test "${ac_cv_prog_CXXCPP+set}" = set; then
3469   echo $ECHO_N "(cached) $ECHO_C" >&6
3470 else
3471       # Double quotes because CXXCPP needs to be expanded
3472     for CXXCPP in "$CXX -E" "/lib/cpp"
3473     do
3474       ac_preproc_ok=false
3475 for ac_cxx_preproc_warn_flag in '' yes
3476 do
3477   # Use a header file that comes with gcc, so configuring glibc
3478   # with a fresh cross-compiler works.
3479   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3480   # <limits.h> exists even on freestanding compilers.
3481   # On the NeXT, cc -E runs the code through the compiler's parser,
3482   # not just through cpp. "Syntax error" is here to catch this case.
3483   cat >conftest.$ac_ext <<_ACEOF
3484 /* confdefs.h.  */
3485 _ACEOF
3486 cat confdefs.h >>conftest.$ac_ext
3487 cat >>conftest.$ac_ext <<_ACEOF
3488 /* end confdefs.h.  */
3489 #ifdef __STDC__
3490 # include <limits.h>
3491 #else
3492 # include <assert.h>
3493 #endif
3494                      Syntax error
3495 _ACEOF
3496 if { (ac_try="$ac_cpp conftest.$ac_ext"
3497 case "(($ac_try" in
3498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499   *) ac_try_echo=$ac_try;;
3500 esac
3501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3502   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3503   ac_status=$?
3504   grep -v '^ *+' conftest.er1 >conftest.err
3505   rm -f conftest.er1
3506   cat conftest.err >&5
3507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508   (exit $ac_status); } >/dev/null && {
3509          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3510          test ! -s conftest.err
3511        }; then
3512   :
3513 else
3514   echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3516
3517   # Broken: fails on valid input.
3518 continue
3519 fi
3520
3521 rm -f conftest.err conftest.$ac_ext
3522
3523   # OK, works on sane cases.  Now check whether nonexistent headers
3524   # can be detected and how.
3525   cat >conftest.$ac_ext <<_ACEOF
3526 /* confdefs.h.  */
3527 _ACEOF
3528 cat confdefs.h >>conftest.$ac_ext
3529 cat >>conftest.$ac_ext <<_ACEOF
3530 /* end confdefs.h.  */
3531 #include <ac_nonexistent.h>
3532 _ACEOF
3533 if { (ac_try="$ac_cpp conftest.$ac_ext"
3534 case "(($ac_try" in
3535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3536   *) ac_try_echo=$ac_try;;
3537 esac
3538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3539   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3540   ac_status=$?
3541   grep -v '^ *+' conftest.er1 >conftest.err
3542   rm -f conftest.er1
3543   cat conftest.err >&5
3544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545   (exit $ac_status); } >/dev/null && {
3546          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3547          test ! -s conftest.err
3548        }; then
3549   # Broken: success on invalid input.
3550 continue
3551 else
3552   echo "$as_me: failed program was:" >&5
3553 sed 's/^/| /' conftest.$ac_ext >&5
3554
3555   # Passes both tests.
3556 ac_preproc_ok=:
3557 break
3558 fi
3559
3560 rm -f conftest.err conftest.$ac_ext
3561
3562 done
3563 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3564 rm -f conftest.err conftest.$ac_ext
3565 if $ac_preproc_ok; then
3566   break
3567 fi
3568
3569     done
3570     ac_cv_prog_CXXCPP=$CXXCPP
3571
3572 fi
3573   CXXCPP=$ac_cv_prog_CXXCPP
3574 else
3575   ac_cv_prog_CXXCPP=$CXXCPP
3576 fi
3577 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
3578 echo "${ECHO_T}$CXXCPP" >&6; }
3579 ac_preproc_ok=false
3580 for ac_cxx_preproc_warn_flag in '' yes
3581 do
3582   # Use a header file that comes with gcc, so configuring glibc
3583   # with a fresh cross-compiler works.
3584   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3585   # <limits.h> exists even on freestanding compilers.
3586   # On the NeXT, cc -E runs the code through the compiler's parser,
3587   # not just through cpp. "Syntax error" is here to catch this case.
3588   cat >conftest.$ac_ext <<_ACEOF
3589 /* confdefs.h.  */
3590 _ACEOF
3591 cat confdefs.h >>conftest.$ac_ext
3592 cat >>conftest.$ac_ext <<_ACEOF
3593 /* end confdefs.h.  */
3594 #ifdef __STDC__
3595 # include <limits.h>
3596 #else
3597 # include <assert.h>
3598 #endif
3599                      Syntax error
3600 _ACEOF
3601 if { (ac_try="$ac_cpp conftest.$ac_ext"
3602 case "(($ac_try" in
3603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604   *) ac_try_echo=$ac_try;;
3605 esac
3606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3607   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3608   ac_status=$?
3609   grep -v '^ *+' conftest.er1 >conftest.err
3610   rm -f conftest.er1
3611   cat conftest.err >&5
3612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613   (exit $ac_status); } >/dev/null && {
3614          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3615          test ! -s conftest.err
3616        }; then
3617   :
3618 else
3619   echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3621
3622   # Broken: fails on valid input.
3623 continue
3624 fi
3625
3626 rm -f conftest.err conftest.$ac_ext
3627
3628   # OK, works on sane cases.  Now check whether nonexistent headers
3629   # can be detected and how.
3630   cat >conftest.$ac_ext <<_ACEOF
3631 /* confdefs.h.  */
3632 _ACEOF
3633 cat confdefs.h >>conftest.$ac_ext
3634 cat >>conftest.$ac_ext <<_ACEOF
3635 /* end confdefs.h.  */
3636 #include <ac_nonexistent.h>
3637 _ACEOF
3638 if { (ac_try="$ac_cpp conftest.$ac_ext"
3639 case "(($ac_try" in
3640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641   *) ac_try_echo=$ac_try;;
3642 esac
3643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3644   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3645   ac_status=$?
3646   grep -v '^ *+' conftest.er1 >conftest.err
3647   rm -f conftest.er1
3648   cat conftest.err >&5
3649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650   (exit $ac_status); } >/dev/null && {
3651          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3652          test ! -s conftest.err
3653        }; then
3654   # Broken: success on invalid input.
3655 continue
3656 else
3657   echo "$as_me: failed program was:" >&5
3658 sed 's/^/| /' conftest.$ac_ext >&5
3659
3660   # Passes both tests.
3661 ac_preproc_ok=:
3662 break
3663 fi
3664
3665 rm -f conftest.err conftest.$ac_ext
3666
3667 done
3668 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3669 rm -f conftest.err conftest.$ac_ext
3670 if $ac_preproc_ok; then
3671   :
3672 else
3673   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3674 See \`config.log' for more details." >&5
3675 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3676 See \`config.log' for more details." >&2;}
3677    { (exit 1); exit 1; }; }
3678 fi
3679
3680 ac_ext=cpp
3681 ac_cpp='$CXXCPP $CPPFLAGS'
3682 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3683 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3684 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3685
3686
3687 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3688 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3689 if test "${ac_cv_path_GREP+set}" = set; then
3690   echo $ECHO_N "(cached) $ECHO_C" >&6
3691 else
3692   # Extract the first word of "grep ggrep" to use in msg output
3693 if test -z "$GREP"; then
3694 set dummy grep ggrep; ac_prog_name=$2
3695 if test "${ac_cv_path_GREP+set}" = set; then
3696   echo $ECHO_N "(cached) $ECHO_C" >&6
3697 else
3698   ac_path_GREP_found=false
3699 # Loop through the user's path and test for each of PROGNAME-LIST
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3702 do
3703   IFS=$as_save_IFS
3704   test -z "$as_dir" && as_dir=.
3705   for ac_prog in grep ggrep; do
3706   for ac_exec_ext in '' $ac_executable_extensions; do
3707     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3708     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3709     # Check for GNU ac_path_GREP and select it if it is found.
3710   # Check for GNU $ac_path_GREP
3711 case `"$ac_path_GREP" --version 2>&1` in
3712 *GNU*)
3713   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3714 *)
3715   ac_count=0
3716   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3717   while :
3718   do
3719     cat "conftest.in" "conftest.in" >"conftest.tmp"
3720     mv "conftest.tmp" "conftest.in"
3721     cp "conftest.in" "conftest.nl"
3722     echo 'GREP' >> "conftest.nl"
3723     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3724     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3725     ac_count=`expr $ac_count + 1`
3726     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3727       # Best one so far, save it but keep looking for a better one
3728       ac_cv_path_GREP="$ac_path_GREP"
3729       ac_path_GREP_max=$ac_count
3730     fi
3731     # 10*(2^10) chars as input seems more than enough
3732     test $ac_count -gt 10 && break
3733   done
3734   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3735 esac
3736
3737
3738     $ac_path_GREP_found && break 3
3739   done
3740 done
3741
3742 done
3743 IFS=$as_save_IFS
3744
3745
3746 fi
3747
3748 GREP="$ac_cv_path_GREP"
3749 if test -z "$GREP"; then
3750   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3751 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3752    { (exit 1); exit 1; }; }
3753 fi
3754
3755 else
3756   ac_cv_path_GREP=$GREP
3757 fi
3758
3759
3760 fi
3761 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3762 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3763  GREP="$ac_cv_path_GREP"
3764
3765
3766 { echo "$as_me:$LINENO: checking for egrep" >&5
3767 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3768 if test "${ac_cv_path_EGREP+set}" = set; then
3769   echo $ECHO_N "(cached) $ECHO_C" >&6
3770 else
3771   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3772    then ac_cv_path_EGREP="$GREP -E"
3773    else
3774      # Extract the first word of "egrep" to use in msg output
3775 if test -z "$EGREP"; then
3776 set dummy egrep; ac_prog_name=$2
3777 if test "${ac_cv_path_EGREP+set}" = set; then
3778   echo $ECHO_N "(cached) $ECHO_C" >&6
3779 else
3780   ac_path_EGREP_found=false
3781 # Loop through the user's path and test for each of PROGNAME-LIST
3782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3783 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3784 do
3785   IFS=$as_save_IFS
3786   test -z "$as_dir" && as_dir=.
3787   for ac_prog in egrep; do
3788   for ac_exec_ext in '' $ac_executable_extensions; do
3789     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3790     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3791     # Check for GNU ac_path_EGREP and select it if it is found.
3792   # Check for GNU $ac_path_EGREP
3793 case `"$ac_path_EGREP" --version 2>&1` in
3794 *GNU*)
3795   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3796 *)
3797   ac_count=0
3798   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3799   while :
3800   do
3801     cat "conftest.in" "conftest.in" >"conftest.tmp"
3802     mv "conftest.tmp" "conftest.in"
3803     cp "conftest.in" "conftest.nl"
3804     echo 'EGREP' >> "conftest.nl"
3805     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3806     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3807     ac_count=`expr $ac_count + 1`
3808     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3809       # Best one so far, save it but keep looking for a better one
3810       ac_cv_path_EGREP="$ac_path_EGREP"
3811       ac_path_EGREP_max=$ac_count
3812     fi
3813     # 10*(2^10) chars as input seems more than enough
3814     test $ac_count -gt 10 && break
3815   done
3816   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3817 esac
3818
3819
3820     $ac_path_EGREP_found && break 3
3821   done
3822 done
3823
3824 done
3825 IFS=$as_save_IFS
3826
3827
3828 fi
3829
3830 EGREP="$ac_cv_path_EGREP"
3831 if test -z "$EGREP"; then
3832   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3833 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3834    { (exit 1); exit 1; }; }
3835 fi
3836
3837 else
3838   ac_cv_path_EGREP=$EGREP
3839 fi
3840
3841
3842    fi
3843 fi
3844 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3845 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3846  EGREP="$ac_cv_path_EGREP"
3847
3848
3849 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3850 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3851 if test "${ac_cv_header_stdc+set}" = set; then
3852   echo $ECHO_N "(cached) $ECHO_C" >&6
3853 else
3854   cat >conftest.$ac_ext <<_ACEOF
3855 /* confdefs.h.  */
3856 _ACEOF
3857 cat confdefs.h >>conftest.$ac_ext
3858 cat >>conftest.$ac_ext <<_ACEOF
3859 /* end confdefs.h.  */
3860 #include <stdlib.h>
3861 #include <stdarg.h>
3862 #include <string.h>
3863 #include <float.h>
3864
3865 int
3866 main ()
3867 {
3868
3869   ;
3870   return 0;
3871 }
3872 _ACEOF
3873 rm -f conftest.$ac_objext
3874 if { (ac_try="$ac_compile"
3875 case "(($ac_try" in
3876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877   *) ac_try_echo=$ac_try;;
3878 esac
3879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3880   (eval "$ac_compile") 2>conftest.er1
3881   ac_status=$?
3882   grep -v '^ *+' conftest.er1 >conftest.err
3883   rm -f conftest.er1
3884   cat conftest.err >&5
3885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886   (exit $ac_status); } && {
3887          test -z "$ac_cxx_werror_flag" ||
3888          test ! -s conftest.err
3889        } && test -s conftest.$ac_objext; then
3890   ac_cv_header_stdc=yes
3891 else
3892   echo "$as_me: failed program was:" >&5
3893 sed 's/^/| /' conftest.$ac_ext >&5
3894
3895         ac_cv_header_stdc=no
3896 fi
3897
3898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3899
3900 if test $ac_cv_header_stdc = yes; then
3901   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3902   cat >conftest.$ac_ext <<_ACEOF
3903 /* confdefs.h.  */
3904 _ACEOF
3905 cat confdefs.h >>conftest.$ac_ext
3906 cat >>conftest.$ac_ext <<_ACEOF
3907 /* end confdefs.h.  */
3908 #include <string.h>
3909
3910 _ACEOF
3911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3912   $EGREP "memchr" >/dev/null 2>&1; then
3913   :
3914 else
3915   ac_cv_header_stdc=no
3916 fi
3917 rm -f conftest*
3918
3919 fi
3920
3921 if test $ac_cv_header_stdc = yes; then
3922   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3923   cat >conftest.$ac_ext <<_ACEOF
3924 /* confdefs.h.  */
3925 _ACEOF
3926 cat confdefs.h >>conftest.$ac_ext
3927 cat >>conftest.$ac_ext <<_ACEOF
3928 /* end confdefs.h.  */
3929 #include <stdlib.h>
3930
3931 _ACEOF
3932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3933   $EGREP "free" >/dev/null 2>&1; then
3934   :
3935 else
3936   ac_cv_header_stdc=no
3937 fi
3938 rm -f conftest*
3939
3940 fi
3941
3942 if test $ac_cv_header_stdc = yes; then
3943   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3944   if test "$cross_compiling" = yes; then
3945   :
3946 else
3947   cat >conftest.$ac_ext <<_ACEOF
3948 /* confdefs.h.  */
3949 _ACEOF
3950 cat confdefs.h >>conftest.$ac_ext
3951 cat >>conftest.$ac_ext <<_ACEOF
3952 /* end confdefs.h.  */
3953 #include <ctype.h>
3954 #include <stdlib.h>
3955 #if ((' ' & 0x0FF) == 0x020)
3956 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3957 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3958 #else
3959 # define ISLOWER(c) \
3960                    (('a' <= (c) && (c) <= 'i') \
3961                      || ('j' <= (c) && (c) <= 'r') \
3962                      || ('s' <= (c) && (c) <= 'z'))
3963 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3964 #endif
3965
3966 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3967 int
3968 main ()
3969 {
3970   int i;
3971   for (i = 0; i < 256; i++)
3972     if (XOR (islower (i), ISLOWER (i))
3973         || toupper (i) != TOUPPER (i))
3974       return 2;
3975   return 0;
3976 }
3977 _ACEOF
3978 rm -f conftest$ac_exeext
3979 if { (ac_try="$ac_link"
3980 case "(($ac_try" in
3981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3982   *) ac_try_echo=$ac_try;;
3983 esac
3984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3985   (eval "$ac_link") 2>&5
3986   ac_status=$?
3987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3989   { (case "(($ac_try" in
3990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3991   *) ac_try_echo=$ac_try;;
3992 esac
3993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3994   (eval "$ac_try") 2>&5
3995   ac_status=$?
3996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997   (exit $ac_status); }; }; then
3998   :
3999 else
4000   echo "$as_me: program exited with status $ac_status" >&5
4001 echo "$as_me: failed program was:" >&5
4002 sed 's/^/| /' conftest.$ac_ext >&5
4003
4004 ( exit $ac_status )
4005 ac_cv_header_stdc=no
4006 fi
4007 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4008 fi
4009
4010
4011 fi
4012 fi
4013 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4014 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4015 if test $ac_cv_header_stdc = yes; then
4016
4017 cat >>confdefs.h <<\_ACEOF
4018 #define STDC_HEADERS 1
4019 _ACEOF
4020
4021 fi
4022
4023 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4034                   inttypes.h stdint.h unistd.h
4035 do
4036 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4037 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4040   echo $ECHO_N "(cached) $ECHO_C" >&6
4041 else
4042   cat >conftest.$ac_ext <<_ACEOF
4043 /* confdefs.h.  */
4044 _ACEOF
4045 cat confdefs.h >>conftest.$ac_ext
4046 cat >>conftest.$ac_ext <<_ACEOF
4047 /* end confdefs.h.  */
4048 $ac_includes_default
4049
4050 #include <$ac_header>
4051 _ACEOF
4052 rm -f conftest.$ac_objext
4053 if { (ac_try="$ac_compile"
4054 case "(($ac_try" in
4055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056   *) ac_try_echo=$ac_try;;
4057 esac
4058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4059   (eval "$ac_compile") 2>conftest.er1
4060   ac_status=$?
4061   grep -v '^ *+' conftest.er1 >conftest.err
4062   rm -f conftest.er1
4063   cat conftest.err >&5
4064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065   (exit $ac_status); } && {
4066          test -z "$ac_cxx_werror_flag" ||
4067          test ! -s conftest.err
4068        } && test -s conftest.$ac_objext; then
4069   eval "$as_ac_Header=yes"
4070 else
4071   echo "$as_me: failed program was:" >&5
4072 sed 's/^/| /' conftest.$ac_ext >&5
4073
4074         eval "$as_ac_Header=no"
4075 fi
4076
4077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4078 fi
4079 ac_res=`eval echo '${'$as_ac_Header'}'`
4080                { echo "$as_me:$LINENO: result: $ac_res" >&5
4081 echo "${ECHO_T}$ac_res" >&6; }
4082 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4083   cat >>confdefs.h <<_ACEOF
4084 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4085 _ACEOF
4086
4087 fi
4088
4089 done
4090
4091
4092 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4093 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4094 if test "${ac_cv_c_bigendian+set}" = set; then
4095   echo $ECHO_N "(cached) $ECHO_C" >&6
4096 else
4097   # See if sys/param.h defines the BYTE_ORDER macro.
4098 cat >conftest.$ac_ext <<_ACEOF
4099 /* confdefs.h.  */
4100 _ACEOF
4101 cat confdefs.h >>conftest.$ac_ext
4102 cat >>conftest.$ac_ext <<_ACEOF
4103 /* end confdefs.h.  */
4104 #include <sys/types.h>
4105 #include <sys/param.h>
4106
4107 int
4108 main ()
4109 {
4110 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4111         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4112  bogus endian macros
4113 #endif
4114
4115   ;
4116   return 0;
4117 }
4118 _ACEOF
4119 rm -f conftest.$ac_objext
4120 if { (ac_try="$ac_compile"
4121 case "(($ac_try" in
4122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4123   *) ac_try_echo=$ac_try;;
4124 esac
4125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4126   (eval "$ac_compile") 2>conftest.er1
4127   ac_status=$?
4128   grep -v '^ *+' conftest.er1 >conftest.err
4129   rm -f conftest.er1
4130   cat conftest.err >&5
4131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132   (exit $ac_status); } && {
4133          test -z "$ac_cxx_werror_flag" ||
4134          test ! -s conftest.err
4135        } && test -s conftest.$ac_objext; then
4136   # It does; now see whether it defined to BIG_ENDIAN or not.
4137 cat >conftest.$ac_ext <<_ACEOF
4138 /* confdefs.h.  */
4139 _ACEOF
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h.  */
4143 #include <sys/types.h>
4144 #include <sys/param.h>
4145
4146 int
4147 main ()
4148 {
4149 #if BYTE_ORDER != BIG_ENDIAN
4150  not big endian
4151 #endif
4152
4153   ;
4154   return 0;
4155 }
4156 _ACEOF
4157 rm -f conftest.$ac_objext
4158 if { (ac_try="$ac_compile"
4159 case "(($ac_try" in
4160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4161   *) ac_try_echo=$ac_try;;
4162 esac
4163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4164   (eval "$ac_compile") 2>conftest.er1
4165   ac_status=$?
4166   grep -v '^ *+' conftest.er1 >conftest.err
4167   rm -f conftest.er1
4168   cat conftest.err >&5
4169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170   (exit $ac_status); } && {
4171          test -z "$ac_cxx_werror_flag" ||
4172          test ! -s conftest.err
4173        } && test -s conftest.$ac_objext; then
4174   ac_cv_c_bigendian=yes
4175 else
4176   echo "$as_me: failed program was:" >&5
4177 sed 's/^/| /' conftest.$ac_ext >&5
4178
4179         ac_cv_c_bigendian=no
4180 fi
4181
4182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4183 else
4184   echo "$as_me: failed program was:" >&5
4185 sed 's/^/| /' conftest.$ac_ext >&5
4186
4187         # It does not; compile a test program.
4188 if test "$cross_compiling" = yes; then
4189   # try to guess the endianness by grepping values into an object file
4190   ac_cv_c_bigendian=unknown
4191   cat >conftest.$ac_ext <<_ACEOF
4192 /* confdefs.h.  */
4193 _ACEOF
4194 cat confdefs.h >>conftest.$ac_ext
4195 cat >>conftest.$ac_ext <<_ACEOF
4196 /* end confdefs.h.  */
4197 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4198 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4199 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4200 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4201 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4202 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4203 int
4204 main ()
4205 {
4206  _ascii (); _ebcdic ();
4207   ;
4208   return 0;
4209 }
4210 _ACEOF
4211 rm -f conftest.$ac_objext
4212 if { (ac_try="$ac_compile"
4213 case "(($ac_try" in
4214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4215   *) ac_try_echo=$ac_try;;
4216 esac
4217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4218   (eval "$ac_compile") 2>conftest.er1
4219   ac_status=$?
4220   grep -v '^ *+' conftest.er1 >conftest.err
4221   rm -f conftest.er1
4222   cat conftest.err >&5
4223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224   (exit $ac_status); } && {
4225          test -z "$ac_cxx_werror_flag" ||
4226          test ! -s conftest.err
4227        } && test -s conftest.$ac_objext; then
4228   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4229   ac_cv_c_bigendian=yes
4230 fi
4231 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4232   if test "$ac_cv_c_bigendian" = unknown; then
4233     ac_cv_c_bigendian=no
4234   else
4235     # finding both strings is unlikely to happen, but who knows?
4236     ac_cv_c_bigendian=unknown
4237   fi
4238 fi
4239 else
4240   echo "$as_me: failed program was:" >&5
4241 sed 's/^/| /' conftest.$ac_ext >&5
4242
4243
4244 fi
4245
4246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4247 else
4248   cat >conftest.$ac_ext <<_ACEOF
4249 /* confdefs.h.  */
4250 _ACEOF
4251 cat confdefs.h >>conftest.$ac_ext
4252 cat >>conftest.$ac_ext <<_ACEOF
4253 /* end confdefs.h.  */
4254 $ac_includes_default
4255 int
4256 main ()
4257 {
4258
4259   /* Are we little or big endian?  From Harbison&Steele.  */
4260   union
4261   {
4262     long int l;
4263     char c[sizeof (long int)];
4264   } u;
4265   u.l = 1;
4266   return u.c[sizeof (long int) - 1] == 1;
4267
4268   ;
4269   return 0;
4270 }
4271 _ACEOF
4272 rm -f conftest$ac_exeext
4273 if { (ac_try="$ac_link"
4274 case "(($ac_try" in
4275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276   *) ac_try_echo=$ac_try;;
4277 esac
4278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4279   (eval "$ac_link") 2>&5
4280   ac_status=$?
4281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4283   { (case "(($ac_try" in
4284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285   *) ac_try_echo=$ac_try;;
4286 esac
4287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4288   (eval "$ac_try") 2>&5
4289   ac_status=$?
4290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291   (exit $ac_status); }; }; then
4292   ac_cv_c_bigendian=no
4293 else
4294   echo "$as_me: program exited with status $ac_status" >&5
4295 echo "$as_me: failed program was:" >&5
4296 sed 's/^/| /' conftest.$ac_ext >&5
4297
4298 ( exit $ac_status )
4299 ac_cv_c_bigendian=yes
4300 fi
4301 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4302 fi
4303
4304
4305 fi
4306
4307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4308 fi
4309 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4310 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4311 case $ac_cv_c_bigendian in
4312   yes)
4313
4314 cat >>confdefs.h <<\_ACEOF
4315 #define WORDS_BIGENDIAN 1
4316 _ACEOF
4317  ;;
4318   no)
4319      ;;
4320   *)
4321     { { echo "$as_me:$LINENO: error: unknown endianness
4322 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4323 echo "$as_me: error: unknown endianness
4324 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4325    { (exit 1); exit 1; }; } ;;
4326 esac
4327
4328
4329 HAVE_C9X=yes
4330 if test x"$c9x_ints" = x"no"; then
4331    { echo "$as_me:$LINENO: checking for char" >&5
4332 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
4333 if test "${ac_cv_type_char+set}" = set; then
4334   echo $ECHO_N "(cached) $ECHO_C" >&6
4335 else
4336   cat >conftest.$ac_ext <<_ACEOF
4337 /* confdefs.h.  */
4338 _ACEOF
4339 cat confdefs.h >>conftest.$ac_ext
4340 cat >>conftest.$ac_ext <<_ACEOF
4341 /* end confdefs.h.  */
4342 $ac_includes_default
4343 typedef char ac__type_new_;
4344 int
4345 main ()
4346 {
4347 if ((ac__type_new_ *) 0)
4348   return 0;
4349 if (sizeof (ac__type_new_))
4350   return 0;
4351   ;
4352   return 0;
4353 }
4354 _ACEOF
4355 rm -f conftest.$ac_objext
4356 if { (ac_try="$ac_compile"
4357 case "(($ac_try" in
4358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4359   *) ac_try_echo=$ac_try;;
4360 esac
4361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4362   (eval "$ac_compile") 2>conftest.er1
4363   ac_status=$?
4364   grep -v '^ *+' conftest.er1 >conftest.err
4365   rm -f conftest.er1
4366   cat conftest.err >&5
4367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368   (exit $ac_status); } && {
4369          test -z "$ac_cxx_werror_flag" ||
4370          test ! -s conftest.err
4371        } && test -s conftest.$ac_objext; then
4372   ac_cv_type_char=yes
4373 else
4374   echo "$as_me: failed program was:" >&5
4375 sed 's/^/| /' conftest.$ac_ext >&5
4376
4377         ac_cv_type_char=no
4378 fi
4379
4380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4381 fi
4382 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4383 echo "${ECHO_T}$ac_cv_type_char" >&6; }
4384
4385 # The cast to long int works around a bug in the HP C Compiler
4386 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4387 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4388 # This bug is HP SR number 8606223364.
4389 { echo "$as_me:$LINENO: checking size of char" >&5
4390 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
4391 if test "${ac_cv_sizeof_char+set}" = set; then
4392   echo $ECHO_N "(cached) $ECHO_C" >&6
4393 else
4394   if test "$cross_compiling" = yes; then
4395   # Depending upon the size, compute the lo and hi bounds.
4396 cat >conftest.$ac_ext <<_ACEOF
4397 /* confdefs.h.  */
4398 _ACEOF
4399 cat confdefs.h >>conftest.$ac_ext
4400 cat >>conftest.$ac_ext <<_ACEOF
4401 /* end confdefs.h.  */
4402 $ac_includes_default
4403    typedef char ac__type_sizeof_;
4404 int
4405 main ()
4406 {
4407 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4408 test_array [0] = 0
4409
4410   ;
4411   return 0;
4412 }
4413 _ACEOF
4414 rm -f conftest.$ac_objext
4415 if { (ac_try="$ac_compile"
4416 case "(($ac_try" in
4417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4418   *) ac_try_echo=$ac_try;;
4419 esac
4420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4421   (eval "$ac_compile") 2>conftest.er1
4422   ac_status=$?
4423   grep -v '^ *+' conftest.er1 >conftest.err
4424   rm -f conftest.er1
4425   cat conftest.err >&5
4426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427   (exit $ac_status); } && {
4428          test -z "$ac_cxx_werror_flag" ||
4429          test ! -s conftest.err
4430        } && test -s conftest.$ac_objext; then
4431   ac_lo=0 ac_mid=0
4432   while :; do
4433     cat >conftest.$ac_ext <<_ACEOF
4434 /* confdefs.h.  */
4435 _ACEOF
4436 cat confdefs.h >>conftest.$ac_ext
4437 cat >>conftest.$ac_ext <<_ACEOF
4438 /* end confdefs.h.  */
4439 $ac_includes_default
4440    typedef char ac__type_sizeof_;
4441 int
4442 main ()
4443 {
4444 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4445 test_array [0] = 0
4446
4447   ;
4448   return 0;
4449 }
4450 _ACEOF
4451 rm -f conftest.$ac_objext
4452 if { (ac_try="$ac_compile"
4453 case "(($ac_try" in
4454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455   *) ac_try_echo=$ac_try;;
4456 esac
4457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4458   (eval "$ac_compile") 2>conftest.er1
4459   ac_status=$?
4460   grep -v '^ *+' conftest.er1 >conftest.err
4461   rm -f conftest.er1
4462   cat conftest.err >&5
4463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464   (exit $ac_status); } && {
4465          test -z "$ac_cxx_werror_flag" ||
4466          test ! -s conftest.err
4467        } && test -s conftest.$ac_objext; then
4468   ac_hi=$ac_mid; break
4469 else
4470   echo "$as_me: failed program was:" >&5
4471 sed 's/^/| /' conftest.$ac_ext >&5
4472
4473         ac_lo=`expr $ac_mid + 1`
4474                         if test $ac_lo -le $ac_mid; then
4475                           ac_lo= ac_hi=
4476                           break
4477                         fi
4478                         ac_mid=`expr 2 '*' $ac_mid + 1`
4479 fi
4480
4481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4482   done
4483 else
4484   echo "$as_me: failed program was:" >&5
4485 sed 's/^/| /' conftest.$ac_ext >&5
4486
4487         cat >conftest.$ac_ext <<_ACEOF
4488 /* confdefs.h.  */
4489 _ACEOF
4490 cat confdefs.h >>conftest.$ac_ext
4491 cat >>conftest.$ac_ext <<_ACEOF
4492 /* end confdefs.h.  */
4493 $ac_includes_default
4494    typedef char ac__type_sizeof_;
4495 int
4496 main ()
4497 {
4498 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4499 test_array [0] = 0
4500
4501   ;
4502   return 0;
4503 }
4504 _ACEOF
4505 rm -f conftest.$ac_objext
4506 if { (ac_try="$ac_compile"
4507 case "(($ac_try" in
4508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4509   *) ac_try_echo=$ac_try;;
4510 esac
4511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4512   (eval "$ac_compile") 2>conftest.er1
4513   ac_status=$?
4514   grep -v '^ *+' conftest.er1 >conftest.err
4515   rm -f conftest.er1
4516   cat conftest.err >&5
4517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518   (exit $ac_status); } && {
4519          test -z "$ac_cxx_werror_flag" ||
4520          test ! -s conftest.err
4521        } && test -s conftest.$ac_objext; then
4522   ac_hi=-1 ac_mid=-1
4523   while :; do
4524     cat >conftest.$ac_ext <<_ACEOF
4525 /* confdefs.h.  */
4526 _ACEOF
4527 cat confdefs.h >>conftest.$ac_ext
4528 cat >>conftest.$ac_ext <<_ACEOF
4529 /* end confdefs.h.  */
4530 $ac_includes_default
4531    typedef char ac__type_sizeof_;
4532 int
4533 main ()
4534 {
4535 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4536 test_array [0] = 0
4537
4538   ;
4539   return 0;
4540 }
4541 _ACEOF
4542 rm -f conftest.$ac_objext
4543 if { (ac_try="$ac_compile"
4544 case "(($ac_try" in
4545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4546   *) ac_try_echo=$ac_try;;
4547 esac
4548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4549   (eval "$ac_compile") 2>conftest.er1
4550   ac_status=$?
4551   grep -v '^ *+' conftest.er1 >conftest.err
4552   rm -f conftest.er1
4553   cat conftest.err >&5
4554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555   (exit $ac_status); } && {
4556          test -z "$ac_cxx_werror_flag" ||
4557          test ! -s conftest.err
4558        } && test -s conftest.$ac_objext; then
4559   ac_lo=$ac_mid; break
4560 else
4561   echo "$as_me: failed program was:" >&5
4562 sed 's/^/| /' conftest.$ac_ext >&5
4563
4564         ac_hi=`expr '(' $ac_mid ')' - 1`
4565                         if test $ac_mid -le $ac_hi; then
4566                           ac_lo= ac_hi=
4567                           break
4568                         fi
4569                         ac_mid=`expr 2 '*' $ac_mid`
4570 fi
4571
4572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4573   done
4574 else
4575   echo "$as_me: failed program was:" >&5
4576 sed 's/^/| /' conftest.$ac_ext >&5
4577
4578         ac_lo= ac_hi=
4579 fi
4580
4581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4582 fi
4583
4584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4585 # Binary search between lo and hi bounds.
4586 while test "x$ac_lo" != "x$ac_hi"; do
4587   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4588   cat >conftest.$ac_ext <<_ACEOF
4589 /* confdefs.h.  */
4590 _ACEOF
4591 cat confdefs.h >>conftest.$ac_ext
4592 cat >>conftest.$ac_ext <<_ACEOF
4593 /* end confdefs.h.  */
4594 $ac_includes_default
4595    typedef char ac__type_sizeof_;
4596 int
4597 main ()
4598 {
4599 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4600 test_array [0] = 0
4601
4602   ;
4603   return 0;
4604 }
4605 _ACEOF
4606 rm -f conftest.$ac_objext
4607 if { (ac_try="$ac_compile"
4608 case "(($ac_try" in
4609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4610   *) ac_try_echo=$ac_try;;
4611 esac
4612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4613   (eval "$ac_compile") 2>conftest.er1
4614   ac_status=$?
4615   grep -v '^ *+' conftest.er1 >conftest.err
4616   rm -f conftest.er1
4617   cat conftest.err >&5
4618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619   (exit $ac_status); } && {
4620          test -z "$ac_cxx_werror_flag" ||
4621          test ! -s conftest.err
4622        } && test -s conftest.$ac_objext; then
4623   ac_hi=$ac_mid
4624 else
4625   echo "$as_me: failed program was:" >&5
4626 sed 's/^/| /' conftest.$ac_ext >&5
4627
4628         ac_lo=`expr '(' $ac_mid ')' + 1`
4629 fi
4630
4631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4632 done
4633 case $ac_lo in
4634 ?*) ac_cv_sizeof_char=$ac_lo;;
4635 '') if test "$ac_cv_type_char" = yes; then
4636      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
4637 See \`config.log' for more details." >&5
4638 echo "$as_me: error: cannot compute sizeof (char)
4639 See \`config.log' for more details." >&2;}
4640    { (exit 77); exit 77; }; }
4641    else
4642      ac_cv_sizeof_char=0
4643    fi ;;
4644 esac
4645 else
4646   cat >conftest.$ac_ext <<_ACEOF
4647 /* confdefs.h.  */
4648 _ACEOF
4649 cat confdefs.h >>conftest.$ac_ext
4650 cat >>conftest.$ac_ext <<_ACEOF
4651 /* end confdefs.h.  */
4652 $ac_includes_default
4653    typedef char ac__type_sizeof_;
4654 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
4655 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
4656 #include <stdio.h>
4657 #include <stdlib.h>
4658 int
4659 main ()
4660 {
4661
4662   FILE *f = fopen ("conftest.val", "w");
4663   if (! f)
4664     return 1;
4665   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
4666     {
4667       long int i = longval ();
4668       if (i != ((long int) (sizeof (ac__type_sizeof_))))
4669         return 1;
4670       fprintf (f, "%ld\n", i);
4671     }
4672   else
4673     {
4674       unsigned long int i = ulongval ();
4675       if (i != ((long int) (sizeof (ac__type_sizeof_))))
4676         return 1;
4677       fprintf (f, "%lu\n", i);
4678     }
4679   return ferror (f) || fclose (f) != 0;
4680
4681   ;
4682   return 0;
4683 }
4684 _ACEOF
4685 rm -f conftest$ac_exeext
4686 if { (ac_try="$ac_link"
4687 case "(($ac_try" in
4688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4689   *) ac_try_echo=$ac_try;;
4690 esac
4691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4692   (eval "$ac_link") 2>&5
4693   ac_status=$?
4694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4696   { (case "(($ac_try" in
4697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4698   *) ac_try_echo=$ac_try;;
4699 esac
4700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4701   (eval "$ac_try") 2>&5
4702   ac_status=$?
4703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704   (exit $ac_status); }; }; then
4705   ac_cv_sizeof_char=`cat conftest.val`
4706 else
4707   echo "$as_me: program exited with status $ac_status" >&5
4708 echo "$as_me: failed program was:" >&5
4709 sed 's/^/| /' conftest.$ac_ext >&5
4710
4711 ( exit $ac_status )
4712 if test "$ac_cv_type_char" = yes; then
4713      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
4714 See \`config.log' for more details." >&5
4715 echo "$as_me: error: cannot compute sizeof (char)
4716 See \`config.log' for more details." >&2;}
4717    { (exit 77); exit 77; }; }
4718    else
4719      ac_cv_sizeof_char=0
4720    fi
4721 fi
4722 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4723 fi
4724 rm -f conftest.val
4725 fi
4726 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
4727 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
4728
4729
4730
4731 cat >>confdefs.h <<_ACEOF
4732 #define SIZEOF_CHAR $ac_cv_sizeof_char
4733 _ACEOF
4734
4735
4736    { echo "$as_me:$LINENO: checking for int" >&5
4737 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
4738 if test "${ac_cv_type_int+set}" = set; then
4739   echo $ECHO_N "(cached) $ECHO_C" >&6
4740 else
4741   cat >conftest.$ac_ext <<_ACEOF
4742 /* confdefs.h.  */
4743 _ACEOF
4744 cat confdefs.h >>conftest.$ac_ext
4745 cat >>conftest.$ac_ext <<_ACEOF
4746 /* end confdefs.h.  */
4747 $ac_includes_default
4748 typedef int ac__type_new_;
4749 int
4750 main ()
4751 {
4752 if ((ac__type_new_ *) 0)
4753   return 0;
4754 if (sizeof (ac__type_new_))
4755   return 0;
4756   ;
4757   return 0;
4758 }
4759 _ACEOF
4760 rm -f conftest.$ac_objext
4761 if { (ac_try="$ac_compile"
4762 case "(($ac_try" in
4763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4764   *) ac_try_echo=$ac_try;;
4765 esac
4766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4767   (eval "$ac_compile") 2>conftest.er1
4768   ac_status=$?
4769   grep -v '^ *+' conftest.er1 >conftest.err
4770   rm -f conftest.er1
4771   cat conftest.err >&5
4772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773   (exit $ac_status); } && {
4774          test -z "$ac_cxx_werror_flag" ||
4775          test ! -s conftest.err
4776        } && test -s conftest.$ac_objext; then
4777   ac_cv_type_int=yes
4778 else
4779   echo "$as_me: failed program was:" >&5
4780 sed 's/^/| /' conftest.$ac_ext >&5
4781
4782         ac_cv_type_int=no
4783 fi
4784
4785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4786 fi
4787 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4788 echo "${ECHO_T}$ac_cv_type_int" >&6; }
4789
4790 # The cast to long int works around a bug in the HP C Compiler
4791 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4792 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4793 # This bug is HP SR number 8606223364.
4794 { echo "$as_me:$LINENO: checking size of int" >&5
4795 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
4796 if test "${ac_cv_sizeof_int+set}" = set; then
4797   echo $ECHO_N "(cached) $ECHO_C" >&6
4798 else
4799   if test "$cross_compiling" = yes; then
4800   # Depending upon the size, compute the lo and hi bounds.
4801 cat >conftest.$ac_ext <<_ACEOF
4802 /* confdefs.h.  */
4803 _ACEOF
4804 cat confdefs.h >>conftest.$ac_ext
4805 cat >>conftest.$ac_ext <<_ACEOF
4806 /* end confdefs.h.  */
4807 $ac_includes_default
4808    typedef int ac__type_sizeof_;
4809 int
4810 main ()
4811 {
4812 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4813 test_array [0] = 0
4814
4815   ;
4816   return 0;
4817 }
4818 _ACEOF
4819 rm -f conftest.$ac_objext
4820 if { (ac_try="$ac_compile"
4821 case "(($ac_try" in
4822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4823   *) ac_try_echo=$ac_try;;
4824 esac
4825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4826   (eval "$ac_compile") 2>conftest.er1
4827   ac_status=$?
4828   grep -v '^ *+' conftest.er1 >conftest.err
4829   rm -f conftest.er1
4830   cat conftest.err >&5
4831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832   (exit $ac_status); } && {
4833          test -z "$ac_cxx_werror_flag" ||
4834          test ! -s conftest.err
4835        } && test -s conftest.$ac_objext; then
4836   ac_lo=0 ac_mid=0
4837   while :; do
4838     cat >conftest.$ac_ext <<_ACEOF
4839 /* confdefs.h.  */
4840 _ACEOF
4841 cat confdefs.h >>conftest.$ac_ext
4842 cat >>conftest.$ac_ext <<_ACEOF
4843 /* end confdefs.h.  */
4844 $ac_includes_default
4845    typedef int ac__type_sizeof_;
4846 int
4847 main ()
4848 {
4849 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4850 test_array [0] = 0
4851
4852   ;
4853   return 0;
4854 }
4855 _ACEOF
4856 rm -f conftest.$ac_objext
4857 if { (ac_try="$ac_compile"
4858 case "(($ac_try" in
4859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4860   *) ac_try_echo=$ac_try;;
4861 esac
4862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4863   (eval "$ac_compile") 2>conftest.er1
4864   ac_status=$?
4865   grep -v '^ *+' conftest.er1 >conftest.err
4866   rm -f conftest.er1
4867   cat conftest.err >&5
4868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869   (exit $ac_status); } && {
4870          test -z "$ac_cxx_werror_flag" ||
4871          test ! -s conftest.err
4872        } && test -s conftest.$ac_objext; then
4873   ac_hi=$ac_mid; break
4874 else
4875   echo "$as_me: failed program was:" >&5
4876 sed 's/^/| /' conftest.$ac_ext >&5
4877
4878         ac_lo=`expr $ac_mid + 1`
4879                         if test $ac_lo -le $ac_mid; then
4880                           ac_lo= ac_hi=
4881                           break
4882                         fi
4883                         ac_mid=`expr 2 '*' $ac_mid + 1`
4884 fi
4885
4886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4887   done
4888 else
4889   echo "$as_me: failed program was:" >&5
4890 sed 's/^/| /' conftest.$ac_ext >&5
4891
4892         cat >conftest.$ac_ext <<_ACEOF
4893 /* confdefs.h.  */
4894 _ACEOF
4895 cat confdefs.h >>conftest.$ac_ext
4896 cat >>conftest.$ac_ext <<_ACEOF
4897 /* end confdefs.h.  */
4898 $ac_includes_default
4899    typedef int ac__type_sizeof_;
4900 int
4901 main ()
4902 {
4903 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4904 test_array [0] = 0
4905
4906   ;
4907   return 0;
4908 }
4909 _ACEOF
4910 rm -f conftest.$ac_objext
4911 if { (ac_try="$ac_compile"
4912 case "(($ac_try" in
4913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4914   *) ac_try_echo=$ac_try;;
4915 esac
4916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4917   (eval "$ac_compile") 2>conftest.er1
4918   ac_status=$?
4919   grep -v '^ *+' conftest.er1 >conftest.err
4920   rm -f conftest.er1
4921   cat conftest.err >&5
4922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923   (exit $ac_status); } && {
4924          test -z "$ac_cxx_werror_flag" ||
4925          test ! -s conftest.err
4926        } && test -s conftest.$ac_objext; then
4927   ac_hi=-1 ac_mid=-1
4928   while :; do
4929     cat >conftest.$ac_ext <<_ACEOF
4930 /* confdefs.h.  */
4931 _ACEOF
4932 cat confdefs.h >>conftest.$ac_ext
4933 cat >>conftest.$ac_ext <<_ACEOF
4934 /* end confdefs.h.  */
4935 $ac_includes_default
4936    typedef int ac__type_sizeof_;
4937 int
4938 main ()
4939 {
4940 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4941 test_array [0] = 0
4942
4943   ;
4944   return 0;
4945 }
4946 _ACEOF
4947 rm -f conftest.$ac_objext
4948 if { (ac_try="$ac_compile"
4949 case "(($ac_try" in
4950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4951   *) ac_try_echo=$ac_try;;
4952 esac
4953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4954   (eval "$ac_compile") 2>conftest.er1
4955   ac_status=$?
4956   grep -v '^ *+' conftest.er1 >conftest.err
4957   rm -f conftest.er1
4958   cat conftest.err >&5
4959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960   (exit $ac_status); } && {
4961          test -z "$ac_cxx_werror_flag" ||
4962          test ! -s conftest.err
4963        } && test -s conftest.$ac_objext; then
4964   ac_lo=$ac_mid; break
4965 else
4966   echo "$as_me: failed program was:" >&5
4967 sed 's/^/| /' conftest.$ac_ext >&5
4968
4969         ac_hi=`expr '(' $ac_mid ')' - 1`
4970                         if test $ac_mid -le $ac_hi; then
4971                           ac_lo= ac_hi=
4972                           break
4973                         fi
4974                         ac_mid=`expr 2 '*' $ac_mid`
4975 fi
4976
4977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4978   done
4979 else
4980   echo "$as_me: failed program was:" >&5
4981 sed 's/^/| /' conftest.$ac_ext >&5
4982
4983         ac_lo= ac_hi=
4984 fi
4985
4986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4987 fi
4988
4989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4990 # Binary search between lo and hi bounds.
4991 while test "x$ac_lo" != "x$ac_hi"; do
4992   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4993   cat >conftest.$ac_ext <<_ACEOF
4994 /* confdefs.h.  */
4995 _ACEOF
4996 cat confdefs.h >>conftest.$ac_ext
4997 cat >>conftest.$ac_ext <<_ACEOF
4998 /* end confdefs.h.  */
4999 $ac_includes_default
5000    typedef int ac__type_sizeof_;
5001 int
5002 main ()
5003 {
5004 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5005 test_array [0] = 0
5006
5007   ;
5008   return 0;
5009 }
5010 _ACEOF
5011 rm -f conftest.$ac_objext
5012 if { (ac_try="$ac_compile"
5013 case "(($ac_try" in
5014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5015   *) ac_try_echo=$ac_try;;
5016 esac
5017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5018   (eval "$ac_compile") 2>conftest.er1
5019   ac_status=$?
5020   grep -v '^ *+' conftest.er1 >conftest.err
5021   rm -f conftest.er1
5022   cat conftest.err >&5
5023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024   (exit $ac_status); } && {
5025          test -z "$ac_cxx_werror_flag" ||
5026          test ! -s conftest.err
5027        } && test -s conftest.$ac_objext; then
5028   ac_hi=$ac_mid
5029 else
5030   echo "$as_me: failed program was:" >&5
5031 sed 's/^/| /' conftest.$ac_ext >&5
5032
5033         ac_lo=`expr '(' $ac_mid ')' + 1`
5034 fi
5035
5036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5037 done
5038 case $ac_lo in
5039 ?*) ac_cv_sizeof_int=$ac_lo;;
5040 '') if test "$ac_cv_type_int" = yes; then
5041      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5042 See \`config.log' for more details." >&5
5043 echo "$as_me: error: cannot compute sizeof (int)
5044 See \`config.log' for more details." >&2;}
5045    { (exit 77); exit 77; }; }
5046    else
5047      ac_cv_sizeof_int=0
5048    fi ;;
5049 esac
5050 else
5051   cat >conftest.$ac_ext <<_ACEOF
5052 /* confdefs.h.  */
5053 _ACEOF
5054 cat confdefs.h >>conftest.$ac_ext
5055 cat >>conftest.$ac_ext <<_ACEOF
5056 /* end confdefs.h.  */
5057 $ac_includes_default
5058    typedef int ac__type_sizeof_;
5059 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5060 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5061 #include <stdio.h>
5062 #include <stdlib.h>
5063 int
5064 main ()
5065 {
5066
5067   FILE *f = fopen ("conftest.val", "w");
5068   if (! f)
5069     return 1;
5070   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5071     {
5072       long int i = longval ();
5073       if (i != ((long int) (sizeof (ac__type_sizeof_))))
5074         return 1;
5075       fprintf (f, "%ld\n", i);
5076     }
5077   else
5078     {
5079       unsigned long int i = ulongval ();
5080       if (i != ((long int) (sizeof (ac__type_sizeof_))))
5081         return 1;
5082       fprintf (f, "%lu\n", i);
5083     }
5084   return ferror (f) || fclose (f) != 0;
5085
5086   ;
5087   return 0;
5088 }
5089 _ACEOF
5090 rm -f conftest$ac_exeext
5091 if { (ac_try="$ac_link"
5092 case "(($ac_try" in
5093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5094   *) ac_try_echo=$ac_try;;
5095 esac
5096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5097   (eval "$ac_link") 2>&5
5098   ac_status=$?
5099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5101   { (case "(($ac_try" in
5102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5103   *) ac_try_echo=$ac_try;;
5104 esac
5105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5106   (eval "$ac_try") 2>&5
5107   ac_status=$?
5108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109   (exit $ac_status); }; }; then
5110   ac_cv_sizeof_int=`cat conftest.val`
5111 else
5112   echo "$as_me: program exited with status $ac_status" >&5
5113 echo "$as_me: failed program was:" >&5
5114 sed 's/^/| /' conftest.$ac_ext >&5
5115
5116 ( exit $ac_status )
5117 if test "$ac_cv_type_int" = yes; then
5118      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5119 See \`config.log' for more details." >&5
5120 echo "$as_me: error: cannot compute sizeof (int)
5121 See \`config.log' for more details." >&2;}
5122    { (exit 77); exit 77; }; }
5123    else
5124      ac_cv_sizeof_int=0
5125    fi
5126 fi
5127 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5128 fi
5129 rm -f conftest.val
5130 fi
5131 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5132 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
5133
5134
5135
5136 cat >>confdefs.h <<_ACEOF
5137 #define SIZEOF_INT $ac_cv_sizeof_int
5138 _ACEOF
5139
5140
5141    { echo "$as_me:$LINENO: checking for short" >&5
5142 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
5143 if test "${ac_cv_type_short+set}" = set; then
5144   echo $ECHO_N "(cached) $ECHO_C" >&6
5145 else
5146   cat >conftest.$ac_ext <<_ACEOF
5147 /* confdefs.h.  */
5148 _ACEOF
5149 cat confdefs.h >>conftest.$ac_ext
5150 cat >>conftest.$ac_ext <<_ACEOF
5151 /* end confdefs.h.  */
5152 $ac_includes_default
5153 typedef short ac__type_new_;
5154 int
5155 main ()
5156 {
5157 if ((ac__type_new_ *) 0)
5158   return 0;
5159 if (sizeof (ac__type_new_))
5160   return 0;
5161   ;
5162   return 0;
5163 }
5164 _ACEOF
5165 rm -f conftest.$ac_objext
5166 if { (ac_try="$ac_compile"
5167 case "(($ac_try" in
5168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5169   *) ac_try_echo=$ac_try;;
5170 esac
5171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5172   (eval "$ac_compile") 2>conftest.er1
5173   ac_status=$?
5174   grep -v '^ *+' conftest.er1 >conftest.err
5175   rm -f conftest.er1
5176   cat conftest.err >&5
5177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178   (exit $ac_status); } && {
5179          test -z "$ac_cxx_werror_flag" ||
5180          test ! -s conftest.err
5181        } && test -s conftest.$ac_objext; then
5182   ac_cv_type_short=yes
5183 else
5184   echo "$as_me: failed program was:" >&5
5185 sed 's/^/| /' conftest.$ac_ext >&5
5186
5187         ac_cv_type_short=no
5188 fi
5189
5190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5191 fi
5192 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5193 echo "${ECHO_T}$ac_cv_type_short" >&6; }
5194
5195 # The cast to long int works around a bug in the HP C Compiler
5196 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5197 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5198 # This bug is HP SR number 8606223364.
5199 { echo "$as_me:$LINENO: checking size of short" >&5
5200 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
5201 if test "${ac_cv_sizeof_short+set}" = set; then
5202   echo $ECHO_N "(cached) $ECHO_C" >&6
5203 else
5204   if test "$cross_compiling" = yes; then
5205   # Depending upon the size, compute the lo and hi bounds.
5206 cat >conftest.$ac_ext <<_ACEOF
5207 /* confdefs.h.  */
5208 _ACEOF
5209 cat confdefs.h >>conftest.$ac_ext
5210 cat >>conftest.$ac_ext <<_ACEOF
5211 /* end confdefs.h.  */
5212 $ac_includes_default
5213    typedef short ac__type_sizeof_;
5214 int
5215 main ()
5216 {
5217 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5218 test_array [0] = 0
5219
5220   ;
5221   return 0;
5222 }
5223 _ACEOF
5224 rm -f conftest.$ac_objext
5225 if { (ac_try="$ac_compile"
5226 case "(($ac_try" in
5227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5228   *) ac_try_echo=$ac_try;;
5229 esac
5230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5231   (eval "$ac_compile") 2>conftest.er1
5232   ac_status=$?
5233   grep -v '^ *+' conftest.er1 >conftest.err
5234   rm -f conftest.er1
5235   cat conftest.err >&5
5236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237   (exit $ac_status); } && {
5238          test -z "$ac_cxx_werror_flag" ||
5239          test ! -s conftest.err
5240        } && test -s conftest.$ac_objext; then
5241   ac_lo=0 ac_mid=0
5242   while :; do
5243     cat >conftest.$ac_ext <<_ACEOF
5244 /* confdefs.h.  */
5245 _ACEOF
5246 cat confdefs.h >>conftest.$ac_ext
5247 cat >>conftest.$ac_ext <<_ACEOF
5248 /* end confdefs.h.  */
5249 $ac_includes_default
5250    typedef short ac__type_sizeof_;
5251 int
5252 main ()
5253 {
5254 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5255 test_array [0] = 0
5256
5257   ;
5258   return 0;
5259 }
5260 _ACEOF
5261 rm -f conftest.$ac_objext
5262 if { (ac_try="$ac_compile"
5263 case "(($ac_try" in
5264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5265   *) ac_try_echo=$ac_try;;
5266 esac
5267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5268   (eval "$ac_compile") 2>conftest.er1
5269   ac_status=$?
5270   grep -v '^ *+' conftest.er1 >conftest.err
5271   rm -f conftest.er1
5272   cat conftest.err >&5
5273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274   (exit $ac_status); } && {
5275          test -z "$ac_cxx_werror_flag" ||
5276          test ! -s conftest.err
5277        } && test -s conftest.$ac_objext; then
5278   ac_hi=$ac_mid; break
5279 else
5280   echo "$as_me: failed program was:" >&5
5281 sed 's/^/| /' conftest.$ac_ext >&5
5282
5283         ac_lo=`expr $ac_mid + 1`
5284                         if test $ac_lo -le $ac_mid; then
5285                           ac_lo= ac_hi=
5286                           break
5287                         fi
5288                         ac_mid=`expr 2 '*' $ac_mid + 1`
5289 fi
5290
5291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5292   done
5293 else
5294   echo "$as_me: failed program was:" >&5
5295 sed 's/^/| /' conftest.$ac_ext >&5
5296
5297         cat >conftest.$ac_ext <<_ACEOF
5298 /* confdefs.h.  */
5299 _ACEOF
5300 cat confdefs.h >>conftest.$ac_ext
5301 cat >>conftest.$ac_ext <<_ACEOF
5302 /* end confdefs.h.  */
5303 $ac_includes_default
5304    typedef short ac__type_sizeof_;
5305 int
5306 main ()
5307 {
5308 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5309 test_array [0] = 0
5310
5311   ;
5312   return 0;
5313 }
5314 _ACEOF
5315 rm -f conftest.$ac_objext
5316 if { (ac_try="$ac_compile"
5317 case "(($ac_try" in
5318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5319   *) ac_try_echo=$ac_try;;
5320 esac
5321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5322   (eval "$ac_compile") 2>conftest.er1
5323   ac_status=$?
5324   grep -v '^ *+' conftest.er1 >conftest.err
5325   rm -f conftest.er1
5326   cat conftest.err >&5
5327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328   (exit $ac_status); } && {
5329          test -z "$ac_cxx_werror_flag" ||
5330          test ! -s conftest.err
5331        } && test -s conftest.$ac_objext; then
5332   ac_hi=-1 ac_mid=-1
5333   while :; do
5334     cat >conftest.$ac_ext <<_ACEOF
5335 /* confdefs.h.  */
5336 _ACEOF
5337 cat confdefs.h >>conftest.$ac_ext
5338 cat >>conftest.$ac_ext <<_ACEOF
5339 /* end confdefs.h.  */
5340 $ac_includes_default
5341    typedef short ac__type_sizeof_;
5342 int
5343 main ()
5344 {
5345 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5346 test_array [0] = 0
5347
5348   ;
5349   return 0;
5350 }
5351 _ACEOF
5352 rm -f conftest.$ac_objext
5353 if { (ac_try="$ac_compile"
5354 case "(($ac_try" in
5355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5356   *) ac_try_echo=$ac_try;;
5357 esac
5358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5359   (eval "$ac_compile") 2>conftest.er1
5360   ac_status=$?
5361   grep -v '^ *+' conftest.er1 >conftest.err
5362   rm -f conftest.er1
5363   cat conftest.err >&5
5364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365   (exit $ac_status); } && {
5366          test -z "$ac_cxx_werror_flag" ||
5367          test ! -s conftest.err
5368        } && test -s conftest.$ac_objext; then
5369   ac_lo=$ac_mid; break
5370 else
5371   echo "$as_me: failed program was:" >&5
5372 sed 's/^/| /' conftest.$ac_ext >&5
5373
5374         ac_hi=`expr '(' $ac_mid ')' - 1`
5375                         if test $ac_mid -le $ac_hi; then
5376                           ac_lo= ac_hi=
5377                           break
5378                         fi
5379                         ac_mid=`expr 2 '*' $ac_mid`
5380 fi
5381
5382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5383   done
5384 else
5385   echo "$as_me: failed program was:" >&5
5386 sed 's/^/| /' conftest.$ac_ext >&5
5387
5388         ac_lo= ac_hi=
5389 fi
5390
5391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5392 fi
5393
5394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5395 # Binary search between lo and hi bounds.
5396 while test "x$ac_lo" != "x$ac_hi"; do
5397   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5398   cat >conftest.$ac_ext <<_ACEOF
5399 /* confdefs.h.  */
5400 _ACEOF
5401 cat confdefs.h >>conftest.$ac_ext
5402 cat >>conftest.$ac_ext <<_ACEOF
5403 /* end confdefs.h.  */
5404 $ac_includes_default
5405    typedef short ac__type_sizeof_;
5406 int
5407 main ()
5408 {
5409 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5410 test_array [0] = 0
5411
5412   ;
5413   return 0;
5414 }
5415 _ACEOF
5416 rm -f conftest.$ac_objext
5417 if { (ac_try="$ac_compile"
5418 case "(($ac_try" in
5419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5420   *) ac_try_echo=$ac_try;;
5421 esac
5422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5423   (eval "$ac_compile") 2>conftest.er1
5424   ac_status=$?
5425   grep -v '^ *+' conftest.er1 >conftest.err
5426   rm -f conftest.er1
5427   cat conftest.err >&5
5428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429   (exit $ac_status); } && {
5430          test -z "$ac_cxx_werror_flag" ||
5431          test ! -s conftest.err
5432        } && test -s conftest.$ac_objext; then
5433   ac_hi=$ac_mid
5434 else
5435   echo "$as_me: failed program was:" >&5
5436 sed 's/^/| /' conftest.$ac_ext >&5
5437
5438         ac_lo=`expr '(' $ac_mid ')' + 1`
5439 fi
5440
5441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5442 done
5443 case $ac_lo in
5444 ?*) ac_cv_sizeof_short=$ac_lo;;
5445 '') if test "$ac_cv_type_short" = yes; then
5446      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5447 See \`config.log' for more details." >&5
5448 echo "$as_me: error: cannot compute sizeof (short)
5449 See \`config.log' for more details." >&2;}
5450    { (exit 77); exit 77; }; }
5451    else
5452      ac_cv_sizeof_short=0
5453    fi ;;
5454 esac
5455 else
5456   cat >conftest.$ac_ext <<_ACEOF
5457 /* confdefs.h.  */
5458 _ACEOF
5459 cat confdefs.h >>conftest.$ac_ext
5460 cat >>conftest.$ac_ext <<_ACEOF
5461 /* end confdefs.h.  */
5462 $ac_includes_default
5463    typedef short ac__type_sizeof_;
5464 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5465 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5466 #include <stdio.h>
5467 #include <stdlib.h>
5468 int
5469 main ()
5470 {
5471
5472   FILE *f = fopen ("conftest.val", "w");
5473   if (! f)
5474     return 1;
5475   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5476     {
5477       long int i = longval ();
5478       if (i != ((long int) (sizeof (ac__type_sizeof_))))
5479         return 1;
5480       fprintf (f, "%ld\n", i);
5481     }
5482   else
5483     {
5484       unsigned long int i = ulongval ();
5485       if (i != ((long int) (sizeof (ac__type_sizeof_))))
5486         return 1;
5487       fprintf (f, "%lu\n", i);
5488     }
5489   return ferror (f) || fclose (f) != 0;
5490
5491   ;
5492   return 0;
5493 }
5494 _ACEOF
5495 rm -f conftest$ac_exeext
5496 if { (ac_try="$ac_link"
5497 case "(($ac_try" in
5498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5499   *) ac_try_echo=$ac_try;;
5500 esac
5501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5502   (eval "$ac_link") 2>&5
5503   ac_status=$?
5504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5506   { (case "(($ac_try" in
5507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5508   *) ac_try_echo=$ac_try;;
5509 esac
5510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5511   (eval "$ac_try") 2>&5
5512   ac_status=$?
5513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514   (exit $ac_status); }; }; then
5515   ac_cv_sizeof_short=`cat conftest.val`
5516 else
5517   echo "$as_me: program exited with status $ac_status" >&5
5518 echo "$as_me: failed program was:" >&5
5519 sed 's/^/| /' conftest.$ac_ext >&5
5520
5521 ( exit $ac_status )
5522 if test "$ac_cv_type_short" = yes; then
5523      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5524 See \`config.log' for more details." >&5
5525 echo "$as_me: error: cannot compute sizeof (short)
5526 See \`config.log' for more details." >&2;}
5527    { (exit 77); exit 77; }; }
5528    else
5529      ac_cv_sizeof_short=0
5530    fi
5531 fi
5532 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5533 fi
5534 rm -f conftest.val
5535 fi
5536 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5537 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
5538
5539
5540
5541 cat >>confdefs.h <<_ACEOF
5542 #define SIZEOF_SHORT $ac_cv_sizeof_short
5543 _ACEOF
5544
5545
5546    { echo "$as_me:$LINENO: checking for long" >&5
5547 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
5548 if test "${ac_cv_type_long+set}" = set; then
5549   echo $ECHO_N "(cached) $ECHO_C" >&6
5550 else
5551   cat >conftest.$ac_ext <<_ACEOF
5552 /* confdefs.h.  */
5553 _ACEOF
5554 cat confdefs.h >>conftest.$ac_ext
5555 cat >>conftest.$ac_ext <<_ACEOF
5556 /* end confdefs.h.  */
5557 $ac_includes_default
5558 typedef long ac__type_new_;
5559 int
5560 main ()
5561 {
5562 if ((ac__type_new_ *) 0)
5563   return 0;
5564 if (sizeof (ac__type_new_))
5565   return 0;
5566   ;
5567   return 0;
5568 }
5569 _ACEOF
5570 rm -f conftest.$ac_objext
5571 if { (ac_try="$ac_compile"
5572 case "(($ac_try" in
5573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5574   *) ac_try_echo=$ac_try;;
5575 esac
5576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5577   (eval "$ac_compile") 2>conftest.er1
5578   ac_status=$?
5579   grep -v '^ *+' conftest.er1 >conftest.err
5580   rm -f conftest.er1
5581   cat conftest.err >&5
5582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583   (exit $ac_status); } && {
5584          test -z "$ac_cxx_werror_flag" ||
5585          test ! -s conftest.err
5586        } && test -s conftest.$ac_objext; then
5587   ac_cv_type_long=yes
5588 else
5589   echo "$as_me: failed program was:" >&5
5590 sed 's/^/| /' conftest.$ac_ext >&5
5591
5592         ac_cv_type_long=no
5593 fi
5594
5595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5596 fi
5597 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5598 echo "${ECHO_T}$ac_cv_type_long" >&6; }
5599
5600 # The cast to long int works around a bug in the HP C Compiler
5601 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5602 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5603 # This bug is HP SR number 8606223364.
5604 { echo "$as_me:$LINENO: checking size of long" >&5
5605 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
5606 if test "${ac_cv_sizeof_long+set}" = set; then
5607   echo $ECHO_N "(cached) $ECHO_C" >&6
5608 else
5609   if test "$cross_compiling" = yes; then
5610   # Depending upon the size, compute the lo and hi bounds.
5611 cat >conftest.$ac_ext <<_ACEOF
5612 /* confdefs.h.  */
5613 _ACEOF
5614 cat confdefs.h >>conftest.$ac_ext
5615 cat >>conftest.$ac_ext <<_ACEOF
5616 /* end confdefs.h.  */
5617 $ac_includes_default
5618    typedef long ac__type_sizeof_;
5619 int
5620 main ()
5621 {
5622 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5623 test_array [0] = 0
5624
5625   ;
5626   return 0;
5627 }
5628 _ACEOF
5629 rm -f conftest.$ac_objext
5630 if { (ac_try="$ac_compile"
5631 case "(($ac_try" in
5632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5633   *) ac_try_echo=$ac_try;;
5634 esac
5635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5636   (eval "$ac_compile") 2>conftest.er1
5637   ac_status=$?
5638   grep -v '^ *+' conftest.er1 >conftest.err
5639   rm -f conftest.er1
5640   cat conftest.err >&5
5641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642   (exit $ac_status); } && {
5643          test -z "$ac_cxx_werror_flag" ||
5644          test ! -s conftest.err
5645        } && test -s conftest.$ac_objext; then
5646   ac_lo=0 ac_mid=0
5647   while :; do
5648     cat >conftest.$ac_ext <<_ACEOF
5649 /* confdefs.h.  */
5650 _ACEOF
5651 cat confdefs.h >>conftest.$ac_ext
5652 cat >>conftest.$ac_ext <<_ACEOF
5653 /* end confdefs.h.  */
5654 $ac_includes_default
5655    typedef long ac__type_sizeof_;
5656 int
5657 main ()
5658 {
5659 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5660 test_array [0] = 0
5661
5662   ;
5663   return 0;
5664 }
5665 _ACEOF
5666 rm -f conftest.$ac_objext
5667 if { (ac_try="$ac_compile"
5668 case "(($ac_try" in
5669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5670   *) ac_try_echo=$ac_try;;
5671 esac
5672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5673   (eval "$ac_compile") 2>conftest.er1
5674   ac_status=$?
5675   grep -v '^ *+' conftest.er1 >conftest.err
5676   rm -f conftest.er1
5677   cat conftest.err >&5
5678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679   (exit $ac_status); } && {
5680          test -z "$ac_cxx_werror_flag" ||
5681          test ! -s conftest.err
5682        } && test -s conftest.$ac_objext; then
5683   ac_hi=$ac_mid; break
5684 else
5685   echo "$as_me: failed program was:" >&5
5686 sed 's/^/| /' conftest.$ac_ext >&5
5687
5688         ac_lo=`expr $ac_mid + 1`
5689                         if test $ac_lo -le $ac_mid; then
5690                           ac_lo= ac_hi=
5691                           break
5692                         fi
5693                         ac_mid=`expr 2 '*' $ac_mid + 1`
5694 fi
5695
5696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5697   done
5698 else
5699   echo "$as_me: failed program was:" >&5
5700 sed 's/^/| /' conftest.$ac_ext >&5
5701
5702         cat >conftest.$ac_ext <<_ACEOF
5703 /* confdefs.h.  */
5704 _ACEOF
5705 cat confdefs.h >>conftest.$ac_ext
5706 cat >>conftest.$ac_ext <<_ACEOF
5707 /* end confdefs.h.  */
5708 $ac_includes_default
5709    typedef long ac__type_sizeof_;
5710 int
5711 main ()
5712 {
5713 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5714 test_array [0] = 0
5715
5716   ;
5717   return 0;
5718 }
5719 _ACEOF
5720 rm -f conftest.$ac_objext
5721 if { (ac_try="$ac_compile"
5722 case "(($ac_try" in
5723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5724   *) ac_try_echo=$ac_try;;
5725 esac
5726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5727   (eval "$ac_compile") 2>conftest.er1
5728   ac_status=$?
5729   grep -v '^ *+' conftest.er1 >conftest.err
5730   rm -f conftest.er1
5731   cat conftest.err >&5
5732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733   (exit $ac_status); } && {
5734          test -z "$ac_cxx_werror_flag" ||
5735          test ! -s conftest.err
5736        } && test -s conftest.$ac_objext; then
5737   ac_hi=-1 ac_mid=-1
5738   while :; do
5739     cat >conftest.$ac_ext <<_ACEOF
5740 /* confdefs.h.  */
5741 _ACEOF
5742 cat confdefs.h >>conftest.$ac_ext
5743 cat >>conftest.$ac_ext <<_ACEOF
5744 /* end confdefs.h.  */
5745 $ac_includes_default
5746    typedef long ac__type_sizeof_;
5747 int
5748 main ()
5749 {
5750 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5751 test_array [0] = 0
5752
5753   ;
5754   return 0;
5755 }
5756 _ACEOF
5757 rm -f conftest.$ac_objext
5758 if { (ac_try="$ac_compile"
5759 case "(($ac_try" in
5760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5761   *) ac_try_echo=$ac_try;;
5762 esac
5763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5764   (eval "$ac_compile") 2>conftest.er1
5765   ac_status=$?
5766   grep -v '^ *+' conftest.er1 >conftest.err
5767   rm -f conftest.er1
5768   cat conftest.err >&5
5769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770   (exit $ac_status); } && {
5771          test -z "$ac_cxx_werror_flag" ||
5772          test ! -s conftest.err
5773        } && test -s conftest.$ac_objext; then
5774   ac_lo=$ac_mid; break
5775 else
5776   echo "$as_me: failed program was:" >&5
5777 sed 's/^/| /' conftest.$ac_ext >&5
5778
5779         ac_hi=`expr '(' $ac_mid ')' - 1`
5780                         if test $ac_mid -le $ac_hi; then
5781                           ac_lo= ac_hi=
5782                           break
5783                         fi
5784                         ac_mid=`expr 2 '*' $ac_mid`
5785 fi
5786
5787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5788   done
5789 else
5790   echo "$as_me: failed program was:" >&5
5791 sed 's/^/| /' conftest.$ac_ext >&5
5792
5793         ac_lo= ac_hi=
5794 fi
5795
5796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5797 fi
5798
5799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5800 # Binary search between lo and hi bounds.
5801 while test "x$ac_lo" != "x$ac_hi"; do
5802   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5803   cat >conftest.$ac_ext <<_ACEOF
5804 /* confdefs.h.  */
5805 _ACEOF
5806 cat confdefs.h >>conftest.$ac_ext
5807 cat >>conftest.$ac_ext <<_ACEOF
5808 /* end confdefs.h.  */
5809 $ac_includes_default
5810    typedef long ac__type_sizeof_;
5811 int
5812 main ()
5813 {
5814 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5815 test_array [0] = 0
5816
5817   ;
5818   return 0;
5819 }
5820 _ACEOF
5821 rm -f conftest.$ac_objext
5822 if { (ac_try="$ac_compile"
5823 case "(($ac_try" in
5824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5825   *) ac_try_echo=$ac_try;;
5826 esac
5827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5828   (eval "$ac_compile") 2>conftest.er1
5829   ac_status=$?
5830   grep -v '^ *+' conftest.er1 >conftest.err
5831   rm -f conftest.er1
5832   cat conftest.err >&5
5833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834   (exit $ac_status); } && {
5835          test -z "$ac_cxx_werror_flag" ||
5836          test ! -s conftest.err
5837        } && test -s conftest.$ac_objext; then
5838   ac_hi=$ac_mid
5839 else
5840   echo "$as_me: failed program was:" >&5
5841 sed 's/^/| /' conftest.$ac_ext >&5
5842
5843         ac_lo=`expr '(' $ac_mid ')' + 1`
5844 fi
5845
5846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5847 done
5848 case $ac_lo in
5849 ?*) ac_cv_sizeof_long=$ac_lo;;
5850 '') if test "$ac_cv_type_long" = yes; then
5851      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5852 See \`config.log' for more details." >&5
5853 echo "$as_me: error: cannot compute sizeof (long)
5854 See \`config.log' for more details." >&2;}
5855    { (exit 77); exit 77; }; }
5856    else
5857      ac_cv_sizeof_long=0
5858    fi ;;
5859 esac
5860 else
5861   cat >conftest.$ac_ext <<_ACEOF
5862 /* confdefs.h.  */
5863 _ACEOF
5864 cat confdefs.h >>conftest.$ac_ext
5865 cat >>conftest.$ac_ext <<_ACEOF
5866 /* end confdefs.h.  */
5867 $ac_includes_default
5868    typedef long ac__type_sizeof_;
5869 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5870 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5871 #include <stdio.h>
5872 #include <stdlib.h>
5873 int
5874 main ()
5875 {
5876
5877   FILE *f = fopen ("conftest.val", "w");
5878   if (! f)
5879     return 1;
5880   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5881     {
5882       long int i = longval ();
5883       if (i != ((long int) (sizeof (ac__type_sizeof_))))
5884         return 1;
5885       fprintf (f, "%ld\n", i);
5886     }
5887   else
5888     {
5889       unsigned long int i = ulongval ();
5890       if (i != ((long int) (sizeof (ac__type_sizeof_))))
5891         return 1;
5892       fprintf (f, "%lu\n", i);
5893     }
5894   return ferror (f) || fclose (f) != 0;
5895
5896   ;
5897   return 0;
5898 }
5899 _ACEOF
5900 rm -f conftest$ac_exeext
5901 if { (ac_try="$ac_link"
5902 case "(($ac_try" in
5903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5904   *) ac_try_echo=$ac_try;;
5905 esac
5906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5907   (eval "$ac_link") 2>&5
5908   ac_status=$?
5909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5911   { (case "(($ac_try" in
5912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5913   *) ac_try_echo=$ac_try;;
5914 esac
5915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5916   (eval "$ac_try") 2>&5
5917   ac_status=$?
5918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919   (exit $ac_status); }; }; then
5920   ac_cv_sizeof_long=`cat conftest.val`
5921 else
5922   echo "$as_me: program exited with status $ac_status" >&5
5923 echo "$as_me: failed program was:" >&5
5924 sed 's/^/| /' conftest.$ac_ext >&5
5925
5926 ( exit $ac_status )
5927 if test "$ac_cv_type_long" = yes; then
5928      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5929 See \`config.log' for more details." >&5
5930 echo "$as_me: error: cannot compute sizeof (long)
5931 See \`config.log' for more details." >&2;}
5932    { (exit 77); exit 77; }; }
5933    else
5934      ac_cv_sizeof_long=0
5935    fi
5936 fi
5937 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5938 fi
5939 rm -f conftest.val
5940 fi
5941 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5942 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
5943
5944
5945
5946 cat >>confdefs.h <<_ACEOF
5947 #define SIZEOF_LONG $ac_cv_sizeof_long
5948 _ACEOF
5949
5950
5951
5952    HAVE_C9X=
5953
5954 fi
5955
5956 # Extract the first word of "debiandoc2html", so it can be a program name with args.
5957 set dummy debiandoc2html; ac_word=$2
5958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5960 if test "${ac_cv_prog_DEBIANDOC_HTML+set}" = set; then
5961   echo $ECHO_N "(cached) $ECHO_C" >&6
5962 else
5963   if test -n "$DEBIANDOC_HTML"; then
5964   ac_cv_prog_DEBIANDOC_HTML="$DEBIANDOC_HTML" # Let the user override the test.
5965 else
5966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967 for as_dir in $PATH
5968 do
5969   IFS=$as_save_IFS
5970   test -z "$as_dir" && as_dir=.
5971   for ac_exec_ext in '' $ac_executable_extensions; do
5972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5973     ac_cv_prog_DEBIANDOC_HTML=""yes""
5974     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5975     break 2
5976   fi
5977 done
5978 done
5979 IFS=$as_save_IFS
5980
5981   test -z "$ac_cv_prog_DEBIANDOC_HTML" && ac_cv_prog_DEBIANDOC_HTML=""""
5982 fi
5983 fi
5984 DEBIANDOC_HTML=$ac_cv_prog_DEBIANDOC_HTML
5985 if test -n "$DEBIANDOC_HTML"; then
5986   { echo "$as_me:$LINENO: result: $DEBIANDOC_HTML" >&5
5987 echo "${ECHO_T}$DEBIANDOC_HTML" >&6; }
5988 else
5989   { echo "$as_me:$LINENO: result: no" >&5
5990 echo "${ECHO_T}no" >&6; }
5991 fi
5992
5993
5994 # Extract the first word of "debiandoc2text", so it can be a program name with args.
5995 set dummy debiandoc2text; ac_word=$2
5996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5998 if test "${ac_cv_prog_DEBIANDOC_TEXT+set}" = set; then
5999   echo $ECHO_N "(cached) $ECHO_C" >&6
6000 else
6001   if test -n "$DEBIANDOC_TEXT"; then
6002   ac_cv_prog_DEBIANDOC_TEXT="$DEBIANDOC_TEXT" # Let the user override the test.
6003 else
6004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005 for as_dir in $PATH
6006 do
6007   IFS=$as_save_IFS
6008   test -z "$as_dir" && as_dir=.
6009   for ac_exec_ext in '' $ac_executable_extensions; do
6010   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6011     ac_cv_prog_DEBIANDOC_TEXT=""yes""
6012     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6013     break 2
6014   fi
6015 done
6016 done
6017 IFS=$as_save_IFS
6018
6019   test -z "$ac_cv_prog_DEBIANDOC_TEXT" && ac_cv_prog_DEBIANDOC_TEXT=""""
6020 fi
6021 fi
6022 DEBIANDOC_TEXT=$ac_cv_prog_DEBIANDOC_TEXT
6023 if test -n "$DEBIANDOC_TEXT"; then
6024   { echo "$as_me:$LINENO: result: $DEBIANDOC_TEXT" >&5
6025 echo "${ECHO_T}$DEBIANDOC_TEXT" >&6; }
6026 else
6027   { echo "$as_me:$LINENO: result: no" >&5
6028 echo "${ECHO_T}no" >&6; }
6029 fi
6030
6031
6032
6033 # Extract the first word of "yodl2man", so it can be a program name with args.
6034 set dummy yodl2man; ac_word=$2
6035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6037 if test "${ac_cv_prog_YODL_MAN+set}" = set; then
6038   echo $ECHO_N "(cached) $ECHO_C" >&6
6039 else
6040   if test -n "$YODL_MAN"; then
6041   ac_cv_prog_YODL_MAN="$YODL_MAN" # Let the user override the test.
6042 else
6043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6044 for as_dir in $PATH
6045 do
6046   IFS=$as_save_IFS
6047   test -z "$as_dir" && as_dir=.
6048   for ac_exec_ext in '' $ac_executable_extensions; do
6049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6050     ac_cv_prog_YODL_MAN=""yes""
6051     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6052     break 2
6053   fi
6054 done
6055 done
6056 IFS=$as_save_IFS
6057
6058   test -z "$ac_cv_prog_YODL_MAN" && ac_cv_prog_YODL_MAN=""""
6059 fi
6060 fi
6061 YODL_MAN=$ac_cv_prog_YODL_MAN
6062 if test -n "$YODL_MAN"; then
6063   { echo "$as_me:$LINENO: result: $YODL_MAN" >&5
6064 echo "${ECHO_T}$YODL_MAN" >&6; }
6065 else
6066   { echo "$as_me:$LINENO: result: no" >&5
6067 echo "${ECHO_T}no" >&6; }
6068 fi
6069
6070
6071
6072 ac_config_files="$ac_config_files environment.mak:buildlib/environment.mak.in makefile:buildlib/makefile.in"
6073
6074 ac_config_commands="$ac_config_commands default"
6075
6076 cat >confcache <<\_ACEOF
6077 # This file is a shell script that caches the results of configure
6078 # tests run on this system so they can be shared between configure
6079 # scripts and configure runs, see configure's option --config-cache.
6080 # It is not useful on other systems.  If it contains results you don't
6081 # want to keep, you may remove or edit it.
6082 #
6083 # config.status only pays attention to the cache file if you give it
6084 # the --recheck option to rerun configure.
6085 #
6086 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6087 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6088 # following values.
6089
6090 _ACEOF
6091
6092 # The following way of writing the cache mishandles newlines in values,
6093 # but we know of no workaround that is simple, portable, and efficient.
6094 # So, we kill variables containing newlines.
6095 # Ultrix sh set writes to stderr and can't be redirected directly,
6096 # and sets the high bit in the cache file unless we assign to the vars.
6097 (
6098   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6099     eval ac_val=\$$ac_var
6100     case $ac_val in #(
6101     *${as_nl}*)
6102       case $ac_var in #(
6103       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
6104 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
6105       esac
6106       case $ac_var in #(
6107       _ | IFS | as_nl) ;; #(
6108       *) $as_unset $ac_var ;;
6109       esac ;;
6110     esac
6111   done
6112
6113   (set) 2>&1 |
6114     case $as_nl`(ac_space=' '; set) 2>&1` in #(
6115     *${as_nl}ac_space=\ *)
6116       # `set' does not quote correctly, so add quotes (double-quote
6117       # substitution turns \\\\ into \\, and sed turns \\ into \).
6118       sed -n \
6119         "s/'/'\\\\''/g;
6120           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6121       ;; #(
6122     *)
6123       # `set' quotes correctly as required by POSIX, so do not add quotes.
6124       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6125       ;;
6126     esac |
6127     sort
6128 ) |
6129   sed '
6130      /^ac_cv_env_/b end
6131      t clear
6132      :clear
6133      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6134      t end
6135      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6136      :end' >>confcache
6137 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6138   if test -w "$cache_file"; then
6139     test "x$cache_file" != "x/dev/null" &&
6140       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
6141 echo "$as_me: updating cache $cache_file" >&6;}
6142     cat confcache >$cache_file
6143   else
6144     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
6145 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6146   fi
6147 fi
6148 rm -f confcache
6149
6150 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6151 # Let make expand exec_prefix.
6152 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6153
6154 DEFS=-DHAVE_CONFIG_H
6155
6156 ac_libobjs=
6157 ac_ltlibobjs=
6158 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6159   # 1. Remove the extension, and $U if already installed.
6160   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6161   ac_i=`echo "$ac_i" | sed "$ac_script"`
6162   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
6163   #    will be set to the directory where LIBOBJS objects are built.
6164   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6165   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
6166 done
6167 LIBOBJS=$ac_libobjs
6168
6169 LTLIBOBJS=$ac_ltlibobjs
6170
6171
6172
6173 : ${CONFIG_STATUS=./config.status}
6174 ac_clean_files_save=$ac_clean_files
6175 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6176 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6177 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6178 cat >$CONFIG_STATUS <<_ACEOF
6179 #! $SHELL
6180 # Generated by $as_me.
6181 # Run this file to recreate the current configuration.
6182 # Compiler output produced by configure, useful for debugging
6183 # configure, is in config.log if it exists.
6184
6185 debug=false
6186 ac_cs_recheck=false
6187 ac_cs_silent=false
6188 SHELL=\${CONFIG_SHELL-$SHELL}
6189 _ACEOF
6190
6191 cat >>$CONFIG_STATUS <<\_ACEOF
6192 ## --------------------- ##
6193 ## M4sh Initialization.  ##
6194 ## --------------------- ##
6195
6196 # Be more Bourne compatible
6197 DUALCASE=1; export DUALCASE # for MKS sh
6198 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6199   emulate sh
6200   NULLCMD=:
6201   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6202   # is contrary to our usage.  Disable this feature.
6203   alias -g '${1+"$@"}'='"$@"'
6204   setopt NO_GLOB_SUBST
6205 else
6206   case `(set -o) 2>/dev/null` in
6207   *posix*) set -o posix ;;
6208 esac
6209
6210 fi
6211
6212
6213
6214
6215 # PATH needs CR
6216 # Avoid depending upon Character Ranges.
6217 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6218 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6219 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6220 as_cr_digits='0123456789'
6221 as_cr_alnum=$as_cr_Letters$as_cr_digits
6222
6223 # The user is always right.
6224 if test "${PATH_SEPARATOR+set}" != set; then
6225   echo "#! /bin/sh" >conf$$.sh
6226   echo  "exit 0"   >>conf$$.sh
6227   chmod +x conf$$.sh
6228   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6229     PATH_SEPARATOR=';'
6230   else
6231     PATH_SEPARATOR=:
6232   fi
6233   rm -f conf$$.sh
6234 fi
6235
6236 # Support unset when possible.
6237 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6238   as_unset=unset
6239 else
6240   as_unset=false
6241 fi
6242
6243
6244 # IFS
6245 # We need space, tab and new line, in precisely that order.  Quoting is
6246 # there to prevent editors from complaining about space-tab.
6247 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6248 # splitting by setting IFS to empty value.)
6249 as_nl='
6250 '
6251 IFS=" ""        $as_nl"
6252
6253 # Find who we are.  Look in the path if we contain no directory separator.
6254 case $0 in
6255   *[\\/]* ) as_myself=$0 ;;
6256   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257 for as_dir in $PATH
6258 do
6259   IFS=$as_save_IFS
6260   test -z "$as_dir" && as_dir=.
6261   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6262 done
6263 IFS=$as_save_IFS
6264
6265      ;;
6266 esac
6267 # We did not find ourselves, most probably we were run as `sh COMMAND'
6268 # in which case we are not to be found in the path.
6269 if test "x$as_myself" = x; then
6270   as_myself=$0
6271 fi
6272 if test ! -f "$as_myself"; then
6273   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6274   { (exit 1); exit 1; }
6275 fi
6276
6277 # Work around bugs in pre-3.0 UWIN ksh.
6278 for as_var in ENV MAIL MAILPATH
6279 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6280 done
6281 PS1='$ '
6282 PS2='> '
6283 PS4='+ '
6284
6285 # NLS nuisances.
6286 for as_var in \
6287   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6288   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6289   LC_TELEPHONE LC_TIME
6290 do
6291   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6292     eval $as_var=C; export $as_var
6293   else
6294     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6295   fi
6296 done
6297
6298 # Required to use basename.
6299 if expr a : '\(a\)' >/dev/null 2>&1 &&
6300    test "X`expr 00001 : '.*\(...\)'`" = X001; then
6301   as_expr=expr
6302 else
6303   as_expr=false
6304 fi
6305
6306 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6307   as_basename=basename
6308 else
6309   as_basename=false
6310 fi
6311
6312
6313 # Name of the executable.
6314 as_me=`$as_basename -- "$0" ||
6315 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6316          X"$0" : 'X\(//\)$' \| \
6317          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6318 echo X/"$0" |
6319     sed '/^.*\/\([^/][^/]*\)\/*$/{
6320             s//\1/
6321             q
6322           }
6323           /^X\/\(\/\/\)$/{
6324             s//\1/
6325             q
6326           }
6327           /^X\/\(\/\).*/{
6328             s//\1/
6329             q
6330           }
6331           s/.*/./; q'`
6332
6333 # CDPATH.
6334 $as_unset CDPATH
6335
6336
6337
6338   as_lineno_1=$LINENO
6339   as_lineno_2=$LINENO
6340   test "x$as_lineno_1" != "x$as_lineno_2" &&
6341   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
6342
6343   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6344   # uniformly replaced by the line number.  The first 'sed' inserts a
6345   # line-number line after each line using $LINENO; the second 'sed'
6346   # does the real work.  The second script uses 'N' to pair each
6347   # line-number line with the line containing $LINENO, and appends
6348   # trailing '-' during substitution so that $LINENO is not a special
6349   # case at line end.
6350   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6351   # scripts with optimization help from Paolo Bonzini.  Blame Lee
6352   # E. McMahon (1931-1989) for sed's syntax.  :-)
6353   sed -n '
6354     p
6355     /[$]LINENO/=
6356   ' <$as_myself |
6357     sed '
6358       s/[$]LINENO.*/&-/
6359       t lineno
6360       b
6361       :lineno
6362       N
6363       :loop
6364       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
6365       t loop
6366       s/-\n.*//
6367     ' >$as_me.lineno &&
6368   chmod +x "$as_me.lineno" ||
6369     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
6370    { (exit 1); exit 1; }; }
6371
6372   # Don't try to exec as it changes $[0], causing all sort of problems
6373   # (the dirname of $[0] is not the place where we might find the
6374   # original and so on.  Autoconf is especially sensitive to this).
6375   . "./$as_me.lineno"
6376   # Exit status is that of the last command.
6377   exit
6378 }
6379
6380
6381 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6382   as_dirname=dirname
6383 else
6384   as_dirname=false
6385 fi
6386
6387 ECHO_C= ECHO_N= ECHO_T=
6388 case `echo -n x` in
6389 -n*)
6390   case `echo 'x\c'` in
6391   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
6392   *)   ECHO_C='\c';;
6393   esac;;
6394 *)
6395   ECHO_N='-n';;
6396 esac
6397
6398 if expr a : '\(a\)' >/dev/null 2>&1 &&
6399    test "X`expr 00001 : '.*\(...\)'`" = X001; then
6400   as_expr=expr
6401 else
6402   as_expr=false
6403 fi
6404
6405 rm -f conf$$ conf$$.exe conf$$.file
6406 if test -d conf$$.dir; then
6407   rm -f conf$$.dir/conf$$.file
6408 else
6409   rm -f conf$$.dir
6410   mkdir conf$$.dir
6411 fi
6412 echo >conf$$.file
6413 if ln -s conf$$.file conf$$ 2>/dev/null; then
6414   as_ln_s='ln -s'
6415   # ... but there are two gotchas:
6416   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6417   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6418   # In both cases, we have to default to `cp -p'.
6419   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6420     as_ln_s='cp -p'
6421 elif ln conf$$.file conf$$ 2>/dev/null; then
6422   as_ln_s=ln
6423 else
6424   as_ln_s='cp -p'
6425 fi
6426 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6427 rmdir conf$$.dir 2>/dev/null
6428
6429 if mkdir -p . 2>/dev/null; then
6430   as_mkdir_p=:
6431 else
6432   test -d ./-p && rmdir ./-p
6433   as_mkdir_p=false
6434 fi
6435
6436 if test -x / >/dev/null 2>&1; then
6437   as_test_x='test -x'
6438 else
6439   if ls -dL / >/dev/null 2>&1; then
6440     as_ls_L_option=L
6441   else
6442     as_ls_L_option=
6443   fi
6444   as_test_x='
6445     eval sh -c '\''
6446       if test -d "$1"; then
6447         test -d "$1/.";
6448       else
6449         case $1 in
6450         -*)set "./$1";;
6451         esac;
6452         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
6453         ???[sx]*):;;*)false;;esac;fi
6454     '\'' sh
6455   '
6456 fi
6457 as_executable_p=$as_test_x
6458
6459 # Sed expression to map a string onto a valid CPP name.
6460 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6461
6462 # Sed expression to map a string onto a valid variable name.
6463 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6464
6465
6466 exec 6>&1
6467
6468 # Save the log message, to keep $[0] and so on meaningful, and to
6469 # report actual input values of CONFIG_FILES etc. instead of their
6470 # values after options handling.
6471 ac_log="
6472 This file was extended by $as_me, which was
6473 generated by GNU Autoconf 2.61.  Invocation command line was
6474
6475   CONFIG_FILES    = $CONFIG_FILES
6476   CONFIG_HEADERS  = $CONFIG_HEADERS
6477   CONFIG_LINKS    = $CONFIG_LINKS
6478   CONFIG_COMMANDS = $CONFIG_COMMANDS
6479   $ $0 $@
6480
6481 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6482 "
6483
6484 _ACEOF
6485
6486 cat >>$CONFIG_STATUS <<_ACEOF
6487 # Files that config.status was made for.
6488 config_files="$ac_config_files"
6489 config_headers="$ac_config_headers"
6490 config_commands="$ac_config_commands"
6491
6492 _ACEOF
6493
6494 cat >>$CONFIG_STATUS <<\_ACEOF
6495 ac_cs_usage="\
6496 \`$as_me' instantiates files from templates according to the
6497 current configuration.
6498
6499 Usage: $0 [OPTIONS] [FILE]...
6500
6501   -h, --help       print this help, then exit
6502   -V, --version    print version number and configuration settings, then exit
6503   -q, --quiet      do not print progress messages
6504   -d, --debug      don't remove temporary files
6505       --recheck    update $as_me by reconfiguring in the same conditions
6506   --file=FILE[:TEMPLATE]
6507                    instantiate the configuration file FILE
6508   --header=FILE[:TEMPLATE]
6509                    instantiate the configuration header FILE
6510
6511 Configuration files:
6512 $config_files
6513
6514 Configuration headers:
6515 $config_headers
6516
6517 Configuration commands:
6518 $config_commands
6519
6520 Report bugs to <bug-autoconf@gnu.org>."
6521
6522 _ACEOF
6523 cat >>$CONFIG_STATUS <<_ACEOF
6524 ac_cs_version="\\
6525 config.status
6526 configured by $0, generated by GNU Autoconf 2.61,
6527   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6528
6529 Copyright (C) 2006 Free Software Foundation, Inc.
6530 This config.status script is free software; the Free Software Foundation
6531 gives unlimited permission to copy, distribute and modify it."
6532
6533 ac_pwd='$ac_pwd'
6534 srcdir='$srcdir'
6535 _ACEOF
6536
6537 cat >>$CONFIG_STATUS <<\_ACEOF
6538 # If no file are specified by the user, then we need to provide default
6539 # value.  By we need to know if files were specified by the user.
6540 ac_need_defaults=:
6541 while test $# != 0
6542 do
6543   case $1 in
6544   --*=*)
6545     ac_option=`expr "X$1" : 'X\([^=]*\)='`
6546     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6547     ac_shift=:
6548     ;;
6549   *)
6550     ac_option=$1
6551     ac_optarg=$2
6552     ac_shift=shift
6553     ;;
6554   esac
6555
6556   case $ac_option in
6557   # Handling of the options.
6558   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6559     ac_cs_recheck=: ;;
6560   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6561     echo "$ac_cs_version"; exit ;;
6562   --debug | --debu | --deb | --de | --d | -d )
6563     debug=: ;;
6564   --file | --fil | --fi | --f )
6565     $ac_shift
6566     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6567     ac_need_defaults=false;;
6568   --header | --heade | --head | --hea )
6569     $ac_shift
6570     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6571     ac_need_defaults=false;;
6572   --he | --h)
6573     # Conflict between --help and --header
6574     { echo "$as_me: error: ambiguous option: $1
6575 Try \`$0 --help' for more information." >&2
6576    { (exit 1); exit 1; }; };;
6577   --help | --hel | -h )
6578     echo "$ac_cs_usage"; exit ;;
6579   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6580   | -silent | --silent | --silen | --sile | --sil | --si | --s)
6581     ac_cs_silent=: ;;
6582
6583   # This is an error.
6584   -*) { echo "$as_me: error: unrecognized option: $1
6585 Try \`$0 --help' for more information." >&2
6586    { (exit 1); exit 1; }; } ;;
6587
6588   *) ac_config_targets="$ac_config_targets $1"
6589      ac_need_defaults=false ;;
6590
6591   esac
6592   shift
6593 done
6594
6595 ac_configure_extra_args=
6596
6597 if $ac_cs_silent; then
6598   exec 6>/dev/null
6599   ac_configure_extra_args="$ac_configure_extra_args --silent"
6600 fi
6601
6602 _ACEOF
6603 cat >>$CONFIG_STATUS <<_ACEOF
6604 if \$ac_cs_recheck; then
6605   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6606   CONFIG_SHELL=$SHELL
6607   export CONFIG_SHELL
6608   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6609 fi
6610
6611 _ACEOF
6612 cat >>$CONFIG_STATUS <<\_ACEOF
6613 exec 5>>config.log
6614 {
6615   echo
6616   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6617 ## Running $as_me. ##
6618 _ASBOX
6619   echo "$ac_log"
6620 } >&5
6621
6622 _ACEOF
6623 cat >>$CONFIG_STATUS <<_ACEOF
6624 _ACEOF
6625
6626 cat >>$CONFIG_STATUS <<\_ACEOF
6627
6628 # Handling of arguments.
6629 for ac_config_target in $ac_config_targets
6630 do
6631   case $ac_config_target in
6632     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h:buildlib/config.h.in" ;;
6633     "environment.mak") CONFIG_FILES="$CONFIG_FILES environment.mak:buildlib/environment.mak.in" ;;
6634     "makefile") CONFIG_FILES="$CONFIG_FILES makefile:buildlib/makefile.in" ;;
6635     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
6636
6637   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6638 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6639    { (exit 1); exit 1; }; };;
6640   esac
6641 done
6642
6643
6644 # If the user did not use the arguments to specify the items to instantiate,
6645 # then the envvar interface is used.  Set only those that are not.
6646 # We use the long form for the default assignment because of an extremely
6647 # bizarre bug on SunOS 4.1.3.
6648 if $ac_need_defaults; then
6649   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6650   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6651   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6652 fi
6653
6654 # Have a temporary directory for convenience.  Make it in the build tree
6655 # simply because there is no reason against having it here, and in addition,
6656 # creating and moving files from /tmp can sometimes cause problems.
6657 # Hook for its removal unless debugging.
6658 # Note that there is a small window in which the directory will not be cleaned:
6659 # after its creation but before its name has been assigned to `$tmp'.
6660 $debug ||
6661 {
6662   tmp=
6663   trap 'exit_status=$?
6664   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6665 ' 0
6666   trap '{ (exit 1); exit 1; }' 1 2 13 15
6667 }
6668 # Create a (secure) tmp directory for tmp files.
6669
6670 {
6671   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6672   test -n "$tmp" && test -d "$tmp"
6673 }  ||
6674 {
6675   tmp=./conf$$-$RANDOM
6676   (umask 077 && mkdir "$tmp")
6677 } ||
6678 {
6679    echo "$me: cannot create a temporary directory in ." >&2
6680    { (exit 1); exit 1; }
6681 }
6682
6683 #
6684 # Set up the sed scripts for CONFIG_FILES section.
6685 #
6686
6687 # No need to generate the scripts if there are no CONFIG_FILES.
6688 # This happens for instance when ./config.status config.h
6689 if test -n "$CONFIG_FILES"; then
6690
6691 _ACEOF
6692
6693
6694
6695 ac_delim='%!_!# '
6696 for ac_last_try in false false false false false :; do
6697   cat >conf$$subs.sed <<_ACEOF
6698 SHELL!$SHELL$ac_delim
6699 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
6700 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
6701 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
6702 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
6703 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
6704 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
6705 exec_prefix!$exec_prefix$ac_delim
6706 prefix!$prefix$ac_delim
6707 program_transform_name!$program_transform_name$ac_delim
6708 bindir!$bindir$ac_delim
6709 sbindir!$sbindir$ac_delim
6710 libexecdir!$libexecdir$ac_delim
6711 datarootdir!$datarootdir$ac_delim
6712 datadir!$datadir$ac_delim
6713 sysconfdir!$sysconfdir$ac_delim
6714 sharedstatedir!$sharedstatedir$ac_delim
6715 localstatedir!$localstatedir$ac_delim
6716 includedir!$includedir$ac_delim
6717 oldincludedir!$oldincludedir$ac_delim
6718 docdir!$docdir$ac_delim
6719 infodir!$infodir$ac_delim
6720 htmldir!$htmldir$ac_delim
6721 dvidir!$dvidir$ac_delim
6722 pdfdir!$pdfdir$ac_delim
6723 psdir!$psdir$ac_delim
6724 libdir!$libdir$ac_delim
6725 localedir!$localedir$ac_delim
6726 mandir!$mandir$ac_delim
6727 DEFS!$DEFS$ac_delim
6728 ECHO_C!$ECHO_C$ac_delim
6729 ECHO_N!$ECHO_N$ac_delim
6730 ECHO_T!$ECHO_T$ac_delim
6731 LIBS!$LIBS$ac_delim
6732 build_alias!$build_alias$ac_delim
6733 host_alias!$host_alias$ac_delim
6734 target_alias!$target_alias$ac_delim
6735 CC!$CC$ac_delim
6736 CFLAGS!$CFLAGS$ac_delim
6737 LDFLAGS!$LDFLAGS$ac_delim
6738 CPPFLAGS!$CPPFLAGS$ac_delim
6739 ac_ct_CC!$ac_ct_CC$ac_delim
6740 EXEEXT!$EXEEXT$ac_delim
6741 OBJEXT!$OBJEXT$ac_delim
6742 build!$build$ac_delim
6743 build_cpu!$build_cpu$ac_delim
6744 build_vendor!$build_vendor$ac_delim
6745 build_os!$build_os$ac_delim
6746 host!$host$ac_delim
6747 host_cpu!$host_cpu$ac_delim
6748 host_vendor!$host_vendor$ac_delim
6749 host_os!$host_os$ac_delim
6750 CXX!$CXX$ac_delim
6751 CXXFLAGS!$CXXFLAGS$ac_delim
6752 ac_ct_CXX!$ac_ct_CXX$ac_delim
6753 AR!$AR$ac_delim
6754 PTHREADLIB!$PTHREADLIB$ac_delim
6755 CXXCPP!$CXXCPP$ac_delim
6756 GREP!$GREP$ac_delim
6757 EGREP!$EGREP$ac_delim
6758 HAVE_C9X!$HAVE_C9X$ac_delim
6759 DEBIANDOC_HTML!$DEBIANDOC_HTML$ac_delim
6760 DEBIANDOC_TEXT!$DEBIANDOC_TEXT$ac_delim
6761 YODL_MAN!$YODL_MAN$ac_delim
6762 LIBOBJS!$LIBOBJS$ac_delim
6763 LTLIBOBJS!$LTLIBOBJS$ac_delim
6764 _ACEOF
6765
6766   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 66; then
6767     break
6768   elif $ac_last_try; then
6769     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6770 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6771    { (exit 1); exit 1; }; }
6772   else
6773     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6774   fi
6775 done
6776
6777 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
6778 if test -n "$ac_eof"; then
6779   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
6780   ac_eof=`expr $ac_eof + 1`
6781 fi
6782
6783 cat >>$CONFIG_STATUS <<_ACEOF
6784 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
6785 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
6786 _ACEOF
6787 sed '
6788 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
6789 s/^/s,@/; s/!/@,|#_!!_#|/
6790 :n
6791 t n
6792 s/'"$ac_delim"'$/,g/; t
6793 s/$/\\/; p
6794 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
6795 ' >>$CONFIG_STATUS <conf$$subs.sed
6796 rm -f conf$$subs.sed
6797 cat >>$CONFIG_STATUS <<_ACEOF
6798 :end
6799 s/|#_!!_#|//g
6800 CEOF$ac_eof
6801 _ACEOF
6802
6803
6804 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6805 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6806 # trailing colons and then remove the whole line if VPATH becomes empty
6807 # (actually we leave an empty line to preserve line numbers).
6808 if test "x$srcdir" = x.; then
6809   ac_vpsub='/^[  ]*VPATH[        ]*=/{
6810 s/:*\$(srcdir):*/:/
6811 s/:*\${srcdir}:*/:/
6812 s/:*@srcdir@:*/:/
6813 s/^\([^=]*=[     ]*\):*/\1/
6814 s/:*$//
6815 s/^[^=]*=[       ]*$//
6816 }'
6817 fi
6818
6819 cat >>$CONFIG_STATUS <<\_ACEOF
6820 fi # test -n "$CONFIG_FILES"
6821
6822
6823 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
6824 do
6825   case $ac_tag in
6826   :[FHLC]) ac_mode=$ac_tag; continue;;
6827   esac
6828   case $ac_mode$ac_tag in
6829   :[FHL]*:*);;
6830   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
6831 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
6832    { (exit 1); exit 1; }; };;
6833   :[FH]-) ac_tag=-:-;;
6834   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6835   esac
6836   ac_save_IFS=$IFS
6837   IFS=:
6838   set x $ac_tag
6839   IFS=$ac_save_IFS
6840   shift
6841   ac_file=$1
6842   shift
6843
6844   case $ac_mode in
6845   :L) ac_source=$1;;
6846   :[FH])
6847     ac_file_inputs=
6848     for ac_f
6849     do
6850       case $ac_f in
6851       -) ac_f="$tmp/stdin";;
6852       *) # Look for the file first in the build tree, then in the source tree
6853          # (if the path is not absolute).  The absolute path cannot be DOS-style,
6854          # because $ac_f cannot contain `:'.
6855          test -f "$ac_f" ||
6856            case $ac_f in
6857            [\\/$]*) false;;
6858            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6859            esac ||
6860            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
6861 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
6862    { (exit 1); exit 1; }; };;
6863       esac
6864       ac_file_inputs="$ac_file_inputs $ac_f"
6865     done
6866
6867     # Let's still pretend it is `configure' which instantiates (i.e., don't
6868     # use $as_me), people would be surprised to read:
6869     #    /* config.h.  Generated by config.status.  */
6870     configure_input="Generated from "`IFS=:
6871           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
6872     if test x"$ac_file" != x-; then
6873       configure_input="$ac_file.  $configure_input"
6874       { echo "$as_me:$LINENO: creating $ac_file" >&5
6875 echo "$as_me: creating $ac_file" >&6;}
6876     fi
6877
6878     case $ac_tag in
6879     *:-:* | *:-) cat >"$tmp/stdin";;
6880     esac
6881     ;;
6882   esac
6883
6884   ac_dir=`$as_dirname -- "$ac_file" ||
6885 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6886          X"$ac_file" : 'X\(//\)[^/]' \| \
6887          X"$ac_file" : 'X\(//\)$' \| \
6888          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6889 echo X"$ac_file" |
6890     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6891             s//\1/
6892             q
6893           }
6894           /^X\(\/\/\)[^/].*/{
6895             s//\1/
6896             q
6897           }
6898           /^X\(\/\/\)$/{
6899             s//\1/
6900             q
6901           }
6902           /^X\(\/\).*/{
6903             s//\1/
6904             q
6905           }
6906           s/.*/./; q'`
6907   { as_dir="$ac_dir"
6908   case $as_dir in #(
6909   -*) as_dir=./$as_dir;;
6910   esac
6911   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6912     as_dirs=
6913     while :; do
6914       case $as_dir in #(
6915       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
6916       *) as_qdir=$as_dir;;
6917       esac
6918       as_dirs="'$as_qdir' $as_dirs"
6919       as_dir=`$as_dirname -- "$as_dir" ||
6920 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6921          X"$as_dir" : 'X\(//\)[^/]' \| \
6922          X"$as_dir" : 'X\(//\)$' \| \
6923          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6924 echo X"$as_dir" |
6925     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6926             s//\1/
6927             q
6928           }
6929           /^X\(\/\/\)[^/].*/{
6930             s//\1/
6931             q
6932           }
6933           /^X\(\/\/\)$/{
6934             s//\1/
6935             q
6936           }
6937           /^X\(\/\).*/{
6938             s//\1/
6939             q
6940           }
6941           s/.*/./; q'`
6942       test -d "$as_dir" && break
6943     done
6944     test -z "$as_dirs" || eval "mkdir $as_dirs"
6945   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
6946 echo "$as_me: error: cannot create directory $as_dir" >&2;}
6947    { (exit 1); exit 1; }; }; }
6948   ac_builddir=.
6949
6950 case "$ac_dir" in
6951 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6952 *)
6953   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6954   # A ".." for each directory in $ac_dir_suffix.
6955   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
6956   case $ac_top_builddir_sub in
6957   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6958   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6959   esac ;;
6960 esac
6961 ac_abs_top_builddir=$ac_pwd
6962 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6963 # for backward compatibility:
6964 ac_top_builddir=$ac_top_build_prefix
6965
6966 case $srcdir in
6967   .)  # We are building in place.
6968     ac_srcdir=.
6969     ac_top_srcdir=$ac_top_builddir_sub
6970     ac_abs_top_srcdir=$ac_pwd ;;
6971   [\\/]* | ?:[\\/]* )  # Absolute name.
6972     ac_srcdir=$srcdir$ac_dir_suffix;
6973     ac_top_srcdir=$srcdir
6974     ac_abs_top_srcdir=$srcdir ;;
6975   *) # Relative name.
6976     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6977     ac_top_srcdir=$ac_top_build_prefix$srcdir
6978     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6979 esac
6980 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6981
6982
6983   case $ac_mode in
6984   :F)
6985   #
6986   # CONFIG_FILE
6987   #
6988
6989 _ACEOF
6990
6991 cat >>$CONFIG_STATUS <<\_ACEOF
6992 # If the template does not know about datarootdir, expand it.
6993 # FIXME: This hack should be removed a few years after 2.60.
6994 ac_datarootdir_hack=; ac_datarootdir_seen=
6995
6996 case `sed -n '/datarootdir/ {
6997   p
6998   q
6999 }
7000 /@datadir@/p
7001 /@docdir@/p
7002 /@infodir@/p
7003 /@localedir@/p
7004 /@mandir@/p
7005 ' $ac_file_inputs` in
7006 *datarootdir*) ac_datarootdir_seen=yes;;
7007 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7008   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7009 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7010 _ACEOF
7011 cat >>$CONFIG_STATUS <<_ACEOF
7012   ac_datarootdir_hack='
7013   s&@datadir@&$datadir&g
7014   s&@docdir@&$docdir&g
7015   s&@infodir@&$infodir&g
7016   s&@localedir@&$localedir&g
7017   s&@mandir@&$mandir&g
7018     s&\\\${datarootdir}&$datarootdir&g' ;;
7019 esac
7020 _ACEOF
7021
7022 # Neutralize VPATH when `$srcdir' = `.'.
7023 # Shell code in configure.ac might set extrasub.
7024 # FIXME: do we really want to maintain this feature?
7025 cat >>$CONFIG_STATUS <<_ACEOF
7026   sed "$ac_vpsub
7027 $extrasub
7028 _ACEOF
7029 cat >>$CONFIG_STATUS <<\_ACEOF
7030 :t
7031 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7032 s&@configure_input@&$configure_input&;t t
7033 s&@top_builddir@&$ac_top_builddir_sub&;t t
7034 s&@srcdir@&$ac_srcdir&;t t
7035 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7036 s&@top_srcdir@&$ac_top_srcdir&;t t
7037 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7038 s&@builddir@&$ac_builddir&;t t
7039 s&@abs_builddir@&$ac_abs_builddir&;t t
7040 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7041 $ac_datarootdir_hack
7042 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
7043
7044 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7045   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7046   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7047   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7048 which seems to be undefined.  Please make sure it is defined." >&5
7049 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7050 which seems to be undefined.  Please make sure it is defined." >&2;}
7051
7052   rm -f "$tmp/stdin"
7053   case $ac_file in
7054   -) cat "$tmp/out"; rm -f "$tmp/out";;
7055   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
7056   esac
7057  ;;
7058   :H)
7059   #
7060   # CONFIG_HEADER
7061   #
7062 _ACEOF
7063
7064 # Transform confdefs.h into a sed script `conftest.defines', that
7065 # substitutes the proper values into config.h.in to produce config.h.
7066 rm -f conftest.defines conftest.tail
7067 # First, append a space to every undef/define line, to ease matching.
7068 echo 's/$/ /' >conftest.defines
7069 # Then, protect against being on the right side of a sed subst, or in
7070 # an unquoted here document, in config.status.  If some macros were
7071 # called several times there might be several #defines for the same
7072 # symbol, which is useless.  But do not sort them, since the last
7073 # AC_DEFINE must be honored.
7074 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7075 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
7076 # NAME is the cpp macro being defined, VALUE is the value it is being given.
7077 # PARAMS is the parameter list in the macro definition--in most cases, it's
7078 # just an empty string.
7079 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
7080 ac_dB='\\)[      (].*,\\1define\\2'
7081 ac_dC=' '
7082 ac_dD=' ,'
7083
7084 uniq confdefs.h |
7085   sed -n '
7086         t rset
7087         :rset
7088         s/^[     ]*#[    ]*define[       ][      ]*//
7089         t ok
7090         d
7091         :ok
7092         s/[\\&,]/\\&/g
7093         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
7094         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
7095   ' >>conftest.defines
7096
7097 # Remove the space that was appended to ease matching.
7098 # Then replace #undef with comments.  This is necessary, for
7099 # example, in the case of _POSIX_SOURCE, which is predefined and required
7100 # on some systems where configure will not decide to define it.
7101 # (The regexp can be short, since the line contains either #define or #undef.)
7102 echo 's/ $//
7103 s,^[     #]*u.*,/* & */,' >>conftest.defines
7104
7105 # Break up conftest.defines:
7106 ac_max_sed_lines=50
7107
7108 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
7109 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
7110 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
7111 # et cetera.
7112 ac_in='$ac_file_inputs'
7113 ac_out='"$tmp/out1"'
7114 ac_nxt='"$tmp/out2"'
7115
7116 while :
7117 do
7118   # Write a here document:
7119     cat >>$CONFIG_STATUS <<_ACEOF
7120     # First, check the format of the line:
7121     cat >"\$tmp/defines.sed" <<\\CEOF
7122 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
7123 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
7124 b
7125 :def
7126 _ACEOF
7127   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
7128   echo 'CEOF
7129     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
7130   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
7131   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
7132   grep . conftest.tail >/dev/null || break
7133   rm -f conftest.defines
7134   mv conftest.tail conftest.defines
7135 done
7136 rm -f conftest.defines conftest.tail
7137
7138 echo "ac_result=$ac_in" >>$CONFIG_STATUS
7139 cat >>$CONFIG_STATUS <<\_ACEOF
7140   if test x"$ac_file" != x-; then
7141     echo "/* $configure_input  */" >"$tmp/config.h"
7142     cat "$ac_result" >>"$tmp/config.h"
7143     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
7144       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7145 echo "$as_me: $ac_file is unchanged" >&6;}
7146     else
7147       rm -f $ac_file
7148       mv "$tmp/config.h" $ac_file
7149     fi
7150   else
7151     echo "/* $configure_input  */"
7152     cat "$ac_result"
7153   fi
7154   rm -f "$tmp/out12"
7155  ;;
7156
7157   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
7158 echo "$as_me: executing $ac_file commands" >&6;}
7159  ;;
7160   esac
7161
7162
7163   case $ac_file$ac_mode in
7164     "default":C) make dirs ;;
7165
7166   esac
7167 done # for ac_tag
7168
7169
7170 { (exit 0); exit 0; }
7171 _ACEOF
7172 chmod +x $CONFIG_STATUS
7173 ac_clean_files=$ac_clean_files_save
7174
7175
7176 # configure is writing to config.log, and then calls config.status.
7177 # config.status does its own redirection, appending to config.log.
7178 # Unfortunately, on DOS this fails, as config.log is still kept open
7179 # by configure, so config.status won't be able to write to it; its
7180 # output is simply discarded.  So we exec the FD to /dev/null,
7181 # effectively closing config.log, so it can be properly (re)opened and
7182 # appended to by config.status.  When coming back to configure, we
7183 # need to make the FD available again.
7184 if test "$no_create" != yes; then
7185   ac_cs_success=:
7186   ac_config_status_args=
7187   test "$silent" = yes &&
7188     ac_config_status_args="$ac_config_status_args --quiet"
7189   exec 5>/dev/null
7190   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7191   exec 5>>config.log
7192   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7193   # would make configure fail if this is the last instruction.
7194   $ac_cs_success || { (exit 1); exit 1; }
7195 fi
7196