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