Prepare for 2.9.13
[nbd.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for nbd 2.9.13.
4 #
5 # Report bugs to <wouter@debian.org>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85   as_unset=unset
86 else
87   as_unset=false
88 fi
89
90
91 # IFS
92 # We need space, tab and new line, in precisely that order.  Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" ""        $as_nl"
97
98 # Find who we are.  Look in the path if we contain no directory separator.
99 case $0 in
100   *[\\/]* ) as_myself=$0 ;;
101   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
103 do
104   IFS=$as_save_IFS
105   test -z "$as_dir" && as_dir=.
106   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
109
110      ;;
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115   as_myself=$0
116 fi
117 if test ! -f "$as_myself"; then
118   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119   { (exit 1); exit 1; }
120 fi
121
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138    test "X`expr 00001 : '.*\(...\)'`" = X001; then
139   as_expr=expr
140 else
141   as_expr=false
142 fi
143
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145   as_basename=basename
146 else
147   as_basename=false
148 fi
149
150
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154          X"$0" : 'X\(//\)$' \| \
155          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157     sed '/^.*\/\([^/][^/]*\)\/*$/{
158             s//\1/
159             q
160           }
161           /^X\/\(\/\/\)$/{
162             s//\1/
163             q
164           }
165           /^X\/\(\/\).*/{
166             s//\1/
167             q
168           }
169           s/.*/./; q'`
170
171 # CDPATH.
172 $as_unset CDPATH
173
174
175 if test "x$CONFIG_SHELL" = x; then
176   if (eval ":") 2>/dev/null; then
177   as_have_required=yes
178 else
179   as_have_required=no
180 fi
181
182   if test $as_have_required = yes &&     (eval ":
183 (as_func_return () {
184   (exit \$1)
185 }
186 as_func_success () {
187   as_func_return 0
188 }
189 as_func_failure () {
190   as_func_return 1
191 }
192 as_func_ret_success () {
193   return 0
194 }
195 as_func_ret_failure () {
196   return 1
197 }
198
199 exitcode=0
200 if as_func_success; then
201   :
202 else
203   exitcode=1
204   echo as_func_success failed.
205 fi
206
207 if as_func_failure; then
208   exitcode=1
209   echo as_func_failure succeeded.
210 fi
211
212 if as_func_ret_success; then
213   :
214 else
215   exitcode=1
216   echo as_func_ret_success failed.
217 fi
218
219 if as_func_ret_failure; then
220   exitcode=1
221   echo as_func_ret_failure succeeded.
222 fi
223
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225   :
226 else
227   exitcode=1
228   echo positional parameters were not saved.
229 fi
230
231 test \$exitcode = 0) || { (exit 1); exit 1; }
232
233 (
234   as_lineno_1=\$LINENO
235   as_lineno_2=\$LINENO
236   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
239   :
240 else
241   as_candidate_shells=
242     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 do
245   IFS=$as_save_IFS
246   test -z "$as_dir" && as_dir=.
247   case $as_dir in
248          /*)
249            for as_base in sh bash ksh sh5; do
250              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251            done;;
252        esac
253 done
254 IFS=$as_save_IFS
255
256
257       for as_shell in $as_candidate_shells $SHELL; do
258          # Try only shells that exist, to save several forks.
259          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260                 { ("$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   # Pre-4.2 versions of Zsh do 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 _ASEOF
278 }; then
279   CONFIG_SHELL=$as_shell
280                as_have_required=yes
281                if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283   emulate sh
284   NULLCMD=:
285   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286   # is contrary to our usage.  Disable this feature.
287   alias -g '${1+"$@"}'='"$@"'
288   setopt NO_GLOB_SUBST
289 else
290   case `(set -o) 2>/dev/null` in
291   *posix*) set -o posix ;;
292 esac
293
294 fi
295
296
297 :
298 (as_func_return () {
299   (exit $1)
300 }
301 as_func_success () {
302   as_func_return 0
303 }
304 as_func_failure () {
305   as_func_return 1
306 }
307 as_func_ret_success () {
308   return 0
309 }
310 as_func_ret_failure () {
311   return 1
312 }
313
314 exitcode=0
315 if as_func_success; then
316   :
317 else
318   exitcode=1
319   echo as_func_success failed.
320 fi
321
322 if as_func_failure; then
323   exitcode=1
324   echo as_func_failure succeeded.
325 fi
326
327 if as_func_ret_success; then
328   :
329 else
330   exitcode=1
331   echo as_func_ret_success failed.
332 fi
333
334 if as_func_ret_failure; then
335   exitcode=1
336   echo as_func_ret_failure succeeded.
337 fi
338
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
340   :
341 else
342   exitcode=1
343   echo positional parameters were not saved.
344 fi
345
346 test $exitcode = 0) || { (exit 1); exit 1; }
347
348 (
349   as_lineno_1=$LINENO
350   as_lineno_2=$LINENO
351   test "x$as_lineno_1" != "x$as_lineno_2" &&
352   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354 _ASEOF
355 }; then
356   break
357 fi
358
359 fi
360
361       done
362
363       if test "x$CONFIG_SHELL" != x; then
364   for as_var in BASH_ENV ENV
365         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366         done
367         export CONFIG_SHELL
368         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369 fi
370
371
372     if test $as_have_required = no; then
373   echo This script requires a shell more modern than all the
374       echo shells that I found on your system.  Please install a
375       echo modern shell, or manually run the script under such a
376       echo shell if you do have one.
377       { (exit 1); exit 1; }
378 fi
379
380
381 fi
382
383 fi
384
385
386
387 (eval "as_func_return () {
388   (exit \$1)
389 }
390 as_func_success () {
391   as_func_return 0
392 }
393 as_func_failure () {
394   as_func_return 1
395 }
396 as_func_ret_success () {
397   return 0
398 }
399 as_func_ret_failure () {
400   return 1
401 }
402
403 exitcode=0
404 if as_func_success; then
405   :
406 else
407   exitcode=1
408   echo as_func_success failed.
409 fi
410
411 if as_func_failure; then
412   exitcode=1
413   echo as_func_failure succeeded.
414 fi
415
416 if as_func_ret_success; then
417   :
418 else
419   exitcode=1
420   echo as_func_ret_success failed.
421 fi
422
423 if as_func_ret_failure; then
424   exitcode=1
425   echo as_func_ret_failure succeeded.
426 fi
427
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429   :
430 else
431   exitcode=1
432   echo positional parameters were not saved.
433 fi
434
435 test \$exitcode = 0") || {
436   echo No shell found that supports shell functions.
437   echo Please tell bug-autoconf@gnu.org about your system,
438   echo including any error possibly output before this message.
439   echo This can help us improve future autoconf versions.
440   echo Configuration will now proceed without shell functions.
441 }
442
443
444
445   as_lineno_1=$LINENO
446   as_lineno_2=$LINENO
447   test "x$as_lineno_1" != "x$as_lineno_2" &&
448   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451   # uniformly replaced by the line number.  The first 'sed' inserts a
452   # line-number line after each line using $LINENO; the second 'sed'
453   # does the real work.  The second script uses 'N' to pair each
454   # line-number line with the line containing $LINENO, and appends
455   # trailing '-' during substitution so that $LINENO is not a special
456   # case at line end.
457   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458   # scripts with optimization help from Paolo Bonzini.  Blame Lee
459   # E. McMahon (1931-1989) for sed's syntax.  :-)
460   sed -n '
461     p
462     /[$]LINENO/=
463   ' <$as_myself |
464     sed '
465       s/[$]LINENO.*/&-/
466       t lineno
467       b
468       :lineno
469       N
470       :loop
471       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472       t loop
473       s/-\n.*//
474     ' >$as_me.lineno &&
475   chmod +x "$as_me.lineno" ||
476     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477    { (exit 1); exit 1; }; }
478
479   # Don't try to exec as it changes $[0], causing all sort of problems
480   # (the dirname of $[0] is not the place where we might find the
481   # original and so on.  Autoconf is especially sensitive to this).
482   . "./$as_me.lineno"
483   # Exit status is that of the last command.
484   exit
485 }
486
487
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489   as_dirname=dirname
490 else
491   as_dirname=false
492 fi
493
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497   case `echo 'x\c'` in
498   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
499   *)   ECHO_C='\c';;
500   esac;;
501 *)
502   ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505    test "X`expr 00001 : '.*\(...\)'`" = X001; then
506   as_expr=expr
507 else
508   as_expr=false
509 fi
510
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513   rm -f conf$$.dir/conf$$.file
514 else
515   rm -f conf$$.dir
516   mkdir conf$$.dir 2>/dev/null
517 fi
518 if (echo >conf$$.file) 2>/dev/null; then
519   if ln -s conf$$.file conf$$ 2>/dev/null; then
520     as_ln_s='ln -s'
521     # ... but there are two gotchas:
522     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524     # In both cases, we have to default to `cp -p'.
525     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526       as_ln_s='cp -p'
527   elif ln conf$$.file conf$$ 2>/dev/null; then
528     as_ln_s=ln
529   else
530     as_ln_s='cp -p'
531   fi
532 else
533   as_ln_s='cp -p'
534 fi
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
537
538 if mkdir -p . 2>/dev/null; then
539   as_mkdir_p=:
540 else
541   test -d ./-p && rmdir ./-p
542   as_mkdir_p=false
543 fi
544
545 if test -x / >/dev/null 2>&1; then
546   as_test_x='test -x'
547 else
548   if ls -dL / >/dev/null 2>&1; then
549     as_ls_L_option=L
550   else
551     as_ls_L_option=
552   fi
553   as_test_x='
554     eval sh -c '\''
555       if test -d "$1"; then
556         test -d "$1/.";
557       else
558         case $1 in
559         -*)set "./$1";;
560         esac;
561         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562         ???[sx]*):;;*)false;;esac;fi
563     '\'' sh
564   '
565 fi
566 as_executable_p=$as_test_x
567
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576 exec 7<&0 </dev/null 6>&1
577
578 # Name of the host.
579 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
580 # so uname gets run too.
581 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582
583 #
584 # Initializations.
585 #
586 ac_default_prefix=/usr/local
587 ac_clean_files=
588 ac_config_libobj_dir=.
589 LIBOBJS=
590 cross_compiling=no
591 subdirs=
592 MFLAGS=
593 MAKEFLAGS=
594 SHELL=${CONFIG_SHELL-/bin/sh}
595
596 # Identity of this package.
597 PACKAGE_NAME='nbd'
598 PACKAGE_TARNAME='nbd'
599 PACKAGE_VERSION='2.9.13'
600 PACKAGE_STRING='nbd 2.9.13'
601 PACKAGE_BUGREPORT='wouter@debian.org'
602
603 # Factoring default headers for most tests.
604 ac_includes_default="\
605 #include <stdio.h>
606 #ifdef HAVE_SYS_TYPES_H
607 # include <sys/types.h>
608 #endif
609 #ifdef HAVE_SYS_STAT_H
610 # include <sys/stat.h>
611 #endif
612 #ifdef STDC_HEADERS
613 # include <stdlib.h>
614 # include <stddef.h>
615 #else
616 # ifdef HAVE_STDLIB_H
617 #  include <stdlib.h>
618 # endif
619 #endif
620 #ifdef HAVE_STRING_H
621 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #  include <memory.h>
623 # endif
624 # include <string.h>
625 #endif
626 #ifdef HAVE_STRINGS_H
627 # include <strings.h>
628 #endif
629 #ifdef HAVE_INTTYPES_H
630 # include <inttypes.h>
631 #endif
632 #ifdef HAVE_STDINT_H
633 # include <stdint.h>
634 #endif
635 #ifdef HAVE_UNISTD_H
636 # include <unistd.h>
637 #endif"
638
639 ac_subst_vars='LTLIBOBJS
640 LIBOBJS
641 nbd_server_CPPFLAGS
642 sbin_PROGRAMS
643 GLIB_MKENUMS
644 GOBJECT_QUERY
645 GLIB_GENMARSHAL
646 GLIB_LIBS
647 GLIB_CFLAGS
648 PKG_CONFIG
649 EGREP
650 GREP
651 host_os
652 host_vendor
653 host_cpu
654 host
655 build_os
656 build_vendor
657 build_cpu
658 build
659 CPP
660 am__fastdepCC_FALSE
661 am__fastdepCC_TRUE
662 CCDEPMODE
663 AMDEPBACKSLASH
664 AMDEP_FALSE
665 AMDEP_TRUE
666 am__quote
667 am__include
668 DEPDIR
669 OBJEXT
670 EXEEXT
671 ac_ct_CC
672 CPPFLAGS
673 LDFLAGS
674 CFLAGS
675 CC
676 MAINT
677 MAINTAINER_MODE_FALSE
678 MAINTAINER_MODE_TRUE
679 am__untar
680 am__tar
681 AMTAR
682 am__leading_dot
683 SET_MAKE
684 AWK
685 mkdir_p
686 MKDIR_P
687 INSTALL_STRIP_PROGRAM
688 STRIP
689 install_sh
690 MAKEINFO
691 AUTOHEADER
692 AUTOMAKE
693 AUTOCONF
694 ACLOCAL
695 VERSION
696 PACKAGE
697 CYGPATH_W
698 am__isrc
699 INSTALL_DATA
700 INSTALL_SCRIPT
701 INSTALL_PROGRAM
702 target_alias
703 host_alias
704 build_alias
705 LIBS
706 ECHO_T
707 ECHO_N
708 ECHO_C
709 DEFS
710 mandir
711 localedir
712 libdir
713 psdir
714 pdfdir
715 dvidir
716 htmldir
717 infodir
718 docdir
719 oldincludedir
720 includedir
721 localstatedir
722 sharedstatedir
723 sysconfdir
724 datadir
725 datarootdir
726 libexecdir
727 sbindir
728 bindir
729 program_transform_name
730 prefix
731 exec_prefix
732 PACKAGE_BUGREPORT
733 PACKAGE_STRING
734 PACKAGE_VERSION
735 PACKAGE_TARNAME
736 PACKAGE_NAME
737 PATH_SEPARATOR
738 SHELL'
739 ac_subst_files=''
740 ac_user_opts='
741 enable_option_checking
742 enable_maintainer_mode
743 enable_lfs
744 enable_syslog
745 enable_debug
746 enable_sdp
747 enable_dependency_tracking
748 enable_glibtest
749 '
750       ac_precious_vars='build_alias
751 host_alias
752 target_alias
753 CC
754 CFLAGS
755 LDFLAGS
756 LIBS
757 CPPFLAGS
758 CPP
759 PKG_CONFIG'
760
761
762 # Initialize some variables set by options.
763 ac_init_help=
764 ac_init_version=false
765 ac_unrecognized_opts=
766 ac_unrecognized_sep=
767 # The variables have the same names as the options, with
768 # dashes changed to underlines.
769 cache_file=/dev/null
770 exec_prefix=NONE
771 no_create=
772 no_recursion=
773 prefix=NONE
774 program_prefix=NONE
775 program_suffix=NONE
776 program_transform_name=s,x,x,
777 silent=
778 site=
779 srcdir=
780 verbose=
781 x_includes=NONE
782 x_libraries=NONE
783
784 # Installation directory options.
785 # These are left unexpanded so users can "make install exec_prefix=/foo"
786 # and all the variables that are supposed to be based on exec_prefix
787 # by default will actually change.
788 # Use braces instead of parens because sh, perl, etc. also accept them.
789 # (The list follows the same order as the GNU Coding Standards.)
790 bindir='${exec_prefix}/bin'
791 sbindir='${exec_prefix}/sbin'
792 libexecdir='${exec_prefix}/libexec'
793 datarootdir='${prefix}/share'
794 datadir='${datarootdir}'
795 sysconfdir='${prefix}/etc'
796 sharedstatedir='${prefix}/com'
797 localstatedir='${prefix}/var'
798 includedir='${prefix}/include'
799 oldincludedir='/usr/include'
800 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
801 infodir='${datarootdir}/info'
802 htmldir='${docdir}'
803 dvidir='${docdir}'
804 pdfdir='${docdir}'
805 psdir='${docdir}'
806 libdir='${exec_prefix}/lib'
807 localedir='${datarootdir}/locale'
808 mandir='${datarootdir}/man'
809
810 ac_prev=
811 ac_dashdash=
812 for ac_option
813 do
814   # If the previous option needs an argument, assign it.
815   if test -n "$ac_prev"; then
816     eval $ac_prev=\$ac_option
817     ac_prev=
818     continue
819   fi
820
821   case $ac_option in
822   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
823   *)    ac_optarg=yes ;;
824   esac
825
826   # Accept the important Cygnus configure options, so we can diagnose typos.
827
828   case $ac_dashdash$ac_option in
829   --)
830     ac_dashdash=yes ;;
831
832   -bindir | --bindir | --bindi | --bind | --bin | --bi)
833     ac_prev=bindir ;;
834   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
835     bindir=$ac_optarg ;;
836
837   -build | --build | --buil | --bui | --bu)
838     ac_prev=build_alias ;;
839   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
840     build_alias=$ac_optarg ;;
841
842   -cache-file | --cache-file | --cache-fil | --cache-fi \
843   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
844     ac_prev=cache_file ;;
845   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
846   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
847     cache_file=$ac_optarg ;;
848
849   --config-cache | -C)
850     cache_file=config.cache ;;
851
852   -datadir | --datadir | --datadi | --datad)
853     ac_prev=datadir ;;
854   -datadir=* | --datadir=* | --datadi=* | --datad=*)
855     datadir=$ac_optarg ;;
856
857   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
858   | --dataroo | --dataro | --datar)
859     ac_prev=datarootdir ;;
860   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
861   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
862     datarootdir=$ac_optarg ;;
863
864   -disable-* | --disable-*)
865     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
866     # Reject names that are not valid shell variable names.
867     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
868       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
869    { (exit 1); exit 1; }; }
870     ac_useropt_orig=$ac_useropt
871     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
872     case $ac_user_opts in
873       *"
874 "enable_$ac_useropt"
875 "*) ;;
876       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
877          ac_unrecognized_sep=', ';;
878     esac
879     eval enable_$ac_useropt=no ;;
880
881   -docdir | --docdir | --docdi | --doc | --do)
882     ac_prev=docdir ;;
883   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
884     docdir=$ac_optarg ;;
885
886   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
887     ac_prev=dvidir ;;
888   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
889     dvidir=$ac_optarg ;;
890
891   -enable-* | --enable-*)
892     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
893     # Reject names that are not valid shell variable names.
894     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
896    { (exit 1); exit 1; }; }
897     ac_useropt_orig=$ac_useropt
898     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899     case $ac_user_opts in
900       *"
901 "enable_$ac_useropt"
902 "*) ;;
903       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
904          ac_unrecognized_sep=', ';;
905     esac
906     eval enable_$ac_useropt=\$ac_optarg ;;
907
908   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
909   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
910   | --exec | --exe | --ex)
911     ac_prev=exec_prefix ;;
912   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
913   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
914   | --exec=* | --exe=* | --ex=*)
915     exec_prefix=$ac_optarg ;;
916
917   -gas | --gas | --ga | --g)
918     # Obsolete; use --with-gas.
919     with_gas=yes ;;
920
921   -help | --help | --hel | --he | -h)
922     ac_init_help=long ;;
923   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
924     ac_init_help=recursive ;;
925   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
926     ac_init_help=short ;;
927
928   -host | --host | --hos | --ho)
929     ac_prev=host_alias ;;
930   -host=* | --host=* | --hos=* | --ho=*)
931     host_alias=$ac_optarg ;;
932
933   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
934     ac_prev=htmldir ;;
935   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
936   | --ht=*)
937     htmldir=$ac_optarg ;;
938
939   -includedir | --includedir | --includedi | --included | --include \
940   | --includ | --inclu | --incl | --inc)
941     ac_prev=includedir ;;
942   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
943   | --includ=* | --inclu=* | --incl=* | --inc=*)
944     includedir=$ac_optarg ;;
945
946   -infodir | --infodir | --infodi | --infod | --info | --inf)
947     ac_prev=infodir ;;
948   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
949     infodir=$ac_optarg ;;
950
951   -libdir | --libdir | --libdi | --libd)
952     ac_prev=libdir ;;
953   -libdir=* | --libdir=* | --libdi=* | --libd=*)
954     libdir=$ac_optarg ;;
955
956   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
957   | --libexe | --libex | --libe)
958     ac_prev=libexecdir ;;
959   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
960   | --libexe=* | --libex=* | --libe=*)
961     libexecdir=$ac_optarg ;;
962
963   -localedir | --localedir | --localedi | --localed | --locale)
964     ac_prev=localedir ;;
965   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
966     localedir=$ac_optarg ;;
967
968   -localstatedir | --localstatedir | --localstatedi | --localstated \
969   | --localstate | --localstat | --localsta | --localst | --locals)
970     ac_prev=localstatedir ;;
971   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
972   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
973     localstatedir=$ac_optarg ;;
974
975   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
976     ac_prev=mandir ;;
977   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
978     mandir=$ac_optarg ;;
979
980   -nfp | --nfp | --nf)
981     # Obsolete; use --without-fp.
982     with_fp=no ;;
983
984   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
985   | --no-cr | --no-c | -n)
986     no_create=yes ;;
987
988   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
989   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
990     no_recursion=yes ;;
991
992   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
993   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
994   | --oldin | --oldi | --old | --ol | --o)
995     ac_prev=oldincludedir ;;
996   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
997   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
998   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
999     oldincludedir=$ac_optarg ;;
1000
1001   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1002     ac_prev=prefix ;;
1003   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1004     prefix=$ac_optarg ;;
1005
1006   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1007   | --program-pre | --program-pr | --program-p)
1008     ac_prev=program_prefix ;;
1009   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1010   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1011     program_prefix=$ac_optarg ;;
1012
1013   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1014   | --program-suf | --program-su | --program-s)
1015     ac_prev=program_suffix ;;
1016   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1017   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1018     program_suffix=$ac_optarg ;;
1019
1020   -program-transform-name | --program-transform-name \
1021   | --program-transform-nam | --program-transform-na \
1022   | --program-transform-n | --program-transform- \
1023   | --program-transform | --program-transfor \
1024   | --program-transfo | --program-transf \
1025   | --program-trans | --program-tran \
1026   | --progr-tra | --program-tr | --program-t)
1027     ac_prev=program_transform_name ;;
1028   -program-transform-name=* | --program-transform-name=* \
1029   | --program-transform-nam=* | --program-transform-na=* \
1030   | --program-transform-n=* | --program-transform-=* \
1031   | --program-transform=* | --program-transfor=* \
1032   | --program-transfo=* | --program-transf=* \
1033   | --program-trans=* | --program-tran=* \
1034   | --progr-tra=* | --program-tr=* | --program-t=*)
1035     program_transform_name=$ac_optarg ;;
1036
1037   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1038     ac_prev=pdfdir ;;
1039   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1040     pdfdir=$ac_optarg ;;
1041
1042   -psdir | --psdir | --psdi | --psd | --ps)
1043     ac_prev=psdir ;;
1044   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1045     psdir=$ac_optarg ;;
1046
1047   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1048   | -silent | --silent | --silen | --sile | --sil)
1049     silent=yes ;;
1050
1051   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1052     ac_prev=sbindir ;;
1053   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1054   | --sbi=* | --sb=*)
1055     sbindir=$ac_optarg ;;
1056
1057   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1058   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1059   | --sharedst | --shareds | --shared | --share | --shar \
1060   | --sha | --sh)
1061     ac_prev=sharedstatedir ;;
1062   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1063   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1064   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1065   | --sha=* | --sh=*)
1066     sharedstatedir=$ac_optarg ;;
1067
1068   -site | --site | --sit)
1069     ac_prev=site ;;
1070   -site=* | --site=* | --sit=*)
1071     site=$ac_optarg ;;
1072
1073   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1074     ac_prev=srcdir ;;
1075   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1076     srcdir=$ac_optarg ;;
1077
1078   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1079   | --syscon | --sysco | --sysc | --sys | --sy)
1080     ac_prev=sysconfdir ;;
1081   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1082   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1083     sysconfdir=$ac_optarg ;;
1084
1085   -target | --target | --targe | --targ | --tar | --ta | --t)
1086     ac_prev=target_alias ;;
1087   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1088     target_alias=$ac_optarg ;;
1089
1090   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1091     verbose=yes ;;
1092
1093   -version | --version | --versio | --versi | --vers | -V)
1094     ac_init_version=: ;;
1095
1096   -with-* | --with-*)
1097     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1098     # Reject names that are not valid shell variable names.
1099     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1100       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1101    { (exit 1); exit 1; }; }
1102     ac_useropt_orig=$ac_useropt
1103     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1104     case $ac_user_opts in
1105       *"
1106 "with_$ac_useropt"
1107 "*) ;;
1108       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1109          ac_unrecognized_sep=', ';;
1110     esac
1111     eval with_$ac_useropt=\$ac_optarg ;;
1112
1113   -without-* | --without-*)
1114     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1115     # Reject names that are not valid shell variable names.
1116     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1118    { (exit 1); exit 1; }; }
1119     ac_useropt_orig=$ac_useropt
1120     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121     case $ac_user_opts in
1122       *"
1123 "with_$ac_useropt"
1124 "*) ;;
1125       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1126          ac_unrecognized_sep=', ';;
1127     esac
1128     eval with_$ac_useropt=no ;;
1129
1130   --x)
1131     # Obsolete; use --with-x.
1132     with_x=yes ;;
1133
1134   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1135   | --x-incl | --x-inc | --x-in | --x-i)
1136     ac_prev=x_includes ;;
1137   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1138   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1139     x_includes=$ac_optarg ;;
1140
1141   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1142   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1143     ac_prev=x_libraries ;;
1144   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1145   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1146     x_libraries=$ac_optarg ;;
1147
1148   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1149 Try \`$0 --help' for more information." >&2
1150    { (exit 1); exit 1; }; }
1151     ;;
1152
1153   *=*)
1154     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1155     # Reject names that are not valid shell variable names.
1156     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1157       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1158    { (exit 1); exit 1; }; }
1159     eval $ac_envvar=\$ac_optarg
1160     export $ac_envvar ;;
1161
1162   *)
1163     # FIXME: should be removed in autoconf 3.0.
1164     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1165     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1166       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1167     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1168     ;;
1169
1170   esac
1171 done
1172
1173 if test -n "$ac_prev"; then
1174   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1175   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1176    { (exit 1); exit 1; }; }
1177 fi
1178
1179 if test -n "$ac_unrecognized_opts"; then
1180   case $enable_option_checking in
1181     no) ;;
1182     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1183    { (exit 1); exit 1; }; } ;;
1184     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1185   esac
1186 fi
1187
1188 # Check all directory arguments for consistency.
1189 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1190                 datadir sysconfdir sharedstatedir localstatedir includedir \
1191                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1192                 libdir localedir mandir
1193 do
1194   eval ac_val=\$$ac_var
1195   # Remove trailing slashes.
1196   case $ac_val in
1197     */ )
1198       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1199       eval $ac_var=\$ac_val;;
1200   esac
1201   # Be sure to have absolute directory names.
1202   case $ac_val in
1203     [\\/$]* | ?:[\\/]* )  continue;;
1204     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1205   esac
1206   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1207    { (exit 1); exit 1; }; }
1208 done
1209
1210 # There might be people who depend on the old broken behavior: `$host'
1211 # used to hold the argument of --host etc.
1212 # FIXME: To remove some day.
1213 build=$build_alias
1214 host=$host_alias
1215 target=$target_alias
1216
1217 # FIXME: To remove some day.
1218 if test "x$host_alias" != x; then
1219   if test "x$build_alias" = x; then
1220     cross_compiling=maybe
1221     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1222     If a cross compiler is detected then cross compile mode will be used." >&2
1223   elif test "x$build_alias" != "x$host_alias"; then
1224     cross_compiling=yes
1225   fi
1226 fi
1227
1228 ac_tool_prefix=
1229 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1230
1231 test "$silent" = yes && exec 6>/dev/null
1232
1233
1234 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1235 ac_ls_di=`ls -di .` &&
1236 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1237   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1238    { (exit 1); exit 1; }; }
1239 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1240   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1241    { (exit 1); exit 1; }; }
1242
1243
1244 # Find the source files, if location was not specified.
1245 if test -z "$srcdir"; then
1246   ac_srcdir_defaulted=yes
1247   # Try the directory containing this script, then the parent directory.
1248   ac_confdir=`$as_dirname -- "$as_myself" ||
1249 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1250          X"$as_myself" : 'X\(//\)[^/]' \| \
1251          X"$as_myself" : 'X\(//\)$' \| \
1252          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1253 $as_echo X"$as_myself" |
1254     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1255             s//\1/
1256             q
1257           }
1258           /^X\(\/\/\)[^/].*/{
1259             s//\1/
1260             q
1261           }
1262           /^X\(\/\/\)$/{
1263             s//\1/
1264             q
1265           }
1266           /^X\(\/\).*/{
1267             s//\1/
1268             q
1269           }
1270           s/.*/./; q'`
1271   srcdir=$ac_confdir
1272   if test ! -r "$srcdir/$ac_unique_file"; then
1273     srcdir=..
1274   fi
1275 else
1276   ac_srcdir_defaulted=no
1277 fi
1278 if test ! -r "$srcdir/$ac_unique_file"; then
1279   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1280   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1281    { (exit 1); exit 1; }; }
1282 fi
1283 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1284 ac_abs_confdir=`(
1285         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1286    { (exit 1); exit 1; }; }
1287         pwd)`
1288 # When building in place, set srcdir=.
1289 if test "$ac_abs_confdir" = "$ac_pwd"; then
1290   srcdir=.
1291 fi
1292 # Remove unnecessary trailing slashes from srcdir.
1293 # Double slashes in file names in object file debugging info
1294 # mess up M-x gdb in Emacs.
1295 case $srcdir in
1296 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1297 esac
1298 for ac_var in $ac_precious_vars; do
1299   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1300   eval ac_env_${ac_var}_value=\$${ac_var}
1301   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1302   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1303 done
1304
1305 #
1306 # Report the --help message.
1307 #
1308 if test "$ac_init_help" = "long"; then
1309   # Omit some internal or obsolete options to make the list less imposing.
1310   # This message is too long to be a string in the A/UX 3.1 sh.
1311   cat <<_ACEOF
1312 \`configure' configures nbd 2.9.13 to adapt to many kinds of systems.
1313
1314 Usage: $0 [OPTION]... [VAR=VALUE]...
1315
1316 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1317 VAR=VALUE.  See below for descriptions of some of the useful variables.
1318
1319 Defaults for the options are specified in brackets.
1320
1321 Configuration:
1322   -h, --help              display this help and exit
1323       --help=short        display options specific to this package
1324       --help=recursive    display the short help of all the included packages
1325   -V, --version           display version information and exit
1326   -q, --quiet, --silent   do not print \`checking...' messages
1327       --cache-file=FILE   cache test results in FILE [disabled]
1328   -C, --config-cache      alias for \`--cache-file=config.cache'
1329   -n, --no-create         do not create output files
1330       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1331
1332 Installation directories:
1333   --prefix=PREFIX         install architecture-independent files in PREFIX
1334                           [$ac_default_prefix]
1335   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1336                           [PREFIX]
1337
1338 By default, \`make install' will install all the files in
1339 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1340 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1341 for instance \`--prefix=\$HOME'.
1342
1343 For better control, use the options below.
1344
1345 Fine tuning of the installation directories:
1346   --bindir=DIR            user executables [EPREFIX/bin]
1347   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1348   --libexecdir=DIR        program executables [EPREFIX/libexec]
1349   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1350   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1351   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1352   --libdir=DIR            object code libraries [EPREFIX/lib]
1353   --includedir=DIR        C header files [PREFIX/include]
1354   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1355   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1356   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1357   --infodir=DIR           info documentation [DATAROOTDIR/info]
1358   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1359   --mandir=DIR            man documentation [DATAROOTDIR/man]
1360   --docdir=DIR            documentation root [DATAROOTDIR/doc/nbd]
1361   --htmldir=DIR           html documentation [DOCDIR]
1362   --dvidir=DIR            dvi documentation [DOCDIR]
1363   --pdfdir=DIR            pdf documentation [DOCDIR]
1364   --psdir=DIR             ps documentation [DOCDIR]
1365 _ACEOF
1366
1367   cat <<\_ACEOF
1368
1369 Program names:
1370   --program-prefix=PREFIX            prepend PREFIX to installed program names
1371   --program-suffix=SUFFIX            append SUFFIX to installed program names
1372   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1373
1374 System types:
1375   --build=BUILD     configure for building on BUILD [guessed]
1376   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1377 _ACEOF
1378 fi
1379
1380 if test -n "$ac_init_help"; then
1381   case $ac_init_help in
1382      short | recursive ) echo "Configuration of nbd 2.9.13:";;
1383    esac
1384   cat <<\_ACEOF
1385
1386 Optional Features:
1387   --disable-option-checking  ignore unrecognized --enable/--with options
1388   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1389   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1390   --enable-maintainer-mode  enable make rules and dependencies not useful
1391                           (and sometimes confusing) to the casual installer
1392   --disable-lfs           Disable Large File Support (default on)
1393   --enable-syslog         Enable Syslog logging
1394   --enable-debug          Build a debugging version of the server
1395   --enable-sdp            Build a version of nbd-server with support for the
1396                           Socket Direct Protocol (SDP). Requires you to build
1397                           and install a kernel with the InfiniBand patches
1398                           (default disabled)
1399   --disable-dependency-tracking  speeds up one-time build
1400   --enable-dependency-tracking   do not reject slow dependency extractors
1401   --disable-glibtest      do not try to compile and run a test GLIB program
1402
1403 Some influential environment variables:
1404   CC          C compiler command
1405   CFLAGS      C compiler flags
1406   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1407               nonstandard directory <lib dir>
1408   LIBS        libraries to pass to the linker, e.g. -l<library>
1409   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1410               you have headers in a nonstandard directory <include dir>
1411   CPP         C preprocessor
1412   PKG_CONFIG  path to pkg-config utility
1413
1414 Use these variables to override the choices made by `configure' or to help
1415 it to find libraries and programs with nonstandard names/locations.
1416
1417 Report bugs to <wouter@debian.org>.
1418 _ACEOF
1419 ac_status=$?
1420 fi
1421
1422 if test "$ac_init_help" = "recursive"; then
1423   # If there are subdirs, report their specific --help.
1424   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1425     test -d "$ac_dir" ||
1426       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1427       continue
1428     ac_builddir=.
1429
1430 case "$ac_dir" in
1431 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1432 *)
1433   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1434   # A ".." for each directory in $ac_dir_suffix.
1435   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1436   case $ac_top_builddir_sub in
1437   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1438   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1439   esac ;;
1440 esac
1441 ac_abs_top_builddir=$ac_pwd
1442 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1443 # for backward compatibility:
1444 ac_top_builddir=$ac_top_build_prefix
1445
1446 case $srcdir in
1447   .)  # We are building in place.
1448     ac_srcdir=.
1449     ac_top_srcdir=$ac_top_builddir_sub
1450     ac_abs_top_srcdir=$ac_pwd ;;
1451   [\\/]* | ?:[\\/]* )  # Absolute name.
1452     ac_srcdir=$srcdir$ac_dir_suffix;
1453     ac_top_srcdir=$srcdir
1454     ac_abs_top_srcdir=$srcdir ;;
1455   *) # Relative name.
1456     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1457     ac_top_srcdir=$ac_top_build_prefix$srcdir
1458     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1459 esac
1460 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1461
1462     cd "$ac_dir" || { ac_status=$?; continue; }
1463     # Check for guested configure.
1464     if test -f "$ac_srcdir/configure.gnu"; then
1465       echo &&
1466       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1467     elif test -f "$ac_srcdir/configure"; then
1468       echo &&
1469       $SHELL "$ac_srcdir/configure" --help=recursive
1470     else
1471       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1472     fi || ac_status=$?
1473     cd "$ac_pwd" || { ac_status=$?; break; }
1474   done
1475 fi
1476
1477 test -n "$ac_init_help" && exit $ac_status
1478 if $ac_init_version; then
1479   cat <<\_ACEOF
1480 nbd configure 2.9.13
1481 generated by GNU Autoconf 2.63
1482
1483 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1484 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1485 This configure script is free software; the Free Software Foundation
1486 gives unlimited permission to copy, distribute and modify it.
1487 _ACEOF
1488   exit
1489 fi
1490 cat >config.log <<_ACEOF
1491 This file contains any messages produced by compilers while
1492 running configure, to aid debugging if configure makes a mistake.
1493
1494 It was created by nbd $as_me 2.9.13, which was
1495 generated by GNU Autoconf 2.63.  Invocation command line was
1496
1497   $ $0 $@
1498
1499 _ACEOF
1500 exec 5>>config.log
1501 {
1502 cat <<_ASUNAME
1503 ## --------- ##
1504 ## Platform. ##
1505 ## --------- ##
1506
1507 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1508 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1509 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1510 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1511 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1512
1513 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1514 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1515
1516 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1517 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1518 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1519 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1520 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1521 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1522 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1523
1524 _ASUNAME
1525
1526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1527 for as_dir in $PATH
1528 do
1529   IFS=$as_save_IFS
1530   test -z "$as_dir" && as_dir=.
1531   $as_echo "PATH: $as_dir"
1532 done
1533 IFS=$as_save_IFS
1534
1535 } >&5
1536
1537 cat >&5 <<_ACEOF
1538
1539
1540 ## ----------- ##
1541 ## Core tests. ##
1542 ## ----------- ##
1543
1544 _ACEOF
1545
1546
1547 # Keep a trace of the command line.
1548 # Strip out --no-create and --no-recursion so they do not pile up.
1549 # Strip out --silent because we don't want to record it for future runs.
1550 # Also quote any args containing shell meta-characters.
1551 # Make two passes to allow for proper duplicate-argument suppression.
1552 ac_configure_args=
1553 ac_configure_args0=
1554 ac_configure_args1=
1555 ac_must_keep_next=false
1556 for ac_pass in 1 2
1557 do
1558   for ac_arg
1559   do
1560     case $ac_arg in
1561     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1562     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1563     | -silent | --silent | --silen | --sile | --sil)
1564       continue ;;
1565     *\'*)
1566       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1567     esac
1568     case $ac_pass in
1569     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1570     2)
1571       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1572       if test $ac_must_keep_next = true; then
1573         ac_must_keep_next=false # Got value, back to normal.
1574       else
1575         case $ac_arg in
1576           *=* | --config-cache | -C | -disable-* | --disable-* \
1577           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1578           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1579           | -with-* | --with-* | -without-* | --without-* | --x)
1580             case "$ac_configure_args0 " in
1581               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1582             esac
1583             ;;
1584           -* ) ac_must_keep_next=true ;;
1585         esac
1586       fi
1587       ac_configure_args="$ac_configure_args '$ac_arg'"
1588       ;;
1589     esac
1590   done
1591 done
1592 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1593 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1594
1595 # When interrupted or exit'd, cleanup temporary files, and complete
1596 # config.log.  We remove comments because anyway the quotes in there
1597 # would cause problems or look ugly.
1598 # WARNING: Use '\'' to represent an apostrophe within the trap.
1599 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1600 trap 'exit_status=$?
1601   # Save into config.log some information that might help in debugging.
1602   {
1603     echo
1604
1605     cat <<\_ASBOX
1606 ## ---------------- ##
1607 ## Cache variables. ##
1608 ## ---------------- ##
1609 _ASBOX
1610     echo
1611     # The following way of writing the cache mishandles newlines in values,
1612 (
1613   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1614     eval ac_val=\$$ac_var
1615     case $ac_val in #(
1616     *${as_nl}*)
1617       case $ac_var in #(
1618       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1619 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1620       esac
1621       case $ac_var in #(
1622       _ | IFS | as_nl) ;; #(
1623       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1624       *) $as_unset $ac_var ;;
1625       esac ;;
1626     esac
1627   done
1628   (set) 2>&1 |
1629     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1630     *${as_nl}ac_space=\ *)
1631       sed -n \
1632         "s/'\''/'\''\\\\'\'''\''/g;
1633           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1634       ;; #(
1635     *)
1636       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1637       ;;
1638     esac |
1639     sort
1640 )
1641     echo
1642
1643     cat <<\_ASBOX
1644 ## ----------------- ##
1645 ## Output variables. ##
1646 ## ----------------- ##
1647 _ASBOX
1648     echo
1649     for ac_var in $ac_subst_vars
1650     do
1651       eval ac_val=\$$ac_var
1652       case $ac_val in
1653       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1654       esac
1655       $as_echo "$ac_var='\''$ac_val'\''"
1656     done | sort
1657     echo
1658
1659     if test -n "$ac_subst_files"; then
1660       cat <<\_ASBOX
1661 ## ------------------- ##
1662 ## File substitutions. ##
1663 ## ------------------- ##
1664 _ASBOX
1665       echo
1666       for ac_var in $ac_subst_files
1667       do
1668         eval ac_val=\$$ac_var
1669         case $ac_val in
1670         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1671         esac
1672         $as_echo "$ac_var='\''$ac_val'\''"
1673       done | sort
1674       echo
1675     fi
1676
1677     if test -s confdefs.h; then
1678       cat <<\_ASBOX
1679 ## ----------- ##
1680 ## confdefs.h. ##
1681 ## ----------- ##
1682 _ASBOX
1683       echo
1684       cat confdefs.h
1685       echo
1686     fi
1687     test "$ac_signal" != 0 &&
1688       $as_echo "$as_me: caught signal $ac_signal"
1689     $as_echo "$as_me: exit $exit_status"
1690   } >&5
1691   rm -f core *.core core.conftest.* &&
1692     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1693     exit $exit_status
1694 ' 0
1695 for ac_signal in 1 2 13 15; do
1696   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1697 done
1698 ac_signal=0
1699
1700 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1701 rm -f -r conftest* confdefs.h
1702
1703 # Predefined preprocessor variables.
1704
1705 cat >>confdefs.h <<_ACEOF
1706 #define PACKAGE_NAME "$PACKAGE_NAME"
1707 _ACEOF
1708
1709
1710 cat >>confdefs.h <<_ACEOF
1711 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1712 _ACEOF
1713
1714
1715 cat >>confdefs.h <<_ACEOF
1716 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1717 _ACEOF
1718
1719
1720 cat >>confdefs.h <<_ACEOF
1721 #define PACKAGE_STRING "$PACKAGE_STRING"
1722 _ACEOF
1723
1724
1725 cat >>confdefs.h <<_ACEOF
1726 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1727 _ACEOF
1728
1729
1730 # Let the site file select an alternate cache file if it wants to.
1731 # Prefer an explicitly selected file to automatically selected ones.
1732 ac_site_file1=NONE
1733 ac_site_file2=NONE
1734 if test -n "$CONFIG_SITE"; then
1735   ac_site_file1=$CONFIG_SITE
1736 elif test "x$prefix" != xNONE; then
1737   ac_site_file1=$prefix/share/config.site
1738   ac_site_file2=$prefix/etc/config.site
1739 else
1740   ac_site_file1=$ac_default_prefix/share/config.site
1741   ac_site_file2=$ac_default_prefix/etc/config.site
1742 fi
1743 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1744 do
1745   test "x$ac_site_file" = xNONE && continue
1746   if test -r "$ac_site_file"; then
1747     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1748 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1749     sed 's/^/| /' "$ac_site_file" >&5
1750     . "$ac_site_file"
1751   fi
1752 done
1753
1754 if test -r "$cache_file"; then
1755   # Some versions of bash will fail to source /dev/null (special
1756   # files actually), so we avoid doing that.
1757   if test -f "$cache_file"; then
1758     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1759 $as_echo "$as_me: loading cache $cache_file" >&6;}
1760     case $cache_file in
1761       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1762       *)                      . "./$cache_file";;
1763     esac
1764   fi
1765 else
1766   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1767 $as_echo "$as_me: creating cache $cache_file" >&6;}
1768   >$cache_file
1769 fi
1770
1771 # Check that the precious variables saved in the cache have kept the same
1772 # value.
1773 ac_cache_corrupted=false
1774 for ac_var in $ac_precious_vars; do
1775   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1776   eval ac_new_set=\$ac_env_${ac_var}_set
1777   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1778   eval ac_new_val=\$ac_env_${ac_var}_value
1779   case $ac_old_set,$ac_new_set in
1780     set,)
1781       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1782 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1783       ac_cache_corrupted=: ;;
1784     ,set)
1785       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1786 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1787       ac_cache_corrupted=: ;;
1788     ,);;
1789     *)
1790       if test "x$ac_old_val" != "x$ac_new_val"; then
1791         # differences in whitespace do not lead to failure.
1792         ac_old_val_w=`echo x $ac_old_val`
1793         ac_new_val_w=`echo x $ac_new_val`
1794         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1795           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1796 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1797           ac_cache_corrupted=:
1798         else
1799           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1800 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1801           eval $ac_var=\$ac_old_val
1802         fi
1803         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1804 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1805         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1806 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1807       fi;;
1808   esac
1809   # Pass precious variables to config.status.
1810   if test "$ac_new_set" = set; then
1811     case $ac_new_val in
1812     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1813     *) ac_arg=$ac_var=$ac_new_val ;;
1814     esac
1815     case " $ac_configure_args " in
1816       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1817       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1818     esac
1819   fi
1820 done
1821 if $ac_cache_corrupted; then
1822   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1823 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1824   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1825 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1826   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1827 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1828    { (exit 1); exit 1; }; }
1829 fi
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855 ac_ext=c
1856 ac_cpp='$CPP $CPPFLAGS'
1857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1860
1861
1862 am__api_version='1.10'
1863
1864 ac_aux_dir=
1865 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1866   if test -f "$ac_dir/install-sh"; then
1867     ac_aux_dir=$ac_dir
1868     ac_install_sh="$ac_aux_dir/install-sh -c"
1869     break
1870   elif test -f "$ac_dir/install.sh"; then
1871     ac_aux_dir=$ac_dir
1872     ac_install_sh="$ac_aux_dir/install.sh -c"
1873     break
1874   elif test -f "$ac_dir/shtool"; then
1875     ac_aux_dir=$ac_dir
1876     ac_install_sh="$ac_aux_dir/shtool install -c"
1877     break
1878   fi
1879 done
1880 if test -z "$ac_aux_dir"; then
1881   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1882 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1883    { (exit 1); exit 1; }; }
1884 fi
1885
1886 # These three variables are undocumented and unsupported,
1887 # and are intended to be withdrawn in a future Autoconf release.
1888 # They can cause serious problems if a builder's source tree is in a directory
1889 # whose full name contains unusual characters.
1890 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1891 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1892 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1893
1894
1895 # Find a good install program.  We prefer a C program (faster),
1896 # so one script is as good as another.  But avoid the broken or
1897 # incompatible versions:
1898 # SysV /etc/install, /usr/sbin/install
1899 # SunOS /usr/etc/install
1900 # IRIX /sbin/install
1901 # AIX /bin/install
1902 # AmigaOS /C/install, which installs bootblocks on floppy discs
1903 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1904 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1905 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1906 # OS/2's system install, which has a completely different semantic
1907 # ./install, which can be erroneously created by make from ./install.sh.
1908 # Reject install programs that cannot install multiple files.
1909 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1910 $as_echo_n "checking for a BSD-compatible install... " >&6; }
1911 if test -z "$INSTALL"; then
1912 if test "${ac_cv_path_install+set}" = set; then
1913   $as_echo_n "(cached) " >&6
1914 else
1915   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916 for as_dir in $PATH
1917 do
1918   IFS=$as_save_IFS
1919   test -z "$as_dir" && as_dir=.
1920   # Account for people who put trailing slashes in PATH elements.
1921 case $as_dir/ in
1922   ./ | .// | /cC/* | \
1923   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1924   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1925   /usr/ucb/* ) ;;
1926   *)
1927     # OSF1 and SCO ODT 3.0 have their own names for install.
1928     # Don't use installbsd from OSF since it installs stuff as root
1929     # by default.
1930     for ac_prog in ginstall scoinst install; do
1931       for ac_exec_ext in '' $ac_executable_extensions; do
1932         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1933           if test $ac_prog = install &&
1934             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1935             # AIX install.  It has an incompatible calling convention.
1936             :
1937           elif test $ac_prog = install &&
1938             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1939             # program-specific install script used by HP pwplus--don't use.
1940             :
1941           else
1942             rm -rf conftest.one conftest.two conftest.dir
1943             echo one > conftest.one
1944             echo two > conftest.two
1945             mkdir conftest.dir
1946             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1947               test -s conftest.one && test -s conftest.two &&
1948               test -s conftest.dir/conftest.one &&
1949               test -s conftest.dir/conftest.two
1950             then
1951               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1952               break 3
1953             fi
1954           fi
1955         fi
1956       done
1957     done
1958     ;;
1959 esac
1960
1961 done
1962 IFS=$as_save_IFS
1963
1964 rm -rf conftest.one conftest.two conftest.dir
1965
1966 fi
1967   if test "${ac_cv_path_install+set}" = set; then
1968     INSTALL=$ac_cv_path_install
1969   else
1970     # As a last resort, use the slow shell script.  Don't cache a
1971     # value for INSTALL within a source directory, because that will
1972     # break other packages using the cache if that directory is
1973     # removed, or if the value is a relative name.
1974     INSTALL=$ac_install_sh
1975   fi
1976 fi
1977 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
1978 $as_echo "$INSTALL" >&6; }
1979
1980 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1981 # It thinks the first close brace ends the variable substitution.
1982 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1983
1984 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1985
1986 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1987
1988 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1989 $as_echo_n "checking whether build environment is sane... " >&6; }
1990 # Just in case
1991 sleep 1
1992 echo timestamp > conftest.file
1993 # Do `set' in a subshell so we don't clobber the current shell's
1994 # arguments.  Must try -L first in case configure is actually a
1995 # symlink; some systems play weird games with the mod time of symlinks
1996 # (eg FreeBSD returns the mod time of the symlink's containing
1997 # directory).
1998 if (
1999    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2000    if test "$*" = "X"; then
2001       # -L didn't work.
2002       set X `ls -t $srcdir/configure conftest.file`
2003    fi
2004    rm -f conftest.file
2005    if test "$*" != "X $srcdir/configure conftest.file" \
2006       && test "$*" != "X conftest.file $srcdir/configure"; then
2007
2008       # If neither matched, then we have a broken ls.  This can happen
2009       # if, for instance, CONFIG_SHELL is bash and it inherits a
2010       # broken ls alias from the environment.  This has actually
2011       # happened.  Such a system could not be considered "sane".
2012       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2013 alias in your environment" >&5
2014 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2015 alias in your environment" >&2;}
2016    { (exit 1); exit 1; }; }
2017    fi
2018
2019    test "$2" = conftest.file
2020    )
2021 then
2022    # Ok.
2023    :
2024 else
2025    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2026 Check your system clock" >&5
2027 $as_echo "$as_me: error: newly created file is older than distributed files!
2028 Check your system clock" >&2;}
2029    { (exit 1); exit 1; }; }
2030 fi
2031 { $as_echo "$as_me:$LINENO: result: yes" >&5
2032 $as_echo "yes" >&6; }
2033 test "$program_prefix" != NONE &&
2034   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2035 # Use a double $ so make ignores it.
2036 test "$program_suffix" != NONE &&
2037   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2038 # Double any \ or $.
2039 # By default was `s,x,x', remove it if useless.
2040 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2041 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2042
2043 # expand $ac_aux_dir to an absolute path
2044 am_aux_dir=`cd $ac_aux_dir && pwd`
2045
2046 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2047 # Use eval to expand $SHELL
2048 if eval "$MISSING --run true"; then
2049   am_missing_run="$MISSING --run "
2050 else
2051   am_missing_run=
2052   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2053 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2054 fi
2055
2056 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2057 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2058 if test -z "$MKDIR_P"; then
2059   if test "${ac_cv_path_mkdir+set}" = set; then
2060   $as_echo_n "(cached) " >&6
2061 else
2062   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2064 do
2065   IFS=$as_save_IFS
2066   test -z "$as_dir" && as_dir=.
2067   for ac_prog in mkdir gmkdir; do
2068          for ac_exec_ext in '' $ac_executable_extensions; do
2069            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2070            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2071              'mkdir (GNU coreutils) '* | \
2072              'mkdir (coreutils) '* | \
2073              'mkdir (fileutils) '4.1*)
2074                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2075                break 3;;
2076            esac
2077          done
2078        done
2079 done
2080 IFS=$as_save_IFS
2081
2082 fi
2083
2084   if test "${ac_cv_path_mkdir+set}" = set; then
2085     MKDIR_P="$ac_cv_path_mkdir -p"
2086   else
2087     # As a last resort, use the slow shell script.  Don't cache a
2088     # value for MKDIR_P within a source directory, because that will
2089     # break other packages using the cache if that directory is
2090     # removed, or if the value is a relative name.
2091     test -d ./--version && rmdir ./--version
2092     MKDIR_P="$ac_install_sh -d"
2093   fi
2094 fi
2095 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2096 $as_echo "$MKDIR_P" >&6; }
2097
2098 mkdir_p="$MKDIR_P"
2099 case $mkdir_p in
2100   [\\/$]* | ?:[\\/]*) ;;
2101   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2102 esac
2103
2104 for ac_prog in gawk mawk nawk awk
2105 do
2106   # Extract the first word of "$ac_prog", so it can be a program name with args.
2107 set dummy $ac_prog; ac_word=$2
2108 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2109 $as_echo_n "checking for $ac_word... " >&6; }
2110 if test "${ac_cv_prog_AWK+set}" = set; then
2111   $as_echo_n "(cached) " >&6
2112 else
2113   if test -n "$AWK"; then
2114   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2115 else
2116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2117 for as_dir in $PATH
2118 do
2119   IFS=$as_save_IFS
2120   test -z "$as_dir" && as_dir=.
2121   for ac_exec_ext in '' $ac_executable_extensions; do
2122   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2123     ac_cv_prog_AWK="$ac_prog"
2124     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2125     break 2
2126   fi
2127 done
2128 done
2129 IFS=$as_save_IFS
2130
2131 fi
2132 fi
2133 AWK=$ac_cv_prog_AWK
2134 if test -n "$AWK"; then
2135   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2136 $as_echo "$AWK" >&6; }
2137 else
2138   { $as_echo "$as_me:$LINENO: result: no" >&5
2139 $as_echo "no" >&6; }
2140 fi
2141
2142
2143   test -n "$AWK" && break
2144 done
2145
2146 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2147 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2148 set x ${MAKE-make}
2149 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2150 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2151   $as_echo_n "(cached) " >&6
2152 else
2153   cat >conftest.make <<\_ACEOF
2154 SHELL = /bin/sh
2155 all:
2156         @echo '@@@%%%=$(MAKE)=@@@%%%'
2157 _ACEOF
2158 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2159 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2160   *@@@%%%=?*=@@@%%%*)
2161     eval ac_cv_prog_make_${ac_make}_set=yes;;
2162   *)
2163     eval ac_cv_prog_make_${ac_make}_set=no;;
2164 esac
2165 rm -f conftest.make
2166 fi
2167 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2168   { $as_echo "$as_me:$LINENO: result: yes" >&5
2169 $as_echo "yes" >&6; }
2170   SET_MAKE=
2171 else
2172   { $as_echo "$as_me:$LINENO: result: no" >&5
2173 $as_echo "no" >&6; }
2174   SET_MAKE="MAKE=${MAKE-make}"
2175 fi
2176
2177 rm -rf .tst 2>/dev/null
2178 mkdir .tst 2>/dev/null
2179 if test -d .tst; then
2180   am__leading_dot=.
2181 else
2182   am__leading_dot=_
2183 fi
2184 rmdir .tst 2>/dev/null
2185
2186 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2187   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2188   # is not polluted with repeated "-I."
2189   am__isrc=' -I$(srcdir)'
2190   # test to see if srcdir already configured
2191   if test -f $srcdir/config.status; then
2192     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2193 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2194    { (exit 1); exit 1; }; }
2195   fi
2196 fi
2197
2198 # test whether we have cygpath
2199 if test -z "$CYGPATH_W"; then
2200   if (cygpath --version) >/dev/null 2>/dev/null; then
2201     CYGPATH_W='cygpath -w'
2202   else
2203     CYGPATH_W=echo
2204   fi
2205 fi
2206
2207
2208 # Define the identity of the package.
2209  PACKAGE='nbd'
2210  VERSION='2.9.13'
2211
2212
2213 cat >>confdefs.h <<_ACEOF
2214 #define PACKAGE "$PACKAGE"
2215 _ACEOF
2216
2217
2218 cat >>confdefs.h <<_ACEOF
2219 #define VERSION "$VERSION"
2220 _ACEOF
2221
2222 # Some tools Automake needs.
2223
2224 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2225
2226
2227 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2228
2229
2230 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2231
2232
2233 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2234
2235
2236 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2237
2238 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2239
2240 # Installed binaries are usually stripped using `strip' when the user
2241 # run `make install-strip'.  However `strip' might not be the right
2242 # tool to use in cross-compilation environments, therefore Automake
2243 # will honor the `STRIP' environment variable to overrule this program.
2244 if test "$cross_compiling" != no; then
2245   if test -n "$ac_tool_prefix"; then
2246   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2247 set dummy ${ac_tool_prefix}strip; ac_word=$2
2248 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2249 $as_echo_n "checking for $ac_word... " >&6; }
2250 if test "${ac_cv_prog_STRIP+set}" = set; then
2251   $as_echo_n "(cached) " >&6
2252 else
2253   if test -n "$STRIP"; then
2254   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2255 else
2256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2257 for as_dir in $PATH
2258 do
2259   IFS=$as_save_IFS
2260   test -z "$as_dir" && as_dir=.
2261   for ac_exec_ext in '' $ac_executable_extensions; do
2262   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2263     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2264     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2265     break 2
2266   fi
2267 done
2268 done
2269 IFS=$as_save_IFS
2270
2271 fi
2272 fi
2273 STRIP=$ac_cv_prog_STRIP
2274 if test -n "$STRIP"; then
2275   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2276 $as_echo "$STRIP" >&6; }
2277 else
2278   { $as_echo "$as_me:$LINENO: result: no" >&5
2279 $as_echo "no" >&6; }
2280 fi
2281
2282
2283 fi
2284 if test -z "$ac_cv_prog_STRIP"; then
2285   ac_ct_STRIP=$STRIP
2286   # Extract the first word of "strip", so it can be a program name with args.
2287 set dummy strip; ac_word=$2
2288 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2289 $as_echo_n "checking for $ac_word... " >&6; }
2290 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2291   $as_echo_n "(cached) " >&6
2292 else
2293   if test -n "$ac_ct_STRIP"; then
2294   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2295 else
2296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2297 for as_dir in $PATH
2298 do
2299   IFS=$as_save_IFS
2300   test -z "$as_dir" && as_dir=.
2301   for ac_exec_ext in '' $ac_executable_extensions; do
2302   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2303     ac_cv_prog_ac_ct_STRIP="strip"
2304     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2305     break 2
2306   fi
2307 done
2308 done
2309 IFS=$as_save_IFS
2310
2311 fi
2312 fi
2313 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2314 if test -n "$ac_ct_STRIP"; then
2315   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2316 $as_echo "$ac_ct_STRIP" >&6; }
2317 else
2318   { $as_echo "$as_me:$LINENO: result: no" >&5
2319 $as_echo "no" >&6; }
2320 fi
2321
2322   if test "x$ac_ct_STRIP" = x; then
2323     STRIP=":"
2324   else
2325     case $cross_compiling:$ac_tool_warned in
2326 yes:)
2327 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2328 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2329 ac_tool_warned=yes ;;
2330 esac
2331     STRIP=$ac_ct_STRIP
2332   fi
2333 else
2334   STRIP="$ac_cv_prog_STRIP"
2335 fi
2336
2337 fi
2338 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2339
2340 # We need awk for the "check" target.  The system "awk" is bad on
2341 # some platforms.
2342 # Always define AMTAR for backward compatibility.
2343
2344 AMTAR=${AMTAR-"${am_missing_run}tar"}
2345
2346 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2347
2348
2349
2350
2351
2352 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2353 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2354     # Check whether --enable-maintainer-mode was given.
2355 if test "${enable_maintainer_mode+set}" = set; then
2356   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2357 else
2358   USE_MAINTAINER_MODE=no
2359 fi
2360
2361   { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2362 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2363    if test $USE_MAINTAINER_MODE = yes; then
2364   MAINTAINER_MODE_TRUE=
2365   MAINTAINER_MODE_FALSE='#'
2366 else
2367   MAINTAINER_MODE_TRUE='#'
2368   MAINTAINER_MODE_FALSE=
2369 fi
2370
2371   MAINT=$MAINTAINER_MODE_TRUE
2372
2373
2374
2375 # Check whether --enable-lfs was given.
2376 if test "${enable_lfs+set}" = set; then
2377   enableval=$enable_lfs;
2378     if test "x$enableval" = "xyes" ; then
2379       NBD_LFS=1
2380     else
2381       NBD_LFS=0
2382     fi
2383
2384 else
2385   NBD_LFS=1
2386
2387 fi
2388
2389 { $as_echo "$as_me:$LINENO: checking whether Large File Support should be enabled" >&5
2390 $as_echo_n "checking whether Large File Support should be enabled... " >&6; }
2391 if test $NBD_LFS -eq 1; then
2392
2393 cat >>confdefs.h <<\_ACEOF
2394 #define NBD_LFS 1
2395 _ACEOF
2396
2397   { $as_echo "$as_me:$LINENO: result: yes" >&5
2398 $as_echo "yes" >&6; }
2399 else
2400   cat >>confdefs.h <<\_ACEOF
2401 #define NBD_LFS 0
2402 _ACEOF
2403
2404   { $as_echo "$as_me:$LINENO: result: no" >&5
2405 $as_echo "no" >&6; }
2406 fi
2407
2408 # Check whether --enable-syslog was given.
2409 if test "${enable_syslog+set}" = set; then
2410   enableval=$enable_syslog;
2411     if test "x$enableval" = "xyes" ; then
2412       ISSERVER=1
2413     else
2414       ISSERVER=0
2415     fi
2416
2417 else
2418   ISSERVER=0
2419
2420 fi
2421
2422
2423 { $as_echo "$as_me:$LINENO: checking whether syslog logging is requested" >&5
2424 $as_echo_n "checking whether syslog logging is requested... " >&6; }
2425 if test $ISSERVER -eq 1; then
2426
2427 cat >>confdefs.h <<\_ACEOF
2428 #define ISSERVER 1
2429 _ACEOF
2430
2431   { $as_echo "$as_me:$LINENO: result: yes" >&5
2432 $as_echo "yes" >&6; }
2433 else
2434   { $as_echo "$as_me:$LINENO: result: no" >&5
2435 $as_echo "no" >&6; }
2436 fi
2437
2438 # Check whether --enable-debug was given.
2439 if test "${enable_debug+set}" = set; then
2440   enableval=$enable_debug;
2441     if test "x$enableval" = "xyes"; then
2442       DODBG=1
2443     else
2444       DODBG=0
2445     fi
2446
2447 else
2448   DODBG=0
2449
2450 fi
2451
2452
2453 { $as_echo "$as_me:$LINENO: checking whether a debugging version is requested" >&5
2454 $as_echo_n "checking whether a debugging version is requested... " >&6; }
2455 if test $DODBG -eq 1; then
2456   { $as_echo "$as_me:$LINENO: result: yes" >&5
2457 $as_echo "yes" >&6; }
2458   if test $ISSERVER -eq 1; then
2459     { { $as_echo "$as_me:$LINENO: error: You requested both syslog logging and a debugging version of the server. Bad idea!" >&5
2460 $as_echo "$as_me: error: You requested both syslog logging and a debugging version of the server. Bad idea!" >&2;}
2461    { (exit 1); exit 1; }; }
2462   fi
2463
2464 cat >>confdefs.h <<\_ACEOF
2465 #define DODBG 1
2466 _ACEOF
2467
2468
2469 cat >>confdefs.h <<\_ACEOF
2470 #define NOFORK 1
2471 _ACEOF
2472
2473 else
2474   { $as_echo "$as_me:$LINENO: result: no" >&5
2475 $as_echo "no" >&6; }
2476 fi
2477
2478 # Check whether --enable-sdp was given.
2479 if test "${enable_sdp+set}" = set; then
2480   enableval=$enable_sdp;
2481     if test "x$enableval" = "xyes"; then
2482
2483 cat >>confdefs.h <<\_ACEOF
2484 #define WITH_SDP 1
2485 _ACEOF
2486
2487     fi
2488
2489
2490 fi
2491
2492
2493 ac_ext=c
2494 ac_cpp='$CPP $CPPFLAGS'
2495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2498 if test -n "$ac_tool_prefix"; then
2499   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2500 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2501 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2502 $as_echo_n "checking for $ac_word... " >&6; }
2503 if test "${ac_cv_prog_CC+set}" = set; then
2504   $as_echo_n "(cached) " >&6
2505 else
2506   if test -n "$CC"; then
2507   ac_cv_prog_CC="$CC" # Let the user override the test.
2508 else
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 for as_dir in $PATH
2511 do
2512   IFS=$as_save_IFS
2513   test -z "$as_dir" && as_dir=.
2514   for ac_exec_ext in '' $ac_executable_extensions; do
2515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2516     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2517     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2518     break 2
2519   fi
2520 done
2521 done
2522 IFS=$as_save_IFS
2523
2524 fi
2525 fi
2526 CC=$ac_cv_prog_CC
2527 if test -n "$CC"; then
2528   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2529 $as_echo "$CC" >&6; }
2530 else
2531   { $as_echo "$as_me:$LINENO: result: no" >&5
2532 $as_echo "no" >&6; }
2533 fi
2534
2535
2536 fi
2537 if test -z "$ac_cv_prog_CC"; then
2538   ac_ct_CC=$CC
2539   # Extract the first word of "gcc", so it can be a program name with args.
2540 set dummy gcc; ac_word=$2
2541 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2542 $as_echo_n "checking for $ac_word... " >&6; }
2543 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2544   $as_echo_n "(cached) " >&6
2545 else
2546   if test -n "$ac_ct_CC"; then
2547   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2548 else
2549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550 for as_dir in $PATH
2551 do
2552   IFS=$as_save_IFS
2553   test -z "$as_dir" && as_dir=.
2554   for ac_exec_ext in '' $ac_executable_extensions; do
2555   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2556     ac_cv_prog_ac_ct_CC="gcc"
2557     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2558     break 2
2559   fi
2560 done
2561 done
2562 IFS=$as_save_IFS
2563
2564 fi
2565 fi
2566 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2567 if test -n "$ac_ct_CC"; then
2568   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2569 $as_echo "$ac_ct_CC" >&6; }
2570 else
2571   { $as_echo "$as_me:$LINENO: result: no" >&5
2572 $as_echo "no" >&6; }
2573 fi
2574
2575   if test "x$ac_ct_CC" = x; then
2576     CC=""
2577   else
2578     case $cross_compiling:$ac_tool_warned in
2579 yes:)
2580 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2582 ac_tool_warned=yes ;;
2583 esac
2584     CC=$ac_ct_CC
2585   fi
2586 else
2587   CC="$ac_cv_prog_CC"
2588 fi
2589
2590 if test -z "$CC"; then
2591           if test -n "$ac_tool_prefix"; then
2592     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2593 set dummy ${ac_tool_prefix}cc; ac_word=$2
2594 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2595 $as_echo_n "checking for $ac_word... " >&6; }
2596 if test "${ac_cv_prog_CC+set}" = set; then
2597   $as_echo_n "(cached) " >&6
2598 else
2599   if test -n "$CC"; then
2600   ac_cv_prog_CC="$CC" # Let the user override the test.
2601 else
2602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603 for as_dir in $PATH
2604 do
2605   IFS=$as_save_IFS
2606   test -z "$as_dir" && as_dir=.
2607   for ac_exec_ext in '' $ac_executable_extensions; do
2608   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2609     ac_cv_prog_CC="${ac_tool_prefix}cc"
2610     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2611     break 2
2612   fi
2613 done
2614 done
2615 IFS=$as_save_IFS
2616
2617 fi
2618 fi
2619 CC=$ac_cv_prog_CC
2620 if test -n "$CC"; then
2621   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2622 $as_echo "$CC" >&6; }
2623 else
2624   { $as_echo "$as_me:$LINENO: result: no" >&5
2625 $as_echo "no" >&6; }
2626 fi
2627
2628
2629   fi
2630 fi
2631 if test -z "$CC"; then
2632   # Extract the first word of "cc", so it can be a program name with args.
2633 set dummy cc; ac_word=$2
2634 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2635 $as_echo_n "checking for $ac_word... " >&6; }
2636 if test "${ac_cv_prog_CC+set}" = set; then
2637   $as_echo_n "(cached) " >&6
2638 else
2639   if test -n "$CC"; then
2640   ac_cv_prog_CC="$CC" # Let the user override the test.
2641 else
2642   ac_prog_rejected=no
2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644 for as_dir in $PATH
2645 do
2646   IFS=$as_save_IFS
2647   test -z "$as_dir" && as_dir=.
2648   for ac_exec_ext in '' $ac_executable_extensions; do
2649   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2650     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2651        ac_prog_rejected=yes
2652        continue
2653      fi
2654     ac_cv_prog_CC="cc"
2655     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2656     break 2
2657   fi
2658 done
2659 done
2660 IFS=$as_save_IFS
2661
2662 if test $ac_prog_rejected = yes; then
2663   # We found a bogon in the path, so make sure we never use it.
2664   set dummy $ac_cv_prog_CC
2665   shift
2666   if test $# != 0; then
2667     # We chose a different compiler from the bogus one.
2668     # However, it has the same basename, so the bogon will be chosen
2669     # first if we set CC to just the basename; use the full file name.
2670     shift
2671     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2672   fi
2673 fi
2674 fi
2675 fi
2676 CC=$ac_cv_prog_CC
2677 if test -n "$CC"; then
2678   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2679 $as_echo "$CC" >&6; }
2680 else
2681   { $as_echo "$as_me:$LINENO: result: no" >&5
2682 $as_echo "no" >&6; }
2683 fi
2684
2685
2686 fi
2687 if test -z "$CC"; then
2688   if test -n "$ac_tool_prefix"; then
2689   for ac_prog in cl.exe
2690   do
2691     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2692 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2693 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2694 $as_echo_n "checking for $ac_word... " >&6; }
2695 if test "${ac_cv_prog_CC+set}" = set; then
2696   $as_echo_n "(cached) " >&6
2697 else
2698   if test -n "$CC"; then
2699   ac_cv_prog_CC="$CC" # Let the user override the test.
2700 else
2701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702 for as_dir in $PATH
2703 do
2704   IFS=$as_save_IFS
2705   test -z "$as_dir" && as_dir=.
2706   for ac_exec_ext in '' $ac_executable_extensions; do
2707   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2708     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2709     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2710     break 2
2711   fi
2712 done
2713 done
2714 IFS=$as_save_IFS
2715
2716 fi
2717 fi
2718 CC=$ac_cv_prog_CC
2719 if test -n "$CC"; then
2720   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2721 $as_echo "$CC" >&6; }
2722 else
2723   { $as_echo "$as_me:$LINENO: result: no" >&5
2724 $as_echo "no" >&6; }
2725 fi
2726
2727
2728     test -n "$CC" && break
2729   done
2730 fi
2731 if test -z "$CC"; then
2732   ac_ct_CC=$CC
2733   for ac_prog in cl.exe
2734 do
2735   # Extract the first word of "$ac_prog", so it can be a program name with args.
2736 set dummy $ac_prog; ac_word=$2
2737 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2738 $as_echo_n "checking for $ac_word... " >&6; }
2739 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2740   $as_echo_n "(cached) " >&6
2741 else
2742   if test -n "$ac_ct_CC"; then
2743   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2744 else
2745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746 for as_dir in $PATH
2747 do
2748   IFS=$as_save_IFS
2749   test -z "$as_dir" && as_dir=.
2750   for ac_exec_ext in '' $ac_executable_extensions; do
2751   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2752     ac_cv_prog_ac_ct_CC="$ac_prog"
2753     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2754     break 2
2755   fi
2756 done
2757 done
2758 IFS=$as_save_IFS
2759
2760 fi
2761 fi
2762 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2763 if test -n "$ac_ct_CC"; then
2764   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2765 $as_echo "$ac_ct_CC" >&6; }
2766 else
2767   { $as_echo "$as_me:$LINENO: result: no" >&5
2768 $as_echo "no" >&6; }
2769 fi
2770
2771
2772   test -n "$ac_ct_CC" && break
2773 done
2774
2775   if test "x$ac_ct_CC" = x; then
2776     CC=""
2777   else
2778     case $cross_compiling:$ac_tool_warned in
2779 yes:)
2780 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2782 ac_tool_warned=yes ;;
2783 esac
2784     CC=$ac_ct_CC
2785   fi
2786 fi
2787
2788 fi
2789
2790
2791 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2792 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2793 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2794 See \`config.log' for more details." >&5
2795 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2796 See \`config.log' for more details." >&2;}
2797    { (exit 1); exit 1; }; }; }
2798
2799 # Provide some information about the compiler.
2800 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2801 set X $ac_compile
2802 ac_compiler=$2
2803 { (ac_try="$ac_compiler --version >&5"
2804 case "(($ac_try" in
2805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2806   *) ac_try_echo=$ac_try;;
2807 esac
2808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2809 $as_echo "$ac_try_echo") >&5
2810   (eval "$ac_compiler --version >&5") 2>&5
2811   ac_status=$?
2812   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813   (exit $ac_status); }
2814 { (ac_try="$ac_compiler -v >&5"
2815 case "(($ac_try" in
2816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2817   *) ac_try_echo=$ac_try;;
2818 esac
2819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2820 $as_echo "$ac_try_echo") >&5
2821   (eval "$ac_compiler -v >&5") 2>&5
2822   ac_status=$?
2823   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824   (exit $ac_status); }
2825 { (ac_try="$ac_compiler -V >&5"
2826 case "(($ac_try" in
2827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2828   *) ac_try_echo=$ac_try;;
2829 esac
2830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2831 $as_echo "$ac_try_echo") >&5
2832   (eval "$ac_compiler -V >&5") 2>&5
2833   ac_status=$?
2834   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835   (exit $ac_status); }
2836
2837 cat >conftest.$ac_ext <<_ACEOF
2838 /* confdefs.h.  */
2839 _ACEOF
2840 cat confdefs.h >>conftest.$ac_ext
2841 cat >>conftest.$ac_ext <<_ACEOF
2842 /* end confdefs.h.  */
2843
2844 int
2845 main ()
2846 {
2847
2848   ;
2849   return 0;
2850 }
2851 _ACEOF
2852 ac_clean_files_save=$ac_clean_files
2853 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2854 # Try to create an executable without -o first, disregard a.out.
2855 # It will help us diagnose broken compilers, and finding out an intuition
2856 # of exeext.
2857 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2858 $as_echo_n "checking for C compiler default output file name... " >&6; }
2859 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2860
2861 # The possible output files:
2862 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2863
2864 ac_rmfiles=
2865 for ac_file in $ac_files
2866 do
2867   case $ac_file in
2868     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2869     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2870   esac
2871 done
2872 rm -f $ac_rmfiles
2873
2874 if { (ac_try="$ac_link_default"
2875 case "(($ac_try" in
2876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2877   *) ac_try_echo=$ac_try;;
2878 esac
2879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2880 $as_echo "$ac_try_echo") >&5
2881   (eval "$ac_link_default") 2>&5
2882   ac_status=$?
2883   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884   (exit $ac_status); }; then
2885   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2886 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2887 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2888 # so that the user can short-circuit this test for compilers unknown to
2889 # Autoconf.
2890 for ac_file in $ac_files ''
2891 do
2892   test -f "$ac_file" || continue
2893   case $ac_file in
2894     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2895         ;;
2896     [ab].out )
2897         # We found the default executable, but exeext='' is most
2898         # certainly right.
2899         break;;
2900     *.* )
2901         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2902         then :; else
2903            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2904         fi
2905         # We set ac_cv_exeext here because the later test for it is not
2906         # safe: cross compilers may not add the suffix if given an `-o'
2907         # argument, so we may need to know it at that point already.
2908         # Even if this section looks crufty: it has the advantage of
2909         # actually working.
2910         break;;
2911     * )
2912         break;;
2913   esac
2914 done
2915 test "$ac_cv_exeext" = no && ac_cv_exeext=
2916
2917 else
2918   ac_file=''
2919 fi
2920
2921 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2922 $as_echo "$ac_file" >&6; }
2923 if test -z "$ac_file"; then
2924   $as_echo "$as_me: failed program was:" >&5
2925 sed 's/^/| /' conftest.$ac_ext >&5
2926
2927 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2929 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2930 See \`config.log' for more details." >&5
2931 $as_echo "$as_me: error: C compiler cannot create executables
2932 See \`config.log' for more details." >&2;}
2933    { (exit 77); exit 77; }; }; }
2934 fi
2935
2936 ac_exeext=$ac_cv_exeext
2937
2938 # Check that the compiler produces executables we can run.  If not, either
2939 # the compiler is broken, or we cross compile.
2940 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2941 $as_echo_n "checking whether the C compiler works... " >&6; }
2942 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2943 # If not cross compiling, check that we can run a simple program.
2944 if test "$cross_compiling" != yes; then
2945   if { ac_try='./$ac_file'
2946   { (case "(($ac_try" in
2947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948   *) ac_try_echo=$ac_try;;
2949 esac
2950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2951 $as_echo "$ac_try_echo") >&5
2952   (eval "$ac_try") 2>&5
2953   ac_status=$?
2954   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955   (exit $ac_status); }; }; then
2956     cross_compiling=no
2957   else
2958     if test "$cross_compiling" = maybe; then
2959         cross_compiling=yes
2960     else
2961         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2962 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2963 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2964 If you meant to cross compile, use \`--host'.
2965 See \`config.log' for more details." >&5
2966 $as_echo "$as_me: error: cannot run C compiled programs.
2967 If you meant to cross compile, use \`--host'.
2968 See \`config.log' for more details." >&2;}
2969    { (exit 1); exit 1; }; }; }
2970     fi
2971   fi
2972 fi
2973 { $as_echo "$as_me:$LINENO: result: yes" >&5
2974 $as_echo "yes" >&6; }
2975
2976 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2977 ac_clean_files=$ac_clean_files_save
2978 # Check that the compiler produces executables we can run.  If not, either
2979 # the compiler is broken, or we cross compile.
2980 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2981 $as_echo_n "checking whether we are cross compiling... " >&6; }
2982 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2983 $as_echo "$cross_compiling" >&6; }
2984
2985 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2986 $as_echo_n "checking for suffix of executables... " >&6; }
2987 if { (ac_try="$ac_link"
2988 case "(($ac_try" in
2989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990   *) ac_try_echo=$ac_try;;
2991 esac
2992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2993 $as_echo "$ac_try_echo") >&5
2994   (eval "$ac_link") 2>&5
2995   ac_status=$?
2996   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997   (exit $ac_status); }; then
2998   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2999 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3000 # work properly (i.e., refer to `conftest.exe'), while it won't with
3001 # `rm'.
3002 for ac_file in conftest.exe conftest conftest.*; do
3003   test -f "$ac_file" || continue
3004   case $ac_file in
3005     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3006     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3007           break;;
3008     * ) break;;
3009   esac
3010 done
3011 else
3012   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3013 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3014 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3015 See \`config.log' for more details." >&5
3016 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3017 See \`config.log' for more details." >&2;}
3018    { (exit 1); exit 1; }; }; }
3019 fi
3020
3021 rm -f conftest$ac_cv_exeext
3022 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3023 $as_echo "$ac_cv_exeext" >&6; }
3024
3025 rm -f conftest.$ac_ext
3026 EXEEXT=$ac_cv_exeext
3027 ac_exeext=$EXEEXT
3028 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3029 $as_echo_n "checking for suffix of object files... " >&6; }
3030 if test "${ac_cv_objext+set}" = set; then
3031   $as_echo_n "(cached) " >&6
3032 else
3033   cat >conftest.$ac_ext <<_ACEOF
3034 /* confdefs.h.  */
3035 _ACEOF
3036 cat confdefs.h >>conftest.$ac_ext
3037 cat >>conftest.$ac_ext <<_ACEOF
3038 /* end confdefs.h.  */
3039
3040 int
3041 main ()
3042 {
3043
3044   ;
3045   return 0;
3046 }
3047 _ACEOF
3048 rm -f conftest.o conftest.obj
3049 if { (ac_try="$ac_compile"
3050 case "(($ac_try" in
3051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052   *) ac_try_echo=$ac_try;;
3053 esac
3054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3055 $as_echo "$ac_try_echo") >&5
3056   (eval "$ac_compile") 2>&5
3057   ac_status=$?
3058   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059   (exit $ac_status); }; then
3060   for ac_file in conftest.o conftest.obj conftest.*; do
3061   test -f "$ac_file" || continue;
3062   case $ac_file in
3063     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3064     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3065        break;;
3066   esac
3067 done
3068 else
3069   $as_echo "$as_me: failed program was:" >&5
3070 sed 's/^/| /' conftest.$ac_ext >&5
3071
3072 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3073 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3074 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3075 See \`config.log' for more details." >&5
3076 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3077 See \`config.log' for more details." >&2;}
3078    { (exit 1); exit 1; }; }; }
3079 fi
3080
3081 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3082 fi
3083 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3084 $as_echo "$ac_cv_objext" >&6; }
3085 OBJEXT=$ac_cv_objext
3086 ac_objext=$OBJEXT
3087 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3088 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3089 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3090   $as_echo_n "(cached) " >&6
3091 else
3092   cat >conftest.$ac_ext <<_ACEOF
3093 /* confdefs.h.  */
3094 _ACEOF
3095 cat confdefs.h >>conftest.$ac_ext
3096 cat >>conftest.$ac_ext <<_ACEOF
3097 /* end confdefs.h.  */
3098
3099 int
3100 main ()
3101 {
3102 #ifndef __GNUC__
3103        choke me
3104 #endif
3105
3106   ;
3107   return 0;
3108 }
3109 _ACEOF
3110 rm -f conftest.$ac_objext
3111 if { (ac_try="$ac_compile"
3112 case "(($ac_try" in
3113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114   *) ac_try_echo=$ac_try;;
3115 esac
3116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3117 $as_echo "$ac_try_echo") >&5
3118   (eval "$ac_compile") 2>conftest.er1
3119   ac_status=$?
3120   grep -v '^ *+' conftest.er1 >conftest.err
3121   rm -f conftest.er1
3122   cat conftest.err >&5
3123   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124   (exit $ac_status); } && {
3125          test -z "$ac_c_werror_flag" ||
3126          test ! -s conftest.err
3127        } && test -s conftest.$ac_objext; then
3128   ac_compiler_gnu=yes
3129 else
3130   $as_echo "$as_me: failed program was:" >&5
3131 sed 's/^/| /' conftest.$ac_ext >&5
3132
3133         ac_compiler_gnu=no
3134 fi
3135
3136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3137 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3138
3139 fi
3140 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3141 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3142 if test $ac_compiler_gnu = yes; then
3143   GCC=yes
3144 else
3145   GCC=
3146 fi
3147 ac_test_CFLAGS=${CFLAGS+set}
3148 ac_save_CFLAGS=$CFLAGS
3149 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3150 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3151 if test "${ac_cv_prog_cc_g+set}" = set; then
3152   $as_echo_n "(cached) " >&6
3153 else
3154   ac_save_c_werror_flag=$ac_c_werror_flag
3155    ac_c_werror_flag=yes
3156    ac_cv_prog_cc_g=no
3157    CFLAGS="-g"
3158    cat >conftest.$ac_ext <<_ACEOF
3159 /* confdefs.h.  */
3160 _ACEOF
3161 cat confdefs.h >>conftest.$ac_ext
3162 cat >>conftest.$ac_ext <<_ACEOF
3163 /* end confdefs.h.  */
3164
3165 int
3166 main ()
3167 {
3168
3169   ;
3170   return 0;
3171 }
3172 _ACEOF
3173 rm -f conftest.$ac_objext
3174 if { (ac_try="$ac_compile"
3175 case "(($ac_try" in
3176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177   *) ac_try_echo=$ac_try;;
3178 esac
3179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3180 $as_echo "$ac_try_echo") >&5
3181   (eval "$ac_compile") 2>conftest.er1
3182   ac_status=$?
3183   grep -v '^ *+' conftest.er1 >conftest.err
3184   rm -f conftest.er1
3185   cat conftest.err >&5
3186   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187   (exit $ac_status); } && {
3188          test -z "$ac_c_werror_flag" ||
3189          test ! -s conftest.err
3190        } && test -s conftest.$ac_objext; then
3191   ac_cv_prog_cc_g=yes
3192 else
3193   $as_echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3195
3196         CFLAGS=""
3197       cat >conftest.$ac_ext <<_ACEOF
3198 /* confdefs.h.  */
3199 _ACEOF
3200 cat confdefs.h >>conftest.$ac_ext
3201 cat >>conftest.$ac_ext <<_ACEOF
3202 /* end confdefs.h.  */
3203
3204 int
3205 main ()
3206 {
3207
3208   ;
3209   return 0;
3210 }
3211 _ACEOF
3212 rm -f conftest.$ac_objext
3213 if { (ac_try="$ac_compile"
3214 case "(($ac_try" in
3215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3216   *) ac_try_echo=$ac_try;;
3217 esac
3218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3219 $as_echo "$ac_try_echo") >&5
3220   (eval "$ac_compile") 2>conftest.er1
3221   ac_status=$?
3222   grep -v '^ *+' conftest.er1 >conftest.err
3223   rm -f conftest.er1
3224   cat conftest.err >&5
3225   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226   (exit $ac_status); } && {
3227          test -z "$ac_c_werror_flag" ||
3228          test ! -s conftest.err
3229        } && test -s conftest.$ac_objext; then
3230   :
3231 else
3232   $as_echo "$as_me: failed program was:" >&5
3233 sed 's/^/| /' conftest.$ac_ext >&5
3234
3235         ac_c_werror_flag=$ac_save_c_werror_flag
3236          CFLAGS="-g"
3237          cat >conftest.$ac_ext <<_ACEOF
3238 /* confdefs.h.  */
3239 _ACEOF
3240 cat confdefs.h >>conftest.$ac_ext
3241 cat >>conftest.$ac_ext <<_ACEOF
3242 /* end confdefs.h.  */
3243
3244 int
3245 main ()
3246 {
3247
3248   ;
3249   return 0;
3250 }
3251 _ACEOF
3252 rm -f conftest.$ac_objext
3253 if { (ac_try="$ac_compile"
3254 case "(($ac_try" in
3255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3256   *) ac_try_echo=$ac_try;;
3257 esac
3258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3259 $as_echo "$ac_try_echo") >&5
3260   (eval "$ac_compile") 2>conftest.er1
3261   ac_status=$?
3262   grep -v '^ *+' conftest.er1 >conftest.err
3263   rm -f conftest.er1
3264   cat conftest.err >&5
3265   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266   (exit $ac_status); } && {
3267          test -z "$ac_c_werror_flag" ||
3268          test ! -s conftest.err
3269        } && test -s conftest.$ac_objext; then
3270   ac_cv_prog_cc_g=yes
3271 else
3272   $as_echo "$as_me: failed program was:" >&5
3273 sed 's/^/| /' conftest.$ac_ext >&5
3274
3275
3276 fi
3277
3278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3279 fi
3280
3281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3282 fi
3283
3284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3285    ac_c_werror_flag=$ac_save_c_werror_flag
3286 fi
3287 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3288 $as_echo "$ac_cv_prog_cc_g" >&6; }
3289 if test "$ac_test_CFLAGS" = set; then
3290   CFLAGS=$ac_save_CFLAGS
3291 elif test $ac_cv_prog_cc_g = yes; then
3292   if test "$GCC" = yes; then
3293     CFLAGS="-g -O2"
3294   else
3295     CFLAGS="-g"
3296   fi
3297 else
3298   if test "$GCC" = yes; then
3299     CFLAGS="-O2"
3300   else
3301     CFLAGS=
3302   fi
3303 fi
3304 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3305 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3306 if test "${ac_cv_prog_cc_c89+set}" = set; then
3307   $as_echo_n "(cached) " >&6
3308 else
3309   ac_cv_prog_cc_c89=no
3310 ac_save_CC=$CC
3311 cat >conftest.$ac_ext <<_ACEOF
3312 /* confdefs.h.  */
3313 _ACEOF
3314 cat confdefs.h >>conftest.$ac_ext
3315 cat >>conftest.$ac_ext <<_ACEOF
3316 /* end confdefs.h.  */
3317 #include <stdarg.h>
3318 #include <stdio.h>
3319 #include <sys/types.h>
3320 #include <sys/stat.h>
3321 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3322 struct buf { int x; };
3323 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3324 static char *e (p, i)
3325      char **p;
3326      int i;
3327 {
3328   return p[i];
3329 }
3330 static char *f (char * (*g) (char **, int), char **p, ...)
3331 {
3332   char *s;
3333   va_list v;
3334   va_start (v,p);
3335   s = g (p, va_arg (v,int));
3336   va_end (v);
3337   return s;
3338 }
3339
3340 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3341    function prototypes and stuff, but not '\xHH' hex character constants.
3342    These don't provoke an error unfortunately, instead are silently treated
3343    as 'x'.  The following induces an error, until -std is added to get
3344    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3345    array size at least.  It's necessary to write '\x00'==0 to get something
3346    that's true only with -std.  */
3347 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3348
3349 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3350    inside strings and character constants.  */
3351 #define FOO(x) 'x'
3352 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3353
3354 int test (int i, double x);
3355 struct s1 {int (*f) (int a);};
3356 struct s2 {int (*f) (double a);};
3357 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3358 int argc;
3359 char **argv;
3360 int
3361 main ()
3362 {
3363 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3364   ;
3365   return 0;
3366 }
3367 _ACEOF
3368 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3369         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3370 do
3371   CC="$ac_save_CC $ac_arg"
3372   rm -f conftest.$ac_objext
3373 if { (ac_try="$ac_compile"
3374 case "(($ac_try" in
3375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376   *) ac_try_echo=$ac_try;;
3377 esac
3378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3379 $as_echo "$ac_try_echo") >&5
3380   (eval "$ac_compile") 2>conftest.er1
3381   ac_status=$?
3382   grep -v '^ *+' conftest.er1 >conftest.err
3383   rm -f conftest.er1
3384   cat conftest.err >&5
3385   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386   (exit $ac_status); } && {
3387          test -z "$ac_c_werror_flag" ||
3388          test ! -s conftest.err
3389        } && test -s conftest.$ac_objext; then
3390   ac_cv_prog_cc_c89=$ac_arg
3391 else
3392   $as_echo "$as_me: failed program was:" >&5
3393 sed 's/^/| /' conftest.$ac_ext >&5
3394
3395
3396 fi
3397
3398 rm -f core conftest.err conftest.$ac_objext
3399   test "x$ac_cv_prog_cc_c89" != "xno" && break
3400 done
3401 rm -f conftest.$ac_ext
3402 CC=$ac_save_CC
3403
3404 fi
3405 # AC_CACHE_VAL
3406 case "x$ac_cv_prog_cc_c89" in
3407   x)
3408     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3409 $as_echo "none needed" >&6; } ;;
3410   xno)
3411     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3412 $as_echo "unsupported" >&6; } ;;
3413   *)
3414     CC="$CC $ac_cv_prog_cc_c89"
3415     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3416 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3417 esac
3418
3419
3420 ac_ext=c
3421 ac_cpp='$CPP $CPPFLAGS'
3422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3425 DEPDIR="${am__leading_dot}deps"
3426
3427 ac_config_commands="$ac_config_commands depfiles"
3428
3429
3430 am_make=${MAKE-make}
3431 cat > confinc << 'END'
3432 am__doit:
3433         @echo done
3434 .PHONY: am__doit
3435 END
3436 # If we don't find an include directive, just comment out the code.
3437 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3438 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3439 am__include="#"
3440 am__quote=
3441 _am_result=none
3442 # First try GNU make style include.
3443 echo "include confinc" > confmf
3444 # We grep out `Entering directory' and `Leaving directory'
3445 # messages which can occur if `w' ends up in MAKEFLAGS.
3446 # In particular we don't look at `^make:' because GNU make might
3447 # be invoked under some other name (usually "gmake"), in which
3448 # case it prints its new name instead of `make'.
3449 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3450    am__include=include
3451    am__quote=
3452    _am_result=GNU
3453 fi
3454 # Now try BSD make style include.
3455 if test "$am__include" = "#"; then
3456    echo '.include "confinc"' > confmf
3457    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3458       am__include=.include
3459       am__quote="\""
3460       _am_result=BSD
3461    fi
3462 fi
3463
3464
3465 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3466 $as_echo "$_am_result" >&6; }
3467 rm -f confinc confmf
3468
3469 # Check whether --enable-dependency-tracking was given.
3470 if test "${enable_dependency_tracking+set}" = set; then
3471   enableval=$enable_dependency_tracking;
3472 fi
3473
3474 if test "x$enable_dependency_tracking" != xno; then
3475   am_depcomp="$ac_aux_dir/depcomp"
3476   AMDEPBACKSLASH='\'
3477 fi
3478  if test "x$enable_dependency_tracking" != xno; then
3479   AMDEP_TRUE=
3480   AMDEP_FALSE='#'
3481 else
3482   AMDEP_TRUE='#'
3483   AMDEP_FALSE=
3484 fi
3485
3486
3487
3488 depcc="$CC"   am_compiler_list=
3489
3490 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3491 $as_echo_n "checking dependency style of $depcc... " >&6; }
3492 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3493   $as_echo_n "(cached) " >&6
3494 else
3495   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3496   # We make a subdir and do the tests there.  Otherwise we can end up
3497   # making bogus files that we don't know about and never remove.  For
3498   # instance it was reported that on HP-UX the gcc test will end up
3499   # making a dummy file named `D' -- because `-MD' means `put the output
3500   # in D'.
3501   mkdir conftest.dir
3502   # Copy depcomp to subdir because otherwise we won't find it if we're
3503   # using a relative directory.
3504   cp "$am_depcomp" conftest.dir
3505   cd conftest.dir
3506   # We will build objects and dependencies in a subdirectory because
3507   # it helps to detect inapplicable dependency modes.  For instance
3508   # both Tru64's cc and ICC support -MD to output dependencies as a
3509   # side effect of compilation, but ICC will put the dependencies in
3510   # the current directory while Tru64 will put them in the object
3511   # directory.
3512   mkdir sub
3513
3514   am_cv_CC_dependencies_compiler_type=none
3515   if test "$am_compiler_list" = ""; then
3516      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3517   fi
3518   for depmode in $am_compiler_list; do
3519     # Setup a source with many dependencies, because some compilers
3520     # like to wrap large dependency lists on column 80 (with \), and
3521     # we should not choose a depcomp mode which is confused by this.
3522     #
3523     # We need to recreate these files for each test, as the compiler may
3524     # overwrite some of them when testing with obscure command lines.
3525     # This happens at least with the AIX C compiler.
3526     : > sub/conftest.c
3527     for i in 1 2 3 4 5 6; do
3528       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3529       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3530       # Solaris 8's {/usr,}/bin/sh.
3531       touch sub/conftst$i.h
3532     done
3533     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3534
3535     case $depmode in
3536     nosideeffect)
3537       # after this tag, mechanisms are not by side-effect, so they'll
3538       # only be used when explicitly requested
3539       if test "x$enable_dependency_tracking" = xyes; then
3540         continue
3541       else
3542         break
3543       fi
3544       ;;
3545     none) break ;;
3546     esac
3547     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3548     # mode.  It turns out that the SunPro C++ compiler does not properly
3549     # handle `-M -o', and we need to detect this.
3550     if depmode=$depmode \
3551        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3552        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3553        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3554          >/dev/null 2>conftest.err &&
3555        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3556        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3557        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3558        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3559       # icc doesn't choke on unknown options, it will just issue warnings
3560       # or remarks (even with -Werror).  So we grep stderr for any message
3561       # that says an option was ignored or not supported.
3562       # When given -MP, icc 7.0 and 7.1 complain thusly:
3563       #   icc: Command line warning: ignoring option '-M'; no argument required
3564       # The diagnosis changed in icc 8.0:
3565       #   icc: Command line remark: option '-MP' not supported
3566       if (grep 'ignoring option' conftest.err ||
3567           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3568         am_cv_CC_dependencies_compiler_type=$depmode
3569         break
3570       fi
3571     fi
3572   done
3573
3574   cd ..
3575   rm -rf conftest.dir
3576 else
3577   am_cv_CC_dependencies_compiler_type=none
3578 fi
3579
3580 fi
3581 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3582 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3583 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3584
3585  if
3586   test "x$enable_dependency_tracking" != xno \
3587   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3588   am__fastdepCC_TRUE=
3589   am__fastdepCC_FALSE='#'
3590 else
3591   am__fastdepCC_TRUE='#'
3592   am__fastdepCC_FALSE=
3593 fi
3594
3595
3596 ac_ext=c
3597 ac_cpp='$CPP $CPPFLAGS'
3598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3601 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3602 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3603 # On Suns, sometimes $CPP names a directory.
3604 if test -n "$CPP" && test -d "$CPP"; then
3605   CPP=
3606 fi
3607 if test -z "$CPP"; then
3608   if test "${ac_cv_prog_CPP+set}" = set; then
3609   $as_echo_n "(cached) " >&6
3610 else
3611       # Double quotes because CPP needs to be expanded
3612     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3613     do
3614       ac_preproc_ok=false
3615 for ac_c_preproc_warn_flag in '' yes
3616 do
3617   # Use a header file that comes with gcc, so configuring glibc
3618   # with a fresh cross-compiler works.
3619   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3620   # <limits.h> exists even on freestanding compilers.
3621   # On the NeXT, cc -E runs the code through the compiler's parser,
3622   # not just through cpp. "Syntax error" is here to catch this case.
3623   cat >conftest.$ac_ext <<_ACEOF
3624 /* confdefs.h.  */
3625 _ACEOF
3626 cat confdefs.h >>conftest.$ac_ext
3627 cat >>conftest.$ac_ext <<_ACEOF
3628 /* end confdefs.h.  */
3629 #ifdef __STDC__
3630 # include <limits.h>
3631 #else
3632 # include <assert.h>
3633 #endif
3634                      Syntax error
3635 _ACEOF
3636 if { (ac_try="$ac_cpp conftest.$ac_ext"
3637 case "(($ac_try" in
3638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639   *) ac_try_echo=$ac_try;;
3640 esac
3641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3642 $as_echo "$ac_try_echo") >&5
3643   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3644   ac_status=$?
3645   grep -v '^ *+' conftest.er1 >conftest.err
3646   rm -f conftest.er1
3647   cat conftest.err >&5
3648   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649   (exit $ac_status); } >/dev/null && {
3650          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3651          test ! -s conftest.err
3652        }; then
3653   :
3654 else
3655   $as_echo "$as_me: failed program was:" >&5
3656 sed 's/^/| /' conftest.$ac_ext >&5
3657
3658   # Broken: fails on valid input.
3659 continue
3660 fi
3661
3662 rm -f conftest.err conftest.$ac_ext
3663
3664   # OK, works on sane cases.  Now check whether nonexistent headers
3665   # can be detected and how.
3666   cat >conftest.$ac_ext <<_ACEOF
3667 /* confdefs.h.  */
3668 _ACEOF
3669 cat confdefs.h >>conftest.$ac_ext
3670 cat >>conftest.$ac_ext <<_ACEOF
3671 /* end confdefs.h.  */
3672 #include <ac_nonexistent.h>
3673 _ACEOF
3674 if { (ac_try="$ac_cpp conftest.$ac_ext"
3675 case "(($ac_try" in
3676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3677   *) ac_try_echo=$ac_try;;
3678 esac
3679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3680 $as_echo "$ac_try_echo") >&5
3681   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3682   ac_status=$?
3683   grep -v '^ *+' conftest.er1 >conftest.err
3684   rm -f conftest.er1
3685   cat conftest.err >&5
3686   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687   (exit $ac_status); } >/dev/null && {
3688          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3689          test ! -s conftest.err
3690        }; then
3691   # Broken: success on invalid input.
3692 continue
3693 else
3694   $as_echo "$as_me: failed program was:" >&5
3695 sed 's/^/| /' conftest.$ac_ext >&5
3696
3697   # Passes both tests.
3698 ac_preproc_ok=:
3699 break
3700 fi
3701
3702 rm -f conftest.err conftest.$ac_ext
3703
3704 done
3705 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3706 rm -f conftest.err conftest.$ac_ext
3707 if $ac_preproc_ok; then
3708   break
3709 fi
3710
3711     done
3712     ac_cv_prog_CPP=$CPP
3713
3714 fi
3715   CPP=$ac_cv_prog_CPP
3716 else
3717   ac_cv_prog_CPP=$CPP
3718 fi
3719 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3720 $as_echo "$CPP" >&6; }
3721 ac_preproc_ok=false
3722 for ac_c_preproc_warn_flag in '' yes
3723 do
3724   # Use a header file that comes with gcc, so configuring glibc
3725   # with a fresh cross-compiler works.
3726   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3727   # <limits.h> exists even on freestanding compilers.
3728   # On the NeXT, cc -E runs the code through the compiler's parser,
3729   # not just through cpp. "Syntax error" is here to catch this case.
3730   cat >conftest.$ac_ext <<_ACEOF
3731 /* confdefs.h.  */
3732 _ACEOF
3733 cat confdefs.h >>conftest.$ac_ext
3734 cat >>conftest.$ac_ext <<_ACEOF
3735 /* end confdefs.h.  */
3736 #ifdef __STDC__
3737 # include <limits.h>
3738 #else
3739 # include <assert.h>
3740 #endif
3741                      Syntax error
3742 _ACEOF
3743 if { (ac_try="$ac_cpp conftest.$ac_ext"
3744 case "(($ac_try" in
3745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3746   *) ac_try_echo=$ac_try;;
3747 esac
3748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3749 $as_echo "$ac_try_echo") >&5
3750   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3751   ac_status=$?
3752   grep -v '^ *+' conftest.er1 >conftest.err
3753   rm -f conftest.er1
3754   cat conftest.err >&5
3755   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756   (exit $ac_status); } >/dev/null && {
3757          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3758          test ! -s conftest.err
3759        }; then
3760   :
3761 else
3762   $as_echo "$as_me: failed program was:" >&5
3763 sed 's/^/| /' conftest.$ac_ext >&5
3764
3765   # Broken: fails on valid input.
3766 continue
3767 fi
3768
3769 rm -f conftest.err conftest.$ac_ext
3770
3771   # OK, works on sane cases.  Now check whether nonexistent headers
3772   # can be detected and how.
3773   cat >conftest.$ac_ext <<_ACEOF
3774 /* confdefs.h.  */
3775 _ACEOF
3776 cat confdefs.h >>conftest.$ac_ext
3777 cat >>conftest.$ac_ext <<_ACEOF
3778 /* end confdefs.h.  */
3779 #include <ac_nonexistent.h>
3780 _ACEOF
3781 if { (ac_try="$ac_cpp conftest.$ac_ext"
3782 case "(($ac_try" in
3783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3784   *) ac_try_echo=$ac_try;;
3785 esac
3786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3787 $as_echo "$ac_try_echo") >&5
3788   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3789   ac_status=$?
3790   grep -v '^ *+' conftest.er1 >conftest.err
3791   rm -f conftest.er1
3792   cat conftest.err >&5
3793   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794   (exit $ac_status); } >/dev/null && {
3795          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3796          test ! -s conftest.err
3797        }; then
3798   # Broken: success on invalid input.
3799 continue
3800 else
3801   $as_echo "$as_me: failed program was:" >&5
3802 sed 's/^/| /' conftest.$ac_ext >&5
3803
3804   # Passes both tests.
3805 ac_preproc_ok=:
3806 break
3807 fi
3808
3809 rm -f conftest.err conftest.$ac_ext
3810
3811 done
3812 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3813 rm -f conftest.err conftest.$ac_ext
3814 if $ac_preproc_ok; then
3815   :
3816 else
3817   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3819 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3820 See \`config.log' for more details." >&5
3821 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3822 See \`config.log' for more details." >&2;}
3823    { (exit 1); exit 1; }; }; }
3824 fi
3825
3826 ac_ext=c
3827 ac_cpp='$CPP $CPPFLAGS'
3828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3831
3832 # Find a good install program.  We prefer a C program (faster),
3833 # so one script is as good as another.  But avoid the broken or
3834 # incompatible versions:
3835 # SysV /etc/install, /usr/sbin/install
3836 # SunOS /usr/etc/install
3837 # IRIX /sbin/install
3838 # AIX /bin/install
3839 # AmigaOS /C/install, which installs bootblocks on floppy discs
3840 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3841 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3842 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3843 # OS/2's system install, which has a completely different semantic
3844 # ./install, which can be erroneously created by make from ./install.sh.
3845 # Reject install programs that cannot install multiple files.
3846 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3847 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3848 if test -z "$INSTALL"; then
3849 if test "${ac_cv_path_install+set}" = set; then
3850   $as_echo_n "(cached) " >&6
3851 else
3852   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853 for as_dir in $PATH
3854 do
3855   IFS=$as_save_IFS
3856   test -z "$as_dir" && as_dir=.
3857   # Account for people who put trailing slashes in PATH elements.
3858 case $as_dir/ in
3859   ./ | .// | /cC/* | \
3860   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3861   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3862   /usr/ucb/* ) ;;
3863   *)
3864     # OSF1 and SCO ODT 3.0 have their own names for install.
3865     # Don't use installbsd from OSF since it installs stuff as root
3866     # by default.
3867     for ac_prog in ginstall scoinst install; do
3868       for ac_exec_ext in '' $ac_executable_extensions; do
3869         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3870           if test $ac_prog = install &&
3871             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3872             # AIX install.  It has an incompatible calling convention.
3873             :
3874           elif test $ac_prog = install &&
3875             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3876             # program-specific install script used by HP pwplus--don't use.
3877             :
3878           else
3879             rm -rf conftest.one conftest.two conftest.dir
3880             echo one > conftest.one
3881             echo two > conftest.two
3882             mkdir conftest.dir
3883             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3884               test -s conftest.one && test -s conftest.two &&
3885               test -s conftest.dir/conftest.one &&
3886               test -s conftest.dir/conftest.two
3887             then
3888               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3889               break 3
3890             fi
3891           fi
3892         fi
3893       done
3894     done
3895     ;;
3896 esac
3897
3898 done
3899 IFS=$as_save_IFS
3900
3901 rm -rf conftest.one conftest.two conftest.dir
3902
3903 fi
3904   if test "${ac_cv_path_install+set}" = set; then
3905     INSTALL=$ac_cv_path_install
3906   else
3907     # As a last resort, use the slow shell script.  Don't cache a
3908     # value for INSTALL within a source directory, because that will
3909     # break other packages using the cache if that directory is
3910     # removed, or if the value is a relative name.
3911     INSTALL=$ac_install_sh
3912   fi
3913 fi
3914 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3915 $as_echo "$INSTALL" >&6; }
3916
3917 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3918 # It thinks the first close brace ends the variable substitution.
3919 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3920
3921 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3922
3923 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3924
3925 # Make sure we can run config.sub.
3926 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3927   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3928 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3929    { (exit 1); exit 1; }; }
3930
3931 { $as_echo "$as_me:$LINENO: checking build system type" >&5
3932 $as_echo_n "checking build system type... " >&6; }
3933 if test "${ac_cv_build+set}" = set; then
3934   $as_echo_n "(cached) " >&6
3935 else
3936   ac_build_alias=$build_alias
3937 test "x$ac_build_alias" = x &&
3938   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3939 test "x$ac_build_alias" = x &&
3940   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3941 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3942    { (exit 1); exit 1; }; }
3943 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3944   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3945 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3946    { (exit 1); exit 1; }; }
3947
3948 fi
3949 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3950 $as_echo "$ac_cv_build" >&6; }
3951 case $ac_cv_build in
3952 *-*-*) ;;
3953 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3954 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
3955    { (exit 1); exit 1; }; };;
3956 esac
3957 build=$ac_cv_build
3958 ac_save_IFS=$IFS; IFS='-'
3959 set x $ac_cv_build
3960 shift
3961 build_cpu=$1
3962 build_vendor=$2
3963 shift; shift
3964 # Remember, the first character of IFS is used to create $*,
3965 # except with old shells:
3966 build_os=$*
3967 IFS=$ac_save_IFS
3968 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3969
3970
3971 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3972 $as_echo_n "checking host system type... " >&6; }
3973 if test "${ac_cv_host+set}" = set; then
3974   $as_echo_n "(cached) " >&6
3975 else
3976   if test "x$host_alias" = x; then
3977   ac_cv_host=$ac_cv_build
3978 else
3979   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3980     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3981 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3982    { (exit 1); exit 1; }; }
3983 fi
3984
3985 fi
3986 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3987 $as_echo "$ac_cv_host" >&6; }
3988 case $ac_cv_host in
3989 *-*-*) ;;
3990 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3991 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3992    { (exit 1); exit 1; }; };;
3993 esac
3994 host=$ac_cv_host
3995 ac_save_IFS=$IFS; IFS='-'
3996 set x $ac_cv_host
3997 shift
3998 host_cpu=$1
3999 host_vendor=$2
4000 shift; shift
4001 # Remember, the first character of IFS is used to create $*,
4002 # except with old shells:
4003 host_os=$*
4004 IFS=$ac_save_IFS
4005 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4006
4007
4008
4009
4010 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4011 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4012 if test "${ac_cv_path_GREP+set}" = set; then
4013   $as_echo_n "(cached) " >&6
4014 else
4015   if test -z "$GREP"; then
4016   ac_path_GREP_found=false
4017   # Loop through the user's path and test for each of PROGNAME-LIST
4018   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4020 do
4021   IFS=$as_save_IFS
4022   test -z "$as_dir" && as_dir=.
4023   for ac_prog in grep ggrep; do
4024     for ac_exec_ext in '' $ac_executable_extensions; do
4025       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4026       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4027 # Check for GNU ac_path_GREP and select it if it is found.
4028   # Check for GNU $ac_path_GREP
4029 case `"$ac_path_GREP" --version 2>&1` in
4030 *GNU*)
4031   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4032 *)
4033   ac_count=0
4034   $as_echo_n 0123456789 >"conftest.in"
4035   while :
4036   do
4037     cat "conftest.in" "conftest.in" >"conftest.tmp"
4038     mv "conftest.tmp" "conftest.in"
4039     cp "conftest.in" "conftest.nl"
4040     $as_echo 'GREP' >> "conftest.nl"
4041     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4042     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4043     ac_count=`expr $ac_count + 1`
4044     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4045       # Best one so far, save it but keep looking for a better one
4046       ac_cv_path_GREP="$ac_path_GREP"
4047       ac_path_GREP_max=$ac_count
4048     fi
4049     # 10*(2^10) chars as input seems more than enough
4050     test $ac_count -gt 10 && break
4051   done
4052   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4053 esac
4054
4055       $ac_path_GREP_found && break 3
4056     done
4057   done
4058 done
4059 IFS=$as_save_IFS
4060   if test -z "$ac_cv_path_GREP"; then
4061     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4062 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4063    { (exit 1); exit 1; }; }
4064   fi
4065 else
4066   ac_cv_path_GREP=$GREP
4067 fi
4068
4069 fi
4070 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4071 $as_echo "$ac_cv_path_GREP" >&6; }
4072  GREP="$ac_cv_path_GREP"
4073
4074
4075 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4076 $as_echo_n "checking for egrep... " >&6; }
4077 if test "${ac_cv_path_EGREP+set}" = set; then
4078   $as_echo_n "(cached) " >&6
4079 else
4080   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4081    then ac_cv_path_EGREP="$GREP -E"
4082    else
4083      if test -z "$EGREP"; then
4084   ac_path_EGREP_found=false
4085   # Loop through the user's path and test for each of PROGNAME-LIST
4086   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4088 do
4089   IFS=$as_save_IFS
4090   test -z "$as_dir" && as_dir=.
4091   for ac_prog in egrep; do
4092     for ac_exec_ext in '' $ac_executable_extensions; do
4093       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4094       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4095 # Check for GNU ac_path_EGREP and select it if it is found.
4096   # Check for GNU $ac_path_EGREP
4097 case `"$ac_path_EGREP" --version 2>&1` in
4098 *GNU*)
4099   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4100 *)
4101   ac_count=0
4102   $as_echo_n 0123456789 >"conftest.in"
4103   while :
4104   do
4105     cat "conftest.in" "conftest.in" >"conftest.tmp"
4106     mv "conftest.tmp" "conftest.in"
4107     cp "conftest.in" "conftest.nl"
4108     $as_echo 'EGREP' >> "conftest.nl"
4109     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4110     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4111     ac_count=`expr $ac_count + 1`
4112     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4113       # Best one so far, save it but keep looking for a better one
4114       ac_cv_path_EGREP="$ac_path_EGREP"
4115       ac_path_EGREP_max=$ac_count
4116     fi
4117     # 10*(2^10) chars as input seems more than enough
4118     test $ac_count -gt 10 && break
4119   done
4120   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4121 esac
4122
4123       $ac_path_EGREP_found && break 3
4124     done
4125   done
4126 done
4127 IFS=$as_save_IFS
4128   if test -z "$ac_cv_path_EGREP"; then
4129     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4130 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4131    { (exit 1); exit 1; }; }
4132   fi
4133 else
4134   ac_cv_path_EGREP=$EGREP
4135 fi
4136
4137    fi
4138 fi
4139 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4140 $as_echo "$ac_cv_path_EGREP" >&6; }
4141  EGREP="$ac_cv_path_EGREP"
4142
4143
4144 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4145 $as_echo_n "checking for ANSI C header files... " >&6; }
4146 if test "${ac_cv_header_stdc+set}" = set; then
4147   $as_echo_n "(cached) " >&6
4148 else
4149   cat >conftest.$ac_ext <<_ACEOF
4150 /* confdefs.h.  */
4151 _ACEOF
4152 cat confdefs.h >>conftest.$ac_ext
4153 cat >>conftest.$ac_ext <<_ACEOF
4154 /* end confdefs.h.  */
4155 #include <stdlib.h>
4156 #include <stdarg.h>
4157 #include <string.h>
4158 #include <float.h>
4159
4160 int
4161 main ()
4162 {
4163
4164   ;
4165   return 0;
4166 }
4167 _ACEOF
4168 rm -f conftest.$ac_objext
4169 if { (ac_try="$ac_compile"
4170 case "(($ac_try" in
4171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172   *) ac_try_echo=$ac_try;;
4173 esac
4174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4175 $as_echo "$ac_try_echo") >&5
4176   (eval "$ac_compile") 2>conftest.er1
4177   ac_status=$?
4178   grep -v '^ *+' conftest.er1 >conftest.err
4179   rm -f conftest.er1
4180   cat conftest.err >&5
4181   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182   (exit $ac_status); } && {
4183          test -z "$ac_c_werror_flag" ||
4184          test ! -s conftest.err
4185        } && test -s conftest.$ac_objext; then
4186   ac_cv_header_stdc=yes
4187 else
4188   $as_echo "$as_me: failed program was:" >&5
4189 sed 's/^/| /' conftest.$ac_ext >&5
4190
4191         ac_cv_header_stdc=no
4192 fi
4193
4194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4195
4196 if test $ac_cv_header_stdc = yes; then
4197   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4198   cat >conftest.$ac_ext <<_ACEOF
4199 /* confdefs.h.  */
4200 _ACEOF
4201 cat confdefs.h >>conftest.$ac_ext
4202 cat >>conftest.$ac_ext <<_ACEOF
4203 /* end confdefs.h.  */
4204 #include <string.h>
4205
4206 _ACEOF
4207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4208   $EGREP "memchr" >/dev/null 2>&1; then
4209   :
4210 else
4211   ac_cv_header_stdc=no
4212 fi
4213 rm -f conftest*
4214
4215 fi
4216
4217 if test $ac_cv_header_stdc = yes; then
4218   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4219   cat >conftest.$ac_ext <<_ACEOF
4220 /* confdefs.h.  */
4221 _ACEOF
4222 cat confdefs.h >>conftest.$ac_ext
4223 cat >>conftest.$ac_ext <<_ACEOF
4224 /* end confdefs.h.  */
4225 #include <stdlib.h>
4226
4227 _ACEOF
4228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4229   $EGREP "free" >/dev/null 2>&1; then
4230   :
4231 else
4232   ac_cv_header_stdc=no
4233 fi
4234 rm -f conftest*
4235
4236 fi
4237
4238 if test $ac_cv_header_stdc = yes; then
4239   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4240   if test "$cross_compiling" = yes; then
4241   :
4242 else
4243   cat >conftest.$ac_ext <<_ACEOF
4244 /* confdefs.h.  */
4245 _ACEOF
4246 cat confdefs.h >>conftest.$ac_ext
4247 cat >>conftest.$ac_ext <<_ACEOF
4248 /* end confdefs.h.  */
4249 #include <ctype.h>
4250 #include <stdlib.h>
4251 #if ((' ' & 0x0FF) == 0x020)
4252 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4253 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4254 #else
4255 # define ISLOWER(c) \
4256                    (('a' <= (c) && (c) <= 'i') \
4257                      || ('j' <= (c) && (c) <= 'r') \
4258                      || ('s' <= (c) && (c) <= 'z'))
4259 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4260 #endif
4261
4262 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4263 int
4264 main ()
4265 {
4266   int i;
4267   for (i = 0; i < 256; i++)
4268     if (XOR (islower (i), ISLOWER (i))
4269         || toupper (i) != TOUPPER (i))
4270       return 2;
4271   return 0;
4272 }
4273 _ACEOF
4274 rm -f conftest$ac_exeext
4275 if { (ac_try="$ac_link"
4276 case "(($ac_try" in
4277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4278   *) ac_try_echo=$ac_try;;
4279 esac
4280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4281 $as_echo "$ac_try_echo") >&5
4282   (eval "$ac_link") 2>&5
4283   ac_status=$?
4284   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4286   { (case "(($ac_try" in
4287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288   *) ac_try_echo=$ac_try;;
4289 esac
4290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4291 $as_echo "$ac_try_echo") >&5
4292   (eval "$ac_try") 2>&5
4293   ac_status=$?
4294   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295   (exit $ac_status); }; }; then
4296   :
4297 else
4298   $as_echo "$as_me: program exited with status $ac_status" >&5
4299 $as_echo "$as_me: failed program was:" >&5
4300 sed 's/^/| /' conftest.$ac_ext >&5
4301
4302 ( exit $ac_status )
4303 ac_cv_header_stdc=no
4304 fi
4305 rm -rf conftest.dSYM
4306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4307 fi
4308
4309
4310 fi
4311 fi
4312 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4313 $as_echo "$ac_cv_header_stdc" >&6; }
4314 if test $ac_cv_header_stdc = yes; then
4315
4316 cat >>confdefs.h <<\_ACEOF
4317 #define STDC_HEADERS 1
4318 _ACEOF
4319
4320 fi
4321
4322 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4333                   inttypes.h stdint.h unistd.h
4334 do
4335 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4336 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4337 $as_echo_n "checking for $ac_header... " >&6; }
4338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4339   $as_echo_n "(cached) " >&6
4340 else
4341   cat >conftest.$ac_ext <<_ACEOF
4342 /* confdefs.h.  */
4343 _ACEOF
4344 cat confdefs.h >>conftest.$ac_ext
4345 cat >>conftest.$ac_ext <<_ACEOF
4346 /* end confdefs.h.  */
4347 $ac_includes_default
4348
4349 #include <$ac_header>
4350 _ACEOF
4351 rm -f conftest.$ac_objext
4352 if { (ac_try="$ac_compile"
4353 case "(($ac_try" in
4354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4355   *) ac_try_echo=$ac_try;;
4356 esac
4357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4358 $as_echo "$ac_try_echo") >&5
4359   (eval "$ac_compile") 2>conftest.er1
4360   ac_status=$?
4361   grep -v '^ *+' conftest.er1 >conftest.err
4362   rm -f conftest.er1
4363   cat conftest.err >&5
4364   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365   (exit $ac_status); } && {
4366          test -z "$ac_c_werror_flag" ||
4367          test ! -s conftest.err
4368        } && test -s conftest.$ac_objext; then
4369   eval "$as_ac_Header=yes"
4370 else
4371   $as_echo "$as_me: failed program was:" >&5
4372 sed 's/^/| /' conftest.$ac_ext >&5
4373
4374         eval "$as_ac_Header=no"
4375 fi
4376
4377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4378 fi
4379 ac_res=`eval 'as_val=${'$as_ac_Header'}
4380                  $as_echo "$as_val"'`
4381                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4382 $as_echo "$ac_res" >&6; }
4383 as_val=`eval 'as_val=${'$as_ac_Header'}
4384                  $as_echo "$as_val"'`
4385    if test "x$as_val" = x""yes; then
4386   cat >>confdefs.h <<_ACEOF
4387 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4388 _ACEOF
4389
4390 fi
4391
4392 done
4393
4394
4395
4396  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4397 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4398 if test "${ac_cv_c_bigendian+set}" = set; then
4399   $as_echo_n "(cached) " >&6
4400 else
4401   ac_cv_c_bigendian=unknown
4402     # See if we're dealing with a universal compiler.
4403     cat >conftest.$ac_ext <<_ACEOF
4404 /* confdefs.h.  */
4405 _ACEOF
4406 cat confdefs.h >>conftest.$ac_ext
4407 cat >>conftest.$ac_ext <<_ACEOF
4408 /* end confdefs.h.  */
4409 #ifndef __APPLE_CC__
4410                not a universal capable compiler
4411              #endif
4412              typedef int dummy;
4413
4414 _ACEOF
4415 rm -f conftest.$ac_objext
4416 if { (ac_try="$ac_compile"
4417 case "(($ac_try" in
4418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4419   *) ac_try_echo=$ac_try;;
4420 esac
4421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4422 $as_echo "$ac_try_echo") >&5
4423   (eval "$ac_compile") 2>conftest.er1
4424   ac_status=$?
4425   grep -v '^ *+' conftest.er1 >conftest.err
4426   rm -f conftest.er1
4427   cat conftest.err >&5
4428   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429   (exit $ac_status); } && {
4430          test -z "$ac_c_werror_flag" ||
4431          test ! -s conftest.err
4432        } && test -s conftest.$ac_objext; then
4433
4434         # Check for potential -arch flags.  It is not universal unless
4435         # there are some -arch flags.  Note that *ppc* also matches
4436         # ppc64.  This check is also rather less than ideal.
4437         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
4438           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
4439         esac
4440 else
4441   $as_echo "$as_me: failed program was:" >&5
4442 sed 's/^/| /' conftest.$ac_ext >&5
4443
4444
4445 fi
4446
4447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4448     if test $ac_cv_c_bigendian = unknown; then
4449       # See if sys/param.h defines the BYTE_ORDER macro.
4450       cat >conftest.$ac_ext <<_ACEOF
4451 /* confdefs.h.  */
4452 _ACEOF
4453 cat confdefs.h >>conftest.$ac_ext
4454 cat >>conftest.$ac_ext <<_ACEOF
4455 /* end confdefs.h.  */
4456 #include <sys/types.h>
4457              #include <sys/param.h>
4458
4459 int
4460 main ()
4461 {
4462 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4463                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4464                      && LITTLE_ENDIAN)
4465               bogus endian macros
4466              #endif
4467
4468   ;
4469   return 0;
4470 }
4471 _ACEOF
4472 rm -f conftest.$ac_objext
4473 if { (ac_try="$ac_compile"
4474 case "(($ac_try" in
4475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4476   *) ac_try_echo=$ac_try;;
4477 esac
4478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4479 $as_echo "$ac_try_echo") >&5
4480   (eval "$ac_compile") 2>conftest.er1
4481   ac_status=$?
4482   grep -v '^ *+' conftest.er1 >conftest.err
4483   rm -f conftest.er1
4484   cat conftest.err >&5
4485   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486   (exit $ac_status); } && {
4487          test -z "$ac_c_werror_flag" ||
4488          test ! -s conftest.err
4489        } && test -s conftest.$ac_objext; then
4490   # It does; now see whether it defined to BIG_ENDIAN or not.
4491          cat >conftest.$ac_ext <<_ACEOF
4492 /* confdefs.h.  */
4493 _ACEOF
4494 cat confdefs.h >>conftest.$ac_ext
4495 cat >>conftest.$ac_ext <<_ACEOF
4496 /* end confdefs.h.  */
4497 #include <sys/types.h>
4498                 #include <sys/param.h>
4499
4500 int
4501 main ()
4502 {
4503 #if BYTE_ORDER != BIG_ENDIAN
4504                  not big endian
4505                 #endif
4506
4507   ;
4508   return 0;
4509 }
4510 _ACEOF
4511 rm -f conftest.$ac_objext
4512 if { (ac_try="$ac_compile"
4513 case "(($ac_try" in
4514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4515   *) ac_try_echo=$ac_try;;
4516 esac
4517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4518 $as_echo "$ac_try_echo") >&5
4519   (eval "$ac_compile") 2>conftest.er1
4520   ac_status=$?
4521   grep -v '^ *+' conftest.er1 >conftest.err
4522   rm -f conftest.er1
4523   cat conftest.err >&5
4524   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525   (exit $ac_status); } && {
4526          test -z "$ac_c_werror_flag" ||
4527          test ! -s conftest.err
4528        } && test -s conftest.$ac_objext; then
4529   ac_cv_c_bigendian=yes
4530 else
4531   $as_echo "$as_me: failed program was:" >&5
4532 sed 's/^/| /' conftest.$ac_ext >&5
4533
4534         ac_cv_c_bigendian=no
4535 fi
4536
4537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4538 else
4539   $as_echo "$as_me: failed program was:" >&5
4540 sed 's/^/| /' conftest.$ac_ext >&5
4541
4542
4543 fi
4544
4545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4546     fi
4547     if test $ac_cv_c_bigendian = unknown; then
4548       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4549       cat >conftest.$ac_ext <<_ACEOF
4550 /* confdefs.h.  */
4551 _ACEOF
4552 cat confdefs.h >>conftest.$ac_ext
4553 cat >>conftest.$ac_ext <<_ACEOF
4554 /* end confdefs.h.  */
4555 #include <limits.h>
4556
4557 int
4558 main ()
4559 {
4560 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4561               bogus endian macros
4562              #endif
4563
4564   ;
4565   return 0;
4566 }
4567 _ACEOF
4568 rm -f conftest.$ac_objext
4569 if { (ac_try="$ac_compile"
4570 case "(($ac_try" in
4571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4572   *) ac_try_echo=$ac_try;;
4573 esac
4574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4575 $as_echo "$ac_try_echo") >&5
4576   (eval "$ac_compile") 2>conftest.er1
4577   ac_status=$?
4578   grep -v '^ *+' conftest.er1 >conftest.err
4579   rm -f conftest.er1
4580   cat conftest.err >&5
4581   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582   (exit $ac_status); } && {
4583          test -z "$ac_c_werror_flag" ||
4584          test ! -s conftest.err
4585        } && test -s conftest.$ac_objext; then
4586   # It does; now see whether it defined to _BIG_ENDIAN or not.
4587          cat >conftest.$ac_ext <<_ACEOF
4588 /* confdefs.h.  */
4589 _ACEOF
4590 cat confdefs.h >>conftest.$ac_ext
4591 cat >>conftest.$ac_ext <<_ACEOF
4592 /* end confdefs.h.  */
4593 #include <limits.h>
4594
4595 int
4596 main ()
4597 {
4598 #ifndef _BIG_ENDIAN
4599                  not big endian
4600                 #endif
4601
4602   ;
4603   return 0;
4604 }
4605 _ACEOF
4606 rm -f conftest.$ac_objext
4607 if { (ac_try="$ac_compile"
4608 case "(($ac_try" in
4609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4610   *) ac_try_echo=$ac_try;;
4611 esac
4612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4613 $as_echo "$ac_try_echo") >&5
4614   (eval "$ac_compile") 2>conftest.er1
4615   ac_status=$?
4616   grep -v '^ *+' conftest.er1 >conftest.err
4617   rm -f conftest.er1
4618   cat conftest.err >&5
4619   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620   (exit $ac_status); } && {
4621          test -z "$ac_c_werror_flag" ||
4622          test ! -s conftest.err
4623        } && test -s conftest.$ac_objext; then
4624   ac_cv_c_bigendian=yes
4625 else
4626   $as_echo "$as_me: failed program was:" >&5
4627 sed 's/^/| /' conftest.$ac_ext >&5
4628
4629         ac_cv_c_bigendian=no
4630 fi
4631
4632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4633 else
4634   $as_echo "$as_me: failed program was:" >&5
4635 sed 's/^/| /' conftest.$ac_ext >&5
4636
4637
4638 fi
4639
4640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4641     fi
4642     if test $ac_cv_c_bigendian = unknown; then
4643       # Compile a test program.
4644       if test "$cross_compiling" = yes; then
4645   # Try to guess by grepping values from an object file.
4646          cat >conftest.$ac_ext <<_ACEOF
4647 /* confdefs.h.  */
4648 _ACEOF
4649 cat confdefs.h >>conftest.$ac_ext
4650 cat >>conftest.$ac_ext <<_ACEOF
4651 /* end confdefs.h.  */
4652 short int ascii_mm[] =
4653                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4654                 short int ascii_ii[] =
4655                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4656                 int use_ascii (int i) {
4657                   return ascii_mm[i] + ascii_ii[i];
4658                 }
4659                 short int ebcdic_ii[] =
4660                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4661                 short int ebcdic_mm[] =
4662                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4663                 int use_ebcdic (int i) {
4664                   return ebcdic_mm[i] + ebcdic_ii[i];
4665                 }
4666                 extern int foo;
4667
4668 int
4669 main ()
4670 {
4671 return use_ascii (foo) == use_ebcdic (foo);
4672   ;
4673   return 0;
4674 }
4675 _ACEOF
4676 rm -f conftest.$ac_objext
4677 if { (ac_try="$ac_compile"
4678 case "(($ac_try" in
4679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680   *) ac_try_echo=$ac_try;;
4681 esac
4682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4683 $as_echo "$ac_try_echo") >&5
4684   (eval "$ac_compile") 2>conftest.er1
4685   ac_status=$?
4686   grep -v '^ *+' conftest.er1 >conftest.err
4687   rm -f conftest.er1
4688   cat conftest.err >&5
4689   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690   (exit $ac_status); } && {
4691          test -z "$ac_c_werror_flag" ||
4692          test ! -s conftest.err
4693        } && test -s conftest.$ac_objext; then
4694   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4695               ac_cv_c_bigendian=yes
4696             fi
4697             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4698               if test "$ac_cv_c_bigendian" = unknown; then
4699                 ac_cv_c_bigendian=no
4700               else
4701                 # finding both strings is unlikely to happen, but who knows?
4702                 ac_cv_c_bigendian=unknown
4703               fi
4704             fi
4705 else
4706   $as_echo "$as_me: failed program was:" >&5
4707 sed 's/^/| /' conftest.$ac_ext >&5
4708
4709
4710 fi
4711
4712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4713 else
4714   cat >conftest.$ac_ext <<_ACEOF
4715 /* confdefs.h.  */
4716 _ACEOF
4717 cat confdefs.h >>conftest.$ac_ext
4718 cat >>conftest.$ac_ext <<_ACEOF
4719 /* end confdefs.h.  */
4720 $ac_includes_default
4721 int
4722 main ()
4723 {
4724
4725              /* Are we little or big endian?  From Harbison&Steele.  */
4726              union
4727              {
4728                long int l;
4729                char c[sizeof (long int)];
4730              } u;
4731              u.l = 1;
4732              return u.c[sizeof (long int) - 1] == 1;
4733
4734   ;
4735   return 0;
4736 }
4737 _ACEOF
4738 rm -f conftest$ac_exeext
4739 if { (ac_try="$ac_link"
4740 case "(($ac_try" in
4741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4742   *) ac_try_echo=$ac_try;;
4743 esac
4744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4745 $as_echo "$ac_try_echo") >&5
4746   (eval "$ac_link") 2>&5
4747   ac_status=$?
4748   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4750   { (case "(($ac_try" in
4751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4752   *) ac_try_echo=$ac_try;;
4753 esac
4754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4755 $as_echo "$ac_try_echo") >&5
4756   (eval "$ac_try") 2>&5
4757   ac_status=$?
4758   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759   (exit $ac_status); }; }; then
4760   ac_cv_c_bigendian=no
4761 else
4762   $as_echo "$as_me: program exited with status $ac_status" >&5
4763 $as_echo "$as_me: failed program was:" >&5
4764 sed 's/^/| /' conftest.$ac_ext >&5
4765
4766 ( exit $ac_status )
4767 ac_cv_c_bigendian=yes
4768 fi
4769 rm -rf conftest.dSYM
4770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4771 fi
4772
4773
4774     fi
4775 fi
4776 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4777 $as_echo "$ac_cv_c_bigendian" >&6; }
4778  case $ac_cv_c_bigendian in #(
4779    yes)
4780      cat >>confdefs.h <<\_ACEOF
4781 #define WORDS_BIGENDIAN 1
4782 _ACEOF
4783 ;; #(
4784    no)
4785       ;; #(
4786    universal)
4787
4788 cat >>confdefs.h <<\_ACEOF
4789 #define AC_APPLE_UNIVERSAL_BUILD 1
4790 _ACEOF
4791
4792      ;; #(
4793    *)
4794      { { $as_echo "$as_me:$LINENO: error: unknown endianness
4795  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4796 $as_echo "$as_me: error: unknown endianness
4797  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4798    { (exit 1); exit 1; }; } ;;
4799  esac
4800
4801 { $as_echo "$as_me:$LINENO: checking for inline" >&5
4802 $as_echo_n "checking for inline... " >&6; }
4803 if test "${ac_cv_c_inline+set}" = set; then
4804   $as_echo_n "(cached) " >&6
4805 else
4806   ac_cv_c_inline=no
4807 for ac_kw in inline __inline__ __inline; do
4808   cat >conftest.$ac_ext <<_ACEOF
4809 /* confdefs.h.  */
4810 _ACEOF
4811 cat confdefs.h >>conftest.$ac_ext
4812 cat >>conftest.$ac_ext <<_ACEOF
4813 /* end confdefs.h.  */
4814 #ifndef __cplusplus
4815 typedef int foo_t;
4816 static $ac_kw foo_t static_foo () {return 0; }
4817 $ac_kw foo_t foo () {return 0; }
4818 #endif
4819
4820 _ACEOF
4821 rm -f conftest.$ac_objext
4822 if { (ac_try="$ac_compile"
4823 case "(($ac_try" in
4824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4825   *) ac_try_echo=$ac_try;;
4826 esac
4827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4828 $as_echo "$ac_try_echo") >&5
4829   (eval "$ac_compile") 2>conftest.er1
4830   ac_status=$?
4831   grep -v '^ *+' conftest.er1 >conftest.err
4832   rm -f conftest.er1
4833   cat conftest.err >&5
4834   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835   (exit $ac_status); } && {
4836          test -z "$ac_c_werror_flag" ||
4837          test ! -s conftest.err
4838        } && test -s conftest.$ac_objext; then
4839   ac_cv_c_inline=$ac_kw
4840 else
4841   $as_echo "$as_me: failed program was:" >&5
4842 sed 's/^/| /' conftest.$ac_ext >&5
4843
4844
4845 fi
4846
4847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4848   test "$ac_cv_c_inline" != no && break
4849 done
4850
4851 fi
4852 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4853 $as_echo "$ac_cv_c_inline" >&6; }
4854
4855
4856 case $ac_cv_c_inline in
4857   inline | yes) ;;
4858   *)
4859     case $ac_cv_c_inline in
4860       no) ac_val=;;
4861       *) ac_val=$ac_cv_c_inline;;
4862     esac
4863     cat >>confdefs.h <<_ACEOF
4864 #ifndef __cplusplus
4865 #define inline $ac_val
4866 #endif
4867 _ACEOF
4868     ;;
4869 esac
4870
4871 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4872 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4873 if test "${ac_cv_c_const+set}" = set; then
4874   $as_echo_n "(cached) " >&6
4875 else
4876   cat >conftest.$ac_ext <<_ACEOF
4877 /* confdefs.h.  */
4878 _ACEOF
4879 cat confdefs.h >>conftest.$ac_ext
4880 cat >>conftest.$ac_ext <<_ACEOF
4881 /* end confdefs.h.  */
4882
4883 int
4884 main ()
4885 {
4886 /* FIXME: Include the comments suggested by Paul. */
4887 #ifndef __cplusplus
4888   /* Ultrix mips cc rejects this.  */
4889   typedef int charset[2];
4890   const charset cs;
4891   /* SunOS 4.1.1 cc rejects this.  */
4892   char const *const *pcpcc;
4893   char **ppc;
4894   /* NEC SVR4.0.2 mips cc rejects this.  */
4895   struct point {int x, y;};
4896   static struct point const zero = {0,0};
4897   /* AIX XL C 1.02.0.0 rejects this.
4898      It does not let you subtract one const X* pointer from another in
4899      an arm of an if-expression whose if-part is not a constant
4900      expression */
4901   const char *g = "string";
4902   pcpcc = &g + (g ? g-g : 0);
4903   /* HPUX 7.0 cc rejects these. */
4904   ++pcpcc;
4905   ppc = (char**) pcpcc;
4906   pcpcc = (char const *const *) ppc;
4907   { /* SCO 3.2v4 cc rejects this.  */
4908     char *t;
4909     char const *s = 0 ? (char *) 0 : (char const *) 0;
4910
4911     *t++ = 0;
4912     if (s) return 0;
4913   }
4914   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4915     int x[] = {25, 17};
4916     const int *foo = &x[0];
4917     ++foo;
4918   }
4919   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4920     typedef const int *iptr;
4921     iptr p = 0;
4922     ++p;
4923   }
4924   { /* AIX XL C 1.02.0.0 rejects this saying
4925        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4926     struct s { int j; const int *ap[3]; };
4927     struct s *b; b->j = 5;
4928   }
4929   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4930     const int foo = 10;
4931     if (!foo) return 0;
4932   }
4933   return !cs[0] && !zero.x;
4934 #endif
4935
4936   ;
4937   return 0;
4938 }
4939 _ACEOF
4940 rm -f conftest.$ac_objext
4941 if { (ac_try="$ac_compile"
4942 case "(($ac_try" in
4943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4944   *) ac_try_echo=$ac_try;;
4945 esac
4946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4947 $as_echo "$ac_try_echo") >&5
4948   (eval "$ac_compile") 2>conftest.er1
4949   ac_status=$?
4950   grep -v '^ *+' conftest.er1 >conftest.err
4951   rm -f conftest.er1
4952   cat conftest.err >&5
4953   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954   (exit $ac_status); } && {
4955          test -z "$ac_c_werror_flag" ||
4956          test ! -s conftest.err
4957        } && test -s conftest.$ac_objext; then
4958   ac_cv_c_const=yes
4959 else
4960   $as_echo "$as_me: failed program was:" >&5
4961 sed 's/^/| /' conftest.$ac_ext >&5
4962
4963         ac_cv_c_const=no
4964 fi
4965
4966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4967 fi
4968 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4969 $as_echo "$ac_cv_c_const" >&6; }
4970 if test $ac_cv_c_const = no; then
4971
4972 cat >>confdefs.h <<\_ACEOF
4973 #define const /**/
4974 _ACEOF
4975
4976 fi
4977
4978 # The cast to long int works around a bug in the HP C Compiler
4979 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4980 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4981 # This bug is HP SR number 8606223364.
4982 { $as_echo "$as_me:$LINENO: checking size of unsigned short int" >&5
4983 $as_echo_n "checking size of unsigned short int... " >&6; }
4984 if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
4985   $as_echo_n "(cached) " >&6
4986 else
4987   if test "$cross_compiling" = yes; then
4988   # Depending upon the size, compute the lo and hi bounds.
4989 cat >conftest.$ac_ext <<_ACEOF
4990 /* confdefs.h.  */
4991 _ACEOF
4992 cat confdefs.h >>conftest.$ac_ext
4993 cat >>conftest.$ac_ext <<_ACEOF
4994 /* end confdefs.h.  */
4995 $ac_includes_default
4996 int
4997 main ()
4998 {
4999 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short int))) >= 0)];
5000 test_array [0] = 0
5001
5002   ;
5003   return 0;
5004 }
5005 _ACEOF
5006 rm -f conftest.$ac_objext
5007 if { (ac_try="$ac_compile"
5008 case "(($ac_try" in
5009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5010   *) ac_try_echo=$ac_try;;
5011 esac
5012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5013 $as_echo "$ac_try_echo") >&5
5014   (eval "$ac_compile") 2>conftest.er1
5015   ac_status=$?
5016   grep -v '^ *+' conftest.er1 >conftest.err
5017   rm -f conftest.er1
5018   cat conftest.err >&5
5019   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020   (exit $ac_status); } && {
5021          test -z "$ac_c_werror_flag" ||
5022          test ! -s conftest.err
5023        } && test -s conftest.$ac_objext; then
5024   ac_lo=0 ac_mid=0
5025   while :; do
5026     cat >conftest.$ac_ext <<_ACEOF
5027 /* confdefs.h.  */
5028 _ACEOF
5029 cat confdefs.h >>conftest.$ac_ext
5030 cat >>conftest.$ac_ext <<_ACEOF
5031 /* end confdefs.h.  */
5032 $ac_includes_default
5033 int
5034 main ()
5035 {
5036 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short int))) <= $ac_mid)];
5037 test_array [0] = 0
5038
5039   ;
5040   return 0;
5041 }
5042 _ACEOF
5043 rm -f conftest.$ac_objext
5044 if { (ac_try="$ac_compile"
5045 case "(($ac_try" in
5046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5047   *) ac_try_echo=$ac_try;;
5048 esac
5049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5050 $as_echo "$ac_try_echo") >&5
5051   (eval "$ac_compile") 2>conftest.er1
5052   ac_status=$?
5053   grep -v '^ *+' conftest.er1 >conftest.err
5054   rm -f conftest.er1
5055   cat conftest.err >&5
5056   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057   (exit $ac_status); } && {
5058          test -z "$ac_c_werror_flag" ||
5059          test ! -s conftest.err
5060        } && test -s conftest.$ac_objext; then
5061   ac_hi=$ac_mid; break
5062 else
5063   $as_echo "$as_me: failed program was:" >&5
5064 sed 's/^/| /' conftest.$ac_ext >&5
5065
5066         ac_lo=`expr $ac_mid + 1`
5067                         if test $ac_lo -le $ac_mid; then
5068                           ac_lo= ac_hi=
5069                           break
5070                         fi
5071                         ac_mid=`expr 2 '*' $ac_mid + 1`
5072 fi
5073
5074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5075   done
5076 else
5077   $as_echo "$as_me: failed program was:" >&5
5078 sed 's/^/| /' conftest.$ac_ext >&5
5079
5080         cat >conftest.$ac_ext <<_ACEOF
5081 /* confdefs.h.  */
5082 _ACEOF
5083 cat confdefs.h >>conftest.$ac_ext
5084 cat >>conftest.$ac_ext <<_ACEOF
5085 /* end confdefs.h.  */
5086 $ac_includes_default
5087 int
5088 main ()
5089 {
5090 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short int))) < 0)];
5091 test_array [0] = 0
5092
5093   ;
5094   return 0;
5095 }
5096 _ACEOF
5097 rm -f conftest.$ac_objext
5098 if { (ac_try="$ac_compile"
5099 case "(($ac_try" in
5100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5101   *) ac_try_echo=$ac_try;;
5102 esac
5103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5104 $as_echo "$ac_try_echo") >&5
5105   (eval "$ac_compile") 2>conftest.er1
5106   ac_status=$?
5107   grep -v '^ *+' conftest.er1 >conftest.err
5108   rm -f conftest.er1
5109   cat conftest.err >&5
5110   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111   (exit $ac_status); } && {
5112          test -z "$ac_c_werror_flag" ||
5113          test ! -s conftest.err
5114        } && test -s conftest.$ac_objext; then
5115   ac_hi=-1 ac_mid=-1
5116   while :; do
5117     cat >conftest.$ac_ext <<_ACEOF
5118 /* confdefs.h.  */
5119 _ACEOF
5120 cat confdefs.h >>conftest.$ac_ext
5121 cat >>conftest.$ac_ext <<_ACEOF
5122 /* end confdefs.h.  */
5123 $ac_includes_default
5124 int
5125 main ()
5126 {
5127 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short int))) >= $ac_mid)];
5128 test_array [0] = 0
5129
5130   ;
5131   return 0;
5132 }
5133 _ACEOF
5134 rm -f conftest.$ac_objext
5135 if { (ac_try="$ac_compile"
5136 case "(($ac_try" in
5137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5138   *) ac_try_echo=$ac_try;;
5139 esac
5140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5141 $as_echo "$ac_try_echo") >&5
5142   (eval "$ac_compile") 2>conftest.er1
5143   ac_status=$?
5144   grep -v '^ *+' conftest.er1 >conftest.err
5145   rm -f conftest.er1
5146   cat conftest.err >&5
5147   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148   (exit $ac_status); } && {
5149          test -z "$ac_c_werror_flag" ||
5150          test ! -s conftest.err
5151        } && test -s conftest.$ac_objext; then
5152   ac_lo=$ac_mid; break
5153 else
5154   $as_echo "$as_me: failed program was:" >&5
5155 sed 's/^/| /' conftest.$ac_ext >&5
5156
5157         ac_hi=`expr '(' $ac_mid ')' - 1`
5158                         if test $ac_mid -le $ac_hi; then
5159                           ac_lo= ac_hi=
5160                           break
5161                         fi
5162                         ac_mid=`expr 2 '*' $ac_mid`
5163 fi
5164
5165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5166   done
5167 else
5168   $as_echo "$as_me: failed program was:" >&5
5169 sed 's/^/| /' conftest.$ac_ext >&5
5170
5171         ac_lo= ac_hi=
5172 fi
5173
5174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5175 fi
5176
5177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5178 # Binary search between lo and hi bounds.
5179 while test "x$ac_lo" != "x$ac_hi"; do
5180   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5181   cat >conftest.$ac_ext <<_ACEOF
5182 /* confdefs.h.  */
5183 _ACEOF
5184 cat confdefs.h >>conftest.$ac_ext
5185 cat >>conftest.$ac_ext <<_ACEOF
5186 /* end confdefs.h.  */
5187 $ac_includes_default
5188 int
5189 main ()
5190 {
5191 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short int))) <= $ac_mid)];
5192 test_array [0] = 0
5193
5194   ;
5195   return 0;
5196 }
5197 _ACEOF
5198 rm -f conftest.$ac_objext
5199 if { (ac_try="$ac_compile"
5200 case "(($ac_try" in
5201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5202   *) ac_try_echo=$ac_try;;
5203 esac
5204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5205 $as_echo "$ac_try_echo") >&5
5206   (eval "$ac_compile") 2>conftest.er1
5207   ac_status=$?
5208   grep -v '^ *+' conftest.er1 >conftest.err
5209   rm -f conftest.er1
5210   cat conftest.err >&5
5211   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212   (exit $ac_status); } && {
5213          test -z "$ac_c_werror_flag" ||
5214          test ! -s conftest.err
5215        } && test -s conftest.$ac_objext; then
5216   ac_hi=$ac_mid
5217 else
5218   $as_echo "$as_me: failed program was:" >&5
5219 sed 's/^/| /' conftest.$ac_ext >&5
5220
5221         ac_lo=`expr '(' $ac_mid ')' + 1`
5222 fi
5223
5224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5225 done
5226 case $ac_lo in
5227 ?*) ac_cv_sizeof_unsigned_short_int=$ac_lo;;
5228 '') if test "$ac_cv_type_unsigned_short_int" = yes; then
5229      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5231 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short int)
5232 See \`config.log' for more details." >&5
5233 $as_echo "$as_me: error: cannot compute sizeof (unsigned short int)
5234 See \`config.log' for more details." >&2;}
5235    { (exit 77); exit 77; }; }; }
5236    else
5237      ac_cv_sizeof_unsigned_short_int=0
5238    fi ;;
5239 esac
5240 else
5241   cat >conftest.$ac_ext <<_ACEOF
5242 /* confdefs.h.  */
5243 _ACEOF
5244 cat confdefs.h >>conftest.$ac_ext
5245 cat >>conftest.$ac_ext <<_ACEOF
5246 /* end confdefs.h.  */
5247 $ac_includes_default
5248 static long int longval () { return (long int) (sizeof (unsigned short int)); }
5249 static unsigned long int ulongval () { return (long int) (sizeof (unsigned short int)); }
5250 #include <stdio.h>
5251 #include <stdlib.h>
5252 int
5253 main ()
5254 {
5255
5256   FILE *f = fopen ("conftest.val", "w");
5257   if (! f)
5258     return 1;
5259   if (((long int) (sizeof (unsigned short int))) < 0)
5260     {
5261       long int i = longval ();
5262       if (i != ((long int) (sizeof (unsigned short int))))
5263         return 1;
5264       fprintf (f, "%ld", i);
5265     }
5266   else
5267     {
5268       unsigned long int i = ulongval ();
5269       if (i != ((long int) (sizeof (unsigned short int))))
5270         return 1;
5271       fprintf (f, "%lu", i);
5272     }
5273   /* Do not output a trailing newline, as this causes \r\n confusion
5274      on some platforms.  */
5275   return ferror (f) || fclose (f) != 0;
5276
5277   ;
5278   return 0;
5279 }
5280 _ACEOF
5281 rm -f conftest$ac_exeext
5282 if { (ac_try="$ac_link"
5283 case "(($ac_try" in
5284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5285   *) ac_try_echo=$ac_try;;
5286 esac
5287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5288 $as_echo "$ac_try_echo") >&5
5289   (eval "$ac_link") 2>&5
5290   ac_status=$?
5291   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5293   { (case "(($ac_try" in
5294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5295   *) ac_try_echo=$ac_try;;
5296 esac
5297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5298 $as_echo "$ac_try_echo") >&5
5299   (eval "$ac_try") 2>&5
5300   ac_status=$?
5301   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302   (exit $ac_status); }; }; then
5303   ac_cv_sizeof_unsigned_short_int=`cat conftest.val`
5304 else
5305   $as_echo "$as_me: program exited with status $ac_status" >&5
5306 $as_echo "$as_me: failed program was:" >&5
5307 sed 's/^/| /' conftest.$ac_ext >&5
5308
5309 ( exit $ac_status )
5310 if test "$ac_cv_type_unsigned_short_int" = yes; then
5311      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5313 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short int)
5314 See \`config.log' for more details." >&5
5315 $as_echo "$as_me: error: cannot compute sizeof (unsigned short int)
5316 See \`config.log' for more details." >&2;}
5317    { (exit 77); exit 77; }; }; }
5318    else
5319      ac_cv_sizeof_unsigned_short_int=0
5320    fi
5321 fi
5322 rm -rf conftest.dSYM
5323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5324 fi
5325 rm -f conftest.val
5326 fi
5327 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
5328 $as_echo "$ac_cv_sizeof_unsigned_short_int" >&6; }
5329
5330
5331
5332 cat >>confdefs.h <<_ACEOF
5333 #define SIZEOF_UNSIGNED_SHORT_INT $ac_cv_sizeof_unsigned_short_int
5334 _ACEOF
5335
5336
5337 # The cast to long int works around a bug in the HP C Compiler
5338 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5339 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5340 # This bug is HP SR number 8606223364.
5341 { $as_echo "$as_me:$LINENO: checking size of unsigned int" >&5
5342 $as_echo_n "checking size of unsigned int... " >&6; }
5343 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
5344   $as_echo_n "(cached) " >&6
5345 else
5346   if test "$cross_compiling" = yes; then
5347   # Depending upon the size, compute the lo and hi bounds.
5348 cat >conftest.$ac_ext <<_ACEOF
5349 /* confdefs.h.  */
5350 _ACEOF
5351 cat confdefs.h >>conftest.$ac_ext
5352 cat >>conftest.$ac_ext <<_ACEOF
5353 /* end confdefs.h.  */
5354 $ac_includes_default
5355 int
5356 main ()
5357 {
5358 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) >= 0)];
5359 test_array [0] = 0
5360
5361   ;
5362   return 0;
5363 }
5364 _ACEOF
5365 rm -f conftest.$ac_objext
5366 if { (ac_try="$ac_compile"
5367 case "(($ac_try" in
5368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5369   *) ac_try_echo=$ac_try;;
5370 esac
5371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5372 $as_echo "$ac_try_echo") >&5
5373   (eval "$ac_compile") 2>conftest.er1
5374   ac_status=$?
5375   grep -v '^ *+' conftest.er1 >conftest.err
5376   rm -f conftest.er1
5377   cat conftest.err >&5
5378   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379   (exit $ac_status); } && {
5380          test -z "$ac_c_werror_flag" ||
5381          test ! -s conftest.err
5382        } && test -s conftest.$ac_objext; then
5383   ac_lo=0 ac_mid=0
5384   while :; do
5385     cat >conftest.$ac_ext <<_ACEOF
5386 /* confdefs.h.  */
5387 _ACEOF
5388 cat confdefs.h >>conftest.$ac_ext
5389 cat >>conftest.$ac_ext <<_ACEOF
5390 /* end confdefs.h.  */
5391 $ac_includes_default
5392 int
5393 main ()
5394 {
5395 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) <= $ac_mid)];
5396 test_array [0] = 0
5397
5398   ;
5399   return 0;
5400 }
5401 _ACEOF
5402 rm -f conftest.$ac_objext
5403 if { (ac_try="$ac_compile"
5404 case "(($ac_try" in
5405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5406   *) ac_try_echo=$ac_try;;
5407 esac
5408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5409 $as_echo "$ac_try_echo") >&5
5410   (eval "$ac_compile") 2>conftest.er1
5411   ac_status=$?
5412   grep -v '^ *+' conftest.er1 >conftest.err
5413   rm -f conftest.er1
5414   cat conftest.err >&5
5415   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416   (exit $ac_status); } && {
5417          test -z "$ac_c_werror_flag" ||
5418          test ! -s conftest.err
5419        } && test -s conftest.$ac_objext; then
5420   ac_hi=$ac_mid; break
5421 else
5422   $as_echo "$as_me: failed program was:" >&5
5423 sed 's/^/| /' conftest.$ac_ext >&5
5424
5425         ac_lo=`expr $ac_mid + 1`
5426                         if test $ac_lo -le $ac_mid; then
5427                           ac_lo= ac_hi=
5428                           break
5429                         fi
5430                         ac_mid=`expr 2 '*' $ac_mid + 1`
5431 fi
5432
5433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5434   done
5435 else
5436   $as_echo "$as_me: failed program was:" >&5
5437 sed 's/^/| /' conftest.$ac_ext >&5
5438
5439         cat >conftest.$ac_ext <<_ACEOF
5440 /* confdefs.h.  */
5441 _ACEOF
5442 cat confdefs.h >>conftest.$ac_ext
5443 cat >>conftest.$ac_ext <<_ACEOF
5444 /* end confdefs.h.  */
5445 $ac_includes_default
5446 int
5447 main ()
5448 {
5449 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) < 0)];
5450 test_array [0] = 0
5451
5452   ;
5453   return 0;
5454 }
5455 _ACEOF
5456 rm -f conftest.$ac_objext
5457 if { (ac_try="$ac_compile"
5458 case "(($ac_try" in
5459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5460   *) ac_try_echo=$ac_try;;
5461 esac
5462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5463 $as_echo "$ac_try_echo") >&5
5464   (eval "$ac_compile") 2>conftest.er1
5465   ac_status=$?
5466   grep -v '^ *+' conftest.er1 >conftest.err
5467   rm -f conftest.er1
5468   cat conftest.err >&5
5469   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470   (exit $ac_status); } && {
5471          test -z "$ac_c_werror_flag" ||
5472          test ! -s conftest.err
5473        } && test -s conftest.$ac_objext; then
5474   ac_hi=-1 ac_mid=-1
5475   while :; do
5476     cat >conftest.$ac_ext <<_ACEOF
5477 /* confdefs.h.  */
5478 _ACEOF
5479 cat confdefs.h >>conftest.$ac_ext
5480 cat >>conftest.$ac_ext <<_ACEOF
5481 /* end confdefs.h.  */
5482 $ac_includes_default
5483 int
5484 main ()
5485 {
5486 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) >= $ac_mid)];
5487 test_array [0] = 0
5488
5489   ;
5490   return 0;
5491 }
5492 _ACEOF
5493 rm -f conftest.$ac_objext
5494 if { (ac_try="$ac_compile"
5495 case "(($ac_try" in
5496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5497   *) ac_try_echo=$ac_try;;
5498 esac
5499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5500 $as_echo "$ac_try_echo") >&5
5501   (eval "$ac_compile") 2>conftest.er1
5502   ac_status=$?
5503   grep -v '^ *+' conftest.er1 >conftest.err
5504   rm -f conftest.er1
5505   cat conftest.err >&5
5506   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507   (exit $ac_status); } && {
5508          test -z "$ac_c_werror_flag" ||
5509          test ! -s conftest.err
5510        } && test -s conftest.$ac_objext; then
5511   ac_lo=$ac_mid; break
5512 else
5513   $as_echo "$as_me: failed program was:" >&5
5514 sed 's/^/| /' conftest.$ac_ext >&5
5515
5516         ac_hi=`expr '(' $ac_mid ')' - 1`
5517                         if test $ac_mid -le $ac_hi; then
5518                           ac_lo= ac_hi=
5519                           break
5520                         fi
5521                         ac_mid=`expr 2 '*' $ac_mid`
5522 fi
5523
5524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5525   done
5526 else
5527   $as_echo "$as_me: failed program was:" >&5
5528 sed 's/^/| /' conftest.$ac_ext >&5
5529
5530         ac_lo= ac_hi=
5531 fi
5532
5533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5534 fi
5535
5536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5537 # Binary search between lo and hi bounds.
5538 while test "x$ac_lo" != "x$ac_hi"; do
5539   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5540   cat >conftest.$ac_ext <<_ACEOF
5541 /* confdefs.h.  */
5542 _ACEOF
5543 cat confdefs.h >>conftest.$ac_ext
5544 cat >>conftest.$ac_ext <<_ACEOF
5545 /* end confdefs.h.  */
5546 $ac_includes_default
5547 int
5548 main ()
5549 {
5550 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) <= $ac_mid)];
5551 test_array [0] = 0
5552
5553   ;
5554   return 0;
5555 }
5556 _ACEOF
5557 rm -f conftest.$ac_objext
5558 if { (ac_try="$ac_compile"
5559 case "(($ac_try" in
5560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5561   *) ac_try_echo=$ac_try;;
5562 esac
5563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5564 $as_echo "$ac_try_echo") >&5
5565   (eval "$ac_compile") 2>conftest.er1
5566   ac_status=$?
5567   grep -v '^ *+' conftest.er1 >conftest.err
5568   rm -f conftest.er1
5569   cat conftest.err >&5
5570   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571   (exit $ac_status); } && {
5572          test -z "$ac_c_werror_flag" ||
5573          test ! -s conftest.err
5574        } && test -s conftest.$ac_objext; then
5575   ac_hi=$ac_mid
5576 else
5577   $as_echo "$as_me: failed program was:" >&5
5578 sed 's/^/| /' conftest.$ac_ext >&5
5579
5580         ac_lo=`expr '(' $ac_mid ')' + 1`
5581 fi
5582
5583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5584 done
5585 case $ac_lo in
5586 ?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
5587 '') if test "$ac_cv_type_unsigned_int" = yes; then
5588      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5590 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
5591 See \`config.log' for more details." >&5
5592 $as_echo "$as_me: error: cannot compute sizeof (unsigned int)
5593 See \`config.log' for more details." >&2;}
5594    { (exit 77); exit 77; }; }; }
5595    else
5596      ac_cv_sizeof_unsigned_int=0
5597    fi ;;
5598 esac
5599 else
5600   cat >conftest.$ac_ext <<_ACEOF
5601 /* confdefs.h.  */
5602 _ACEOF
5603 cat confdefs.h >>conftest.$ac_ext
5604 cat >>conftest.$ac_ext <<_ACEOF
5605 /* end confdefs.h.  */
5606 $ac_includes_default
5607 static long int longval () { return (long int) (sizeof (unsigned int)); }
5608 static unsigned long int ulongval () { return (long int) (sizeof (unsigned int)); }
5609 #include <stdio.h>
5610 #include <stdlib.h>
5611 int
5612 main ()
5613 {
5614
5615   FILE *f = fopen ("conftest.val", "w");
5616   if (! f)
5617     return 1;
5618   if (((long int) (sizeof (unsigned int))) < 0)
5619     {
5620       long int i = longval ();
5621       if (i != ((long int) (sizeof (unsigned int))))
5622         return 1;
5623       fprintf (f, "%ld", i);
5624     }
5625   else
5626     {
5627       unsigned long int i = ulongval ();
5628       if (i != ((long int) (sizeof (unsigned int))))
5629         return 1;
5630       fprintf (f, "%lu", i);
5631     }
5632   /* Do not output a trailing newline, as this causes \r\n confusion
5633      on some platforms.  */
5634   return ferror (f) || fclose (f) != 0;
5635
5636   ;
5637   return 0;
5638 }
5639 _ACEOF
5640 rm -f conftest$ac_exeext
5641 if { (ac_try="$ac_link"
5642 case "(($ac_try" in
5643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5644   *) ac_try_echo=$ac_try;;
5645 esac
5646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5647 $as_echo "$ac_try_echo") >&5
5648   (eval "$ac_link") 2>&5
5649   ac_status=$?
5650   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5652   { (case "(($ac_try" in
5653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5654   *) ac_try_echo=$ac_try;;
5655 esac
5656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5657 $as_echo "$ac_try_echo") >&5
5658   (eval "$ac_try") 2>&5
5659   ac_status=$?
5660   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661   (exit $ac_status); }; }; then
5662   ac_cv_sizeof_unsigned_int=`cat conftest.val`
5663 else
5664   $as_echo "$as_me: program exited with status $ac_status" >&5
5665 $as_echo "$as_me: failed program was:" >&5
5666 sed 's/^/| /' conftest.$ac_ext >&5
5667
5668 ( exit $ac_status )
5669 if test "$ac_cv_type_unsigned_int" = yes; then
5670      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5672 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
5673 See \`config.log' for more details." >&5
5674 $as_echo "$as_me: error: cannot compute sizeof (unsigned int)
5675 See \`config.log' for more details." >&2;}
5676    { (exit 77); exit 77; }; }; }
5677    else
5678      ac_cv_sizeof_unsigned_int=0
5679    fi
5680 fi
5681 rm -rf conftest.dSYM
5682 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5683 fi
5684 rm -f conftest.val
5685 fi
5686 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
5687 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
5688
5689
5690
5691 cat >>confdefs.h <<_ACEOF
5692 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
5693 _ACEOF
5694
5695
5696 # The cast to long int works around a bug in the HP C Compiler
5697 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5698 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5699 # This bug is HP SR number 8606223364.
5700 { $as_echo "$as_me:$LINENO: checking size of unsigned long int" >&5
5701 $as_echo_n "checking size of unsigned long int... " >&6; }
5702 if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
5703   $as_echo_n "(cached) " >&6
5704 else
5705   if test "$cross_compiling" = yes; then
5706   # Depending upon the size, compute the lo and hi bounds.
5707 cat >conftest.$ac_ext <<_ACEOF
5708 /* confdefs.h.  */
5709 _ACEOF
5710 cat confdefs.h >>conftest.$ac_ext
5711 cat >>conftest.$ac_ext <<_ACEOF
5712 /* end confdefs.h.  */
5713 $ac_includes_default
5714 int
5715 main ()
5716 {
5717 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long int))) >= 0)];
5718 test_array [0] = 0
5719
5720   ;
5721   return 0;
5722 }
5723 _ACEOF
5724 rm -f conftest.$ac_objext
5725 if { (ac_try="$ac_compile"
5726 case "(($ac_try" in
5727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5728   *) ac_try_echo=$ac_try;;
5729 esac
5730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5731 $as_echo "$ac_try_echo") >&5
5732   (eval "$ac_compile") 2>conftest.er1
5733   ac_status=$?
5734   grep -v '^ *+' conftest.er1 >conftest.err
5735   rm -f conftest.er1
5736   cat conftest.err >&5
5737   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738   (exit $ac_status); } && {
5739          test -z "$ac_c_werror_flag" ||
5740          test ! -s conftest.err
5741        } && test -s conftest.$ac_objext; then
5742   ac_lo=0 ac_mid=0
5743   while :; do
5744     cat >conftest.$ac_ext <<_ACEOF
5745 /* confdefs.h.  */
5746 _ACEOF
5747 cat confdefs.h >>conftest.$ac_ext
5748 cat >>conftest.$ac_ext <<_ACEOF
5749 /* end confdefs.h.  */
5750 $ac_includes_default
5751 int
5752 main ()
5753 {
5754 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long int))) <= $ac_mid)];
5755 test_array [0] = 0
5756
5757   ;
5758   return 0;
5759 }
5760 _ACEOF
5761 rm -f conftest.$ac_objext
5762 if { (ac_try="$ac_compile"
5763 case "(($ac_try" in
5764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5765   *) ac_try_echo=$ac_try;;
5766 esac
5767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5768 $as_echo "$ac_try_echo") >&5
5769   (eval "$ac_compile") 2>conftest.er1
5770   ac_status=$?
5771   grep -v '^ *+' conftest.er1 >conftest.err
5772   rm -f conftest.er1
5773   cat conftest.err >&5
5774   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775   (exit $ac_status); } && {
5776          test -z "$ac_c_werror_flag" ||
5777          test ! -s conftest.err
5778        } && test -s conftest.$ac_objext; then
5779   ac_hi=$ac_mid; break
5780 else
5781   $as_echo "$as_me: failed program was:" >&5
5782 sed 's/^/| /' conftest.$ac_ext >&5
5783
5784         ac_lo=`expr $ac_mid + 1`
5785                         if test $ac_lo -le $ac_mid; then
5786                           ac_lo= ac_hi=
5787                           break
5788                         fi
5789                         ac_mid=`expr 2 '*' $ac_mid + 1`
5790 fi
5791
5792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5793   done
5794 else
5795   $as_echo "$as_me: failed program was:" >&5
5796 sed 's/^/| /' conftest.$ac_ext >&5
5797
5798         cat >conftest.$ac_ext <<_ACEOF
5799 /* confdefs.h.  */
5800 _ACEOF
5801 cat confdefs.h >>conftest.$ac_ext
5802 cat >>conftest.$ac_ext <<_ACEOF
5803 /* end confdefs.h.  */
5804 $ac_includes_default
5805 int
5806 main ()
5807 {
5808 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long int))) < 0)];
5809 test_array [0] = 0
5810
5811   ;
5812   return 0;
5813 }
5814 _ACEOF
5815 rm -f conftest.$ac_objext
5816 if { (ac_try="$ac_compile"
5817 case "(($ac_try" in
5818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5819   *) ac_try_echo=$ac_try;;
5820 esac
5821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5822 $as_echo "$ac_try_echo") >&5
5823   (eval "$ac_compile") 2>conftest.er1
5824   ac_status=$?
5825   grep -v '^ *+' conftest.er1 >conftest.err
5826   rm -f conftest.er1
5827   cat conftest.err >&5
5828   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829   (exit $ac_status); } && {
5830          test -z "$ac_c_werror_flag" ||
5831          test ! -s conftest.err
5832        } && test -s conftest.$ac_objext; then
5833   ac_hi=-1 ac_mid=-1
5834   while :; do
5835     cat >conftest.$ac_ext <<_ACEOF
5836 /* confdefs.h.  */
5837 _ACEOF
5838 cat confdefs.h >>conftest.$ac_ext
5839 cat >>conftest.$ac_ext <<_ACEOF
5840 /* end confdefs.h.  */
5841 $ac_includes_default
5842 int
5843 main ()
5844 {
5845 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long int))) >= $ac_mid)];
5846 test_array [0] = 0
5847
5848   ;
5849   return 0;
5850 }
5851 _ACEOF
5852 rm -f conftest.$ac_objext
5853 if { (ac_try="$ac_compile"
5854 case "(($ac_try" in
5855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5856   *) ac_try_echo=$ac_try;;
5857 esac
5858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5859 $as_echo "$ac_try_echo") >&5
5860   (eval "$ac_compile") 2>conftest.er1
5861   ac_status=$?
5862   grep -v '^ *+' conftest.er1 >conftest.err
5863   rm -f conftest.er1
5864   cat conftest.err >&5
5865   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866   (exit $ac_status); } && {
5867          test -z "$ac_c_werror_flag" ||
5868          test ! -s conftest.err
5869        } && test -s conftest.$ac_objext; then
5870   ac_lo=$ac_mid; break
5871 else
5872   $as_echo "$as_me: failed program was:" >&5
5873 sed 's/^/| /' conftest.$ac_ext >&5
5874
5875         ac_hi=`expr '(' $ac_mid ')' - 1`
5876                         if test $ac_mid -le $ac_hi; then
5877                           ac_lo= ac_hi=
5878                           break
5879                         fi
5880                         ac_mid=`expr 2 '*' $ac_mid`
5881 fi
5882
5883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5884   done
5885 else
5886   $as_echo "$as_me: failed program was:" >&5
5887 sed 's/^/| /' conftest.$ac_ext >&5
5888
5889         ac_lo= ac_hi=
5890 fi
5891
5892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5893 fi
5894
5895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5896 # Binary search between lo and hi bounds.
5897 while test "x$ac_lo" != "x$ac_hi"; do
5898   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5899   cat >conftest.$ac_ext <<_ACEOF
5900 /* confdefs.h.  */
5901 _ACEOF
5902 cat confdefs.h >>conftest.$ac_ext
5903 cat >>conftest.$ac_ext <<_ACEOF
5904 /* end confdefs.h.  */
5905 $ac_includes_default
5906 int
5907 main ()
5908 {
5909 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long int))) <= $ac_mid)];
5910 test_array [0] = 0
5911
5912   ;
5913   return 0;
5914 }
5915 _ACEOF
5916 rm -f conftest.$ac_objext
5917 if { (ac_try="$ac_compile"
5918 case "(($ac_try" in
5919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5920   *) ac_try_echo=$ac_try;;
5921 esac
5922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5923 $as_echo "$ac_try_echo") >&5
5924   (eval "$ac_compile") 2>conftest.er1
5925   ac_status=$?
5926   grep -v '^ *+' conftest.er1 >conftest.err
5927   rm -f conftest.er1
5928   cat conftest.err >&5
5929   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930   (exit $ac_status); } && {
5931          test -z "$ac_c_werror_flag" ||
5932          test ! -s conftest.err
5933        } && test -s conftest.$ac_objext; then
5934   ac_hi=$ac_mid
5935 else
5936   $as_echo "$as_me: failed program was:" >&5
5937 sed 's/^/| /' conftest.$ac_ext >&5
5938
5939         ac_lo=`expr '(' $ac_mid ')' + 1`
5940 fi
5941
5942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5943 done
5944 case $ac_lo in
5945 ?*) ac_cv_sizeof_unsigned_long_int=$ac_lo;;
5946 '') if test "$ac_cv_type_unsigned_long_int" = yes; then
5947      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5949 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long int)
5950 See \`config.log' for more details." >&5
5951 $as_echo "$as_me: error: cannot compute sizeof (unsigned long int)
5952 See \`config.log' for more details." >&2;}
5953    { (exit 77); exit 77; }; }; }
5954    else
5955      ac_cv_sizeof_unsigned_long_int=0
5956    fi ;;
5957 esac
5958 else
5959   cat >conftest.$ac_ext <<_ACEOF
5960 /* confdefs.h.  */
5961 _ACEOF
5962 cat confdefs.h >>conftest.$ac_ext
5963 cat >>conftest.$ac_ext <<_ACEOF
5964 /* end confdefs.h.  */
5965 $ac_includes_default
5966 static long int longval () { return (long int) (sizeof (unsigned long int)); }
5967 static unsigned long int ulongval () { return (long int) (sizeof (unsigned long int)); }
5968 #include <stdio.h>
5969 #include <stdlib.h>
5970 int
5971 main ()
5972 {
5973
5974   FILE *f = fopen ("conftest.val", "w");
5975   if (! f)
5976     return 1;
5977   if (((long int) (sizeof (unsigned long int))) < 0)
5978     {
5979       long int i = longval ();
5980       if (i != ((long int) (sizeof (unsigned long int))))
5981         return 1;
5982       fprintf (f, "%ld", i);
5983     }
5984   else
5985     {
5986       unsigned long int i = ulongval ();
5987       if (i != ((long int) (sizeof (unsigned long int))))
5988         return 1;
5989       fprintf (f, "%lu", i);
5990     }
5991   /* Do not output a trailing newline, as this causes \r\n confusion
5992      on some platforms.  */
5993   return ferror (f) || fclose (f) != 0;
5994
5995   ;
5996   return 0;
5997 }
5998 _ACEOF
5999 rm -f conftest$ac_exeext
6000 if { (ac_try="$ac_link"
6001 case "(($ac_try" in
6002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6003   *) ac_try_echo=$ac_try;;
6004 esac
6005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6006 $as_echo "$ac_try_echo") >&5
6007   (eval "$ac_link") 2>&5
6008   ac_status=$?
6009   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6011   { (case "(($ac_try" in
6012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6013   *) ac_try_echo=$ac_try;;
6014 esac
6015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6016 $as_echo "$ac_try_echo") >&5
6017   (eval "$ac_try") 2>&5
6018   ac_status=$?
6019   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020   (exit $ac_status); }; }; then
6021   ac_cv_sizeof_unsigned_long_int=`cat conftest.val`
6022 else
6023   $as_echo "$as_me: program exited with status $ac_status" >&5
6024 $as_echo "$as_me: failed program was:" >&5
6025 sed 's/^/| /' conftest.$ac_ext >&5
6026
6027 ( exit $ac_status )
6028 if test "$ac_cv_type_unsigned_long_int" = yes; then
6029      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6031 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long int)
6032 See \`config.log' for more details." >&5
6033 $as_echo "$as_me: error: cannot compute sizeof (unsigned long int)
6034 See \`config.log' for more details." >&2;}
6035    { (exit 77); exit 77; }; }; }
6036    else
6037      ac_cv_sizeof_unsigned_long_int=0
6038    fi
6039 fi
6040 rm -rf conftest.dSYM
6041 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6042 fi
6043 rm -f conftest.val
6044 fi
6045 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
6046 $as_echo "$ac_cv_sizeof_unsigned_long_int" >&6; }
6047
6048
6049
6050 cat >>confdefs.h <<_ACEOF
6051 #define SIZEOF_UNSIGNED_LONG_INT $ac_cv_sizeof_unsigned_long_int
6052 _ACEOF
6053
6054
6055 # The cast to long int works around a bug in the HP C Compiler
6056 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6057 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6058 # This bug is HP SR number 8606223364.
6059 { $as_echo "$as_me:$LINENO: checking size of unsigned long long int" >&5
6060 $as_echo_n "checking size of unsigned long long int... " >&6; }
6061 if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
6062   $as_echo_n "(cached) " >&6
6063 else
6064   if test "$cross_compiling" = yes; then
6065   # Depending upon the size, compute the lo and hi bounds.
6066 cat >conftest.$ac_ext <<_ACEOF
6067 /* confdefs.h.  */
6068 _ACEOF
6069 cat confdefs.h >>conftest.$ac_ext
6070 cat >>conftest.$ac_ext <<_ACEOF
6071 /* end confdefs.h.  */
6072 $ac_includes_default
6073 int
6074 main ()
6075 {
6076 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long int))) >= 0)];
6077 test_array [0] = 0
6078
6079   ;
6080   return 0;
6081 }
6082 _ACEOF
6083 rm -f conftest.$ac_objext
6084 if { (ac_try="$ac_compile"
6085 case "(($ac_try" in
6086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6087   *) ac_try_echo=$ac_try;;
6088 esac
6089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6090 $as_echo "$ac_try_echo") >&5
6091   (eval "$ac_compile") 2>conftest.er1
6092   ac_status=$?
6093   grep -v '^ *+' conftest.er1 >conftest.err
6094   rm -f conftest.er1
6095   cat conftest.err >&5
6096   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097   (exit $ac_status); } && {
6098          test -z "$ac_c_werror_flag" ||
6099          test ! -s conftest.err
6100        } && test -s conftest.$ac_objext; then
6101   ac_lo=0 ac_mid=0
6102   while :; do
6103     cat >conftest.$ac_ext <<_ACEOF
6104 /* confdefs.h.  */
6105 _ACEOF
6106 cat confdefs.h >>conftest.$ac_ext
6107 cat >>conftest.$ac_ext <<_ACEOF
6108 /* end confdefs.h.  */
6109 $ac_includes_default
6110 int
6111 main ()
6112 {
6113 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long int))) <= $ac_mid)];
6114 test_array [0] = 0
6115
6116   ;
6117   return 0;
6118 }
6119 _ACEOF
6120 rm -f conftest.$ac_objext
6121 if { (ac_try="$ac_compile"
6122 case "(($ac_try" in
6123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6124   *) ac_try_echo=$ac_try;;
6125 esac
6126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6127 $as_echo "$ac_try_echo") >&5
6128   (eval "$ac_compile") 2>conftest.er1
6129   ac_status=$?
6130   grep -v '^ *+' conftest.er1 >conftest.err
6131   rm -f conftest.er1
6132   cat conftest.err >&5
6133   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134   (exit $ac_status); } && {
6135          test -z "$ac_c_werror_flag" ||
6136          test ! -s conftest.err
6137        } && test -s conftest.$ac_objext; then
6138   ac_hi=$ac_mid; break
6139 else
6140   $as_echo "$as_me: failed program was:" >&5
6141 sed 's/^/| /' conftest.$ac_ext >&5
6142
6143         ac_lo=`expr $ac_mid + 1`
6144                         if test $ac_lo -le $ac_mid; then
6145                           ac_lo= ac_hi=
6146                           break
6147                         fi
6148                         ac_mid=`expr 2 '*' $ac_mid + 1`
6149 fi
6150
6151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6152   done
6153 else
6154   $as_echo "$as_me: failed program was:" >&5
6155 sed 's/^/| /' conftest.$ac_ext >&5
6156
6157         cat >conftest.$ac_ext <<_ACEOF
6158 /* confdefs.h.  */
6159 _ACEOF
6160 cat confdefs.h >>conftest.$ac_ext
6161 cat >>conftest.$ac_ext <<_ACEOF
6162 /* end confdefs.h.  */
6163 $ac_includes_default
6164 int
6165 main ()
6166 {
6167 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long int))) < 0)];
6168 test_array [0] = 0
6169
6170   ;
6171   return 0;
6172 }
6173 _ACEOF
6174 rm -f conftest.$ac_objext
6175 if { (ac_try="$ac_compile"
6176 case "(($ac_try" in
6177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6178   *) ac_try_echo=$ac_try;;
6179 esac
6180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6181 $as_echo "$ac_try_echo") >&5
6182   (eval "$ac_compile") 2>conftest.er1
6183   ac_status=$?
6184   grep -v '^ *+' conftest.er1 >conftest.err
6185   rm -f conftest.er1
6186   cat conftest.err >&5
6187   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188   (exit $ac_status); } && {
6189          test -z "$ac_c_werror_flag" ||
6190          test ! -s conftest.err
6191        } && test -s conftest.$ac_objext; then
6192   ac_hi=-1 ac_mid=-1
6193   while :; do
6194     cat >conftest.$ac_ext <<_ACEOF
6195 /* confdefs.h.  */
6196 _ACEOF
6197 cat confdefs.h >>conftest.$ac_ext
6198 cat >>conftest.$ac_ext <<_ACEOF
6199 /* end confdefs.h.  */
6200 $ac_includes_default
6201 int
6202 main ()
6203 {
6204 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long int))) >= $ac_mid)];
6205 test_array [0] = 0
6206
6207   ;
6208   return 0;
6209 }
6210 _ACEOF
6211 rm -f conftest.$ac_objext
6212 if { (ac_try="$ac_compile"
6213 case "(($ac_try" in
6214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6215   *) ac_try_echo=$ac_try;;
6216 esac
6217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6218 $as_echo "$ac_try_echo") >&5
6219   (eval "$ac_compile") 2>conftest.er1
6220   ac_status=$?
6221   grep -v '^ *+' conftest.er1 >conftest.err
6222   rm -f conftest.er1
6223   cat conftest.err >&5
6224   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225   (exit $ac_status); } && {
6226          test -z "$ac_c_werror_flag" ||
6227          test ! -s conftest.err
6228        } && test -s conftest.$ac_objext; then
6229   ac_lo=$ac_mid; break
6230 else
6231   $as_echo "$as_me: failed program was:" >&5
6232 sed 's/^/| /' conftest.$ac_ext >&5
6233
6234         ac_hi=`expr '(' $ac_mid ')' - 1`
6235                         if test $ac_mid -le $ac_hi; then
6236                           ac_lo= ac_hi=
6237                           break
6238                         fi
6239                         ac_mid=`expr 2 '*' $ac_mid`
6240 fi
6241
6242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6243   done
6244 else
6245   $as_echo "$as_me: failed program was:" >&5
6246 sed 's/^/| /' conftest.$ac_ext >&5
6247
6248         ac_lo= ac_hi=
6249 fi
6250
6251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6252 fi
6253
6254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6255 # Binary search between lo and hi bounds.
6256 while test "x$ac_lo" != "x$ac_hi"; do
6257   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6258   cat >conftest.$ac_ext <<_ACEOF
6259 /* confdefs.h.  */
6260 _ACEOF
6261 cat confdefs.h >>conftest.$ac_ext
6262 cat >>conftest.$ac_ext <<_ACEOF
6263 /* end confdefs.h.  */
6264 $ac_includes_default
6265 int
6266 main ()
6267 {
6268 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long int))) <= $ac_mid)];
6269 test_array [0] = 0
6270
6271   ;
6272   return 0;
6273 }
6274 _ACEOF
6275 rm -f conftest.$ac_objext
6276 if { (ac_try="$ac_compile"
6277 case "(($ac_try" in
6278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6279   *) ac_try_echo=$ac_try;;
6280 esac
6281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6282 $as_echo "$ac_try_echo") >&5
6283   (eval "$ac_compile") 2>conftest.er1
6284   ac_status=$?
6285   grep -v '^ *+' conftest.er1 >conftest.err
6286   rm -f conftest.er1
6287   cat conftest.err >&5
6288   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289   (exit $ac_status); } && {
6290          test -z "$ac_c_werror_flag" ||
6291          test ! -s conftest.err
6292        } && test -s conftest.$ac_objext; then
6293   ac_hi=$ac_mid
6294 else
6295   $as_echo "$as_me: failed program was:" >&5
6296 sed 's/^/| /' conftest.$ac_ext >&5
6297
6298         ac_lo=`expr '(' $ac_mid ')' + 1`
6299 fi
6300
6301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6302 done
6303 case $ac_lo in
6304 ?*) ac_cv_sizeof_unsigned_long_long_int=$ac_lo;;
6305 '') if test "$ac_cv_type_unsigned_long_long_int" = yes; then
6306      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6308 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long int)
6309 See \`config.log' for more details." >&5
6310 $as_echo "$as_me: error: cannot compute sizeof (unsigned long long int)
6311 See \`config.log' for more details." >&2;}
6312    { (exit 77); exit 77; }; }; }
6313    else
6314      ac_cv_sizeof_unsigned_long_long_int=0
6315    fi ;;
6316 esac
6317 else
6318   cat >conftest.$ac_ext <<_ACEOF
6319 /* confdefs.h.  */
6320 _ACEOF
6321 cat confdefs.h >>conftest.$ac_ext
6322 cat >>conftest.$ac_ext <<_ACEOF
6323 /* end confdefs.h.  */
6324 $ac_includes_default
6325 static long int longval () { return (long int) (sizeof (unsigned long long int)); }
6326 static unsigned long int ulongval () { return (long int) (sizeof (unsigned long long int)); }
6327 #include <stdio.h>
6328 #include <stdlib.h>
6329 int
6330 main ()
6331 {
6332
6333   FILE *f = fopen ("conftest.val", "w");
6334   if (! f)
6335     return 1;
6336   if (((long int) (sizeof (unsigned long long int))) < 0)
6337     {
6338       long int i = longval ();
6339       if (i != ((long int) (sizeof (unsigned long long int))))
6340         return 1;
6341       fprintf (f, "%ld", i);
6342     }
6343   else
6344     {
6345       unsigned long int i = ulongval ();
6346       if (i != ((long int) (sizeof (unsigned long long int))))
6347         return 1;
6348       fprintf (f, "%lu", i);
6349     }
6350   /* Do not output a trailing newline, as this causes \r\n confusion
6351      on some platforms.  */
6352   return ferror (f) || fclose (f) != 0;
6353
6354   ;
6355   return 0;
6356 }
6357 _ACEOF
6358 rm -f conftest$ac_exeext
6359 if { (ac_try="$ac_link"
6360 case "(($ac_try" in
6361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6362   *) ac_try_echo=$ac_try;;
6363 esac
6364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6365 $as_echo "$ac_try_echo") >&5
6366   (eval "$ac_link") 2>&5
6367   ac_status=$?
6368   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6370   { (case "(($ac_try" in
6371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6372   *) ac_try_echo=$ac_try;;
6373 esac
6374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6375 $as_echo "$ac_try_echo") >&5
6376   (eval "$ac_try") 2>&5
6377   ac_status=$?
6378   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379   (exit $ac_status); }; }; then
6380   ac_cv_sizeof_unsigned_long_long_int=`cat conftest.val`
6381 else
6382   $as_echo "$as_me: program exited with status $ac_status" >&5
6383 $as_echo "$as_me: failed program was:" >&5
6384 sed 's/^/| /' conftest.$ac_ext >&5
6385
6386 ( exit $ac_status )
6387 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
6388      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6390 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long int)
6391 See \`config.log' for more details." >&5
6392 $as_echo "$as_me: error: cannot compute sizeof (unsigned long long int)
6393 See \`config.log' for more details." >&2;}
6394    { (exit 77); exit 77; }; }; }
6395    else
6396      ac_cv_sizeof_unsigned_long_long_int=0
6397    fi
6398 fi
6399 rm -rf conftest.dSYM
6400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6401 fi
6402 rm -f conftest.val
6403 fi
6404 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
6405 $as_echo "$ac_cv_sizeof_unsigned_long_long_int" >&6; }
6406
6407
6408
6409 cat >>confdefs.h <<_ACEOF
6410 #define SIZEOF_UNSIGNED_LONG_LONG_INT $ac_cv_sizeof_unsigned_long_long_int
6411 _ACEOF
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422 for ac_func in llseek alarm gethostbyname inet_ntoa memset socket strerror strstr
6423 do
6424 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6425 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6426 $as_echo_n "checking for $ac_func... " >&6; }
6427 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6428   $as_echo_n "(cached) " >&6
6429 else
6430   cat >conftest.$ac_ext <<_ACEOF
6431 /* confdefs.h.  */
6432 _ACEOF
6433 cat confdefs.h >>conftest.$ac_ext
6434 cat >>conftest.$ac_ext <<_ACEOF
6435 /* end confdefs.h.  */
6436 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6437    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6438 #define $ac_func innocuous_$ac_func
6439
6440 /* System header to define __stub macros and hopefully few prototypes,
6441     which can conflict with char $ac_func (); below.
6442     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6443     <limits.h> exists even on freestanding compilers.  */
6444
6445 #ifdef __STDC__
6446 # include <limits.h>
6447 #else
6448 # include <assert.h>
6449 #endif
6450
6451 #undef $ac_func
6452
6453 /* Override any GCC internal prototype to avoid an error.
6454    Use char because int might match the return type of a GCC
6455    builtin and then its argument prototype would still apply.  */
6456 #ifdef __cplusplus
6457 extern "C"
6458 #endif
6459 char $ac_func ();
6460 /* The GNU C library defines this for functions which it implements
6461     to always fail with ENOSYS.  Some functions are actually named
6462     something starting with __ and the normal name is an alias.  */
6463 #if defined __stub_$ac_func || defined __stub___$ac_func
6464 choke me
6465 #endif
6466
6467 int
6468 main ()
6469 {
6470 return $ac_func ();
6471   ;
6472   return 0;
6473 }
6474 _ACEOF
6475 rm -f conftest.$ac_objext conftest$ac_exeext
6476 if { (ac_try="$ac_link"
6477 case "(($ac_try" in
6478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6479   *) ac_try_echo=$ac_try;;
6480 esac
6481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6482 $as_echo "$ac_try_echo") >&5
6483   (eval "$ac_link") 2>conftest.er1
6484   ac_status=$?
6485   grep -v '^ *+' conftest.er1 >conftest.err
6486   rm -f conftest.er1
6487   cat conftest.err >&5
6488   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489   (exit $ac_status); } && {
6490          test -z "$ac_c_werror_flag" ||
6491          test ! -s conftest.err
6492        } && test -s conftest$ac_exeext && {
6493          test "$cross_compiling" = yes ||
6494          $as_test_x conftest$ac_exeext
6495        }; then
6496   eval "$as_ac_var=yes"
6497 else
6498   $as_echo "$as_me: failed program was:" >&5
6499 sed 's/^/| /' conftest.$ac_ext >&5
6500
6501         eval "$as_ac_var=no"
6502 fi
6503
6504 rm -rf conftest.dSYM
6505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6506       conftest$ac_exeext conftest.$ac_ext
6507 fi
6508 ac_res=`eval 'as_val=${'$as_ac_var'}
6509                  $as_echo "$as_val"'`
6510                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6511 $as_echo "$ac_res" >&6; }
6512 as_val=`eval 'as_val=${'$as_ac_var'}
6513                  $as_echo "$as_val"'`
6514    if test "x$as_val" = x""yes; then
6515   cat >>confdefs.h <<_ACEOF
6516 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6517 _ACEOF
6518
6519 fi
6520 done
6521
6522 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
6523 $as_echo_n "checking for pid_t... " >&6; }
6524 if test "${ac_cv_type_pid_t+set}" = set; then
6525   $as_echo_n "(cached) " >&6
6526 else
6527   ac_cv_type_pid_t=no
6528 cat >conftest.$ac_ext <<_ACEOF
6529 /* confdefs.h.  */
6530 _ACEOF
6531 cat confdefs.h >>conftest.$ac_ext
6532 cat >>conftest.$ac_ext <<_ACEOF
6533 /* end confdefs.h.  */
6534 $ac_includes_default
6535 int
6536 main ()
6537 {
6538 if (sizeof (pid_t))
6539        return 0;
6540   ;
6541   return 0;
6542 }
6543 _ACEOF
6544 rm -f conftest.$ac_objext
6545 if { (ac_try="$ac_compile"
6546 case "(($ac_try" in
6547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6548   *) ac_try_echo=$ac_try;;
6549 esac
6550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6551 $as_echo "$ac_try_echo") >&5
6552   (eval "$ac_compile") 2>conftest.er1
6553   ac_status=$?
6554   grep -v '^ *+' conftest.er1 >conftest.err
6555   rm -f conftest.er1
6556   cat conftest.err >&5
6557   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558   (exit $ac_status); } && {
6559          test -z "$ac_c_werror_flag" ||
6560          test ! -s conftest.err
6561        } && test -s conftest.$ac_objext; then
6562   cat >conftest.$ac_ext <<_ACEOF
6563 /* confdefs.h.  */
6564 _ACEOF
6565 cat confdefs.h >>conftest.$ac_ext
6566 cat >>conftest.$ac_ext <<_ACEOF
6567 /* end confdefs.h.  */
6568 $ac_includes_default
6569 int
6570 main ()
6571 {
6572 if (sizeof ((pid_t)))
6573           return 0;
6574   ;
6575   return 0;
6576 }
6577 _ACEOF
6578 rm -f conftest.$ac_objext
6579 if { (ac_try="$ac_compile"
6580 case "(($ac_try" in
6581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6582   *) ac_try_echo=$ac_try;;
6583 esac
6584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6585 $as_echo "$ac_try_echo") >&5
6586   (eval "$ac_compile") 2>conftest.er1
6587   ac_status=$?
6588   grep -v '^ *+' conftest.er1 >conftest.err
6589   rm -f conftest.er1
6590   cat conftest.err >&5
6591   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592   (exit $ac_status); } && {
6593          test -z "$ac_c_werror_flag" ||
6594          test ! -s conftest.err
6595        } && test -s conftest.$ac_objext; then
6596   :
6597 else
6598   $as_echo "$as_me: failed program was:" >&5
6599 sed 's/^/| /' conftest.$ac_ext >&5
6600
6601         ac_cv_type_pid_t=yes
6602 fi
6603
6604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6605 else
6606   $as_echo "$as_me: failed program was:" >&5
6607 sed 's/^/| /' conftest.$ac_ext >&5
6608
6609
6610 fi
6611
6612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6613 fi
6614 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6615 $as_echo "$ac_cv_type_pid_t" >&6; }
6616 if test "x$ac_cv_type_pid_t" = x""yes; then
6617   :
6618 else
6619
6620 cat >>confdefs.h <<_ACEOF
6621 #define pid_t int
6622 _ACEOF
6623
6624 fi
6625
6626
6627 for ac_header in vfork.h
6628 do
6629 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6631   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6632 $as_echo_n "checking for $ac_header... " >&6; }
6633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6634   $as_echo_n "(cached) " >&6
6635 fi
6636 ac_res=`eval 'as_val=${'$as_ac_Header'}
6637                  $as_echo "$as_val"'`
6638                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6639 $as_echo "$ac_res" >&6; }
6640 else
6641   # Is the header compilable?
6642 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6643 $as_echo_n "checking $ac_header usability... " >&6; }
6644 cat >conftest.$ac_ext <<_ACEOF
6645 /* confdefs.h.  */
6646 _ACEOF
6647 cat confdefs.h >>conftest.$ac_ext
6648 cat >>conftest.$ac_ext <<_ACEOF
6649 /* end confdefs.h.  */
6650 $ac_includes_default
6651 #include <$ac_header>
6652 _ACEOF
6653 rm -f conftest.$ac_objext
6654 if { (ac_try="$ac_compile"
6655 case "(($ac_try" in
6656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6657   *) ac_try_echo=$ac_try;;
6658 esac
6659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6660 $as_echo "$ac_try_echo") >&5
6661   (eval "$ac_compile") 2>conftest.er1
6662   ac_status=$?
6663   grep -v '^ *+' conftest.er1 >conftest.err
6664   rm -f conftest.er1
6665   cat conftest.err >&5
6666   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667   (exit $ac_status); } && {
6668          test -z "$ac_c_werror_flag" ||
6669          test ! -s conftest.err
6670        } && test -s conftest.$ac_objext; then
6671   ac_header_compiler=yes
6672 else
6673   $as_echo "$as_me: failed program was:" >&5
6674 sed 's/^/| /' conftest.$ac_ext >&5
6675
6676         ac_header_compiler=no
6677 fi
6678
6679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6680 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6681 $as_echo "$ac_header_compiler" >&6; }
6682
6683 # Is the header present?
6684 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6685 $as_echo_n "checking $ac_header presence... " >&6; }
6686 cat >conftest.$ac_ext <<_ACEOF
6687 /* confdefs.h.  */
6688 _ACEOF
6689 cat confdefs.h >>conftest.$ac_ext
6690 cat >>conftest.$ac_ext <<_ACEOF
6691 /* end confdefs.h.  */
6692 #include <$ac_header>
6693 _ACEOF
6694 if { (ac_try="$ac_cpp conftest.$ac_ext"
6695 case "(($ac_try" in
6696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6697   *) ac_try_echo=$ac_try;;
6698 esac
6699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6700 $as_echo "$ac_try_echo") >&5
6701   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6702   ac_status=$?
6703   grep -v '^ *+' conftest.er1 >conftest.err
6704   rm -f conftest.er1
6705   cat conftest.err >&5
6706   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707   (exit $ac_status); } >/dev/null && {
6708          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6709          test ! -s conftest.err
6710        }; then
6711   ac_header_preproc=yes
6712 else
6713   $as_echo "$as_me: failed program was:" >&5
6714 sed 's/^/| /' conftest.$ac_ext >&5
6715
6716   ac_header_preproc=no
6717 fi
6718
6719 rm -f conftest.err conftest.$ac_ext
6720 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6721 $as_echo "$ac_header_preproc" >&6; }
6722
6723 # So?  What about this header?
6724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6725   yes:no: )
6726     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6727 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6728     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6729 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6730     ac_header_preproc=yes
6731     ;;
6732   no:yes:* )
6733     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6734 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6735     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6736 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6737     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6738 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6739     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6740 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6741     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6742 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6743     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6744 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6745     ( cat <<\_ASBOX
6746 ## -------------------------------- ##
6747 ## Report this to wouter@debian.org ##
6748 ## -------------------------------- ##
6749 _ASBOX
6750      ) | sed "s/^/$as_me: WARNING:     /" >&2
6751     ;;
6752 esac
6753 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6754 $as_echo_n "checking for $ac_header... " >&6; }
6755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6756   $as_echo_n "(cached) " >&6
6757 else
6758   eval "$as_ac_Header=\$ac_header_preproc"
6759 fi
6760 ac_res=`eval 'as_val=${'$as_ac_Header'}
6761                  $as_echo "$as_val"'`
6762                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6763 $as_echo "$ac_res" >&6; }
6764
6765 fi
6766 as_val=`eval 'as_val=${'$as_ac_Header'}
6767                  $as_echo "$as_val"'`
6768    if test "x$as_val" = x""yes; then
6769   cat >>confdefs.h <<_ACEOF
6770 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6771 _ACEOF
6772
6773 fi
6774
6775 done
6776
6777
6778
6779 for ac_func in fork vfork
6780 do
6781 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6782 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6783 $as_echo_n "checking for $ac_func... " >&6; }
6784 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6785   $as_echo_n "(cached) " >&6
6786 else
6787   cat >conftest.$ac_ext <<_ACEOF
6788 /* confdefs.h.  */
6789 _ACEOF
6790 cat confdefs.h >>conftest.$ac_ext
6791 cat >>conftest.$ac_ext <<_ACEOF
6792 /* end confdefs.h.  */
6793 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6794    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6795 #define $ac_func innocuous_$ac_func
6796
6797 /* System header to define __stub macros and hopefully few prototypes,
6798     which can conflict with char $ac_func (); below.
6799     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6800     <limits.h> exists even on freestanding compilers.  */
6801
6802 #ifdef __STDC__
6803 # include <limits.h>
6804 #else
6805 # include <assert.h>
6806 #endif
6807
6808 #undef $ac_func
6809
6810 /* Override any GCC internal prototype to avoid an error.
6811    Use char because int might match the return type of a GCC
6812    builtin and then its argument prototype would still apply.  */
6813 #ifdef __cplusplus
6814 extern "C"
6815 #endif
6816 char $ac_func ();
6817 /* The GNU C library defines this for functions which it implements
6818     to always fail with ENOSYS.  Some functions are actually named
6819     something starting with __ and the normal name is an alias.  */
6820 #if defined __stub_$ac_func || defined __stub___$ac_func
6821 choke me
6822 #endif
6823
6824 int
6825 main ()
6826 {
6827 return $ac_func ();
6828   ;
6829   return 0;
6830 }
6831 _ACEOF
6832 rm -f conftest.$ac_objext conftest$ac_exeext
6833 if { (ac_try="$ac_link"
6834 case "(($ac_try" in
6835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6836   *) ac_try_echo=$ac_try;;
6837 esac
6838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6839 $as_echo "$ac_try_echo") >&5
6840   (eval "$ac_link") 2>conftest.er1
6841   ac_status=$?
6842   grep -v '^ *+' conftest.er1 >conftest.err
6843   rm -f conftest.er1
6844   cat conftest.err >&5
6845   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846   (exit $ac_status); } && {
6847          test -z "$ac_c_werror_flag" ||
6848          test ! -s conftest.err
6849        } && test -s conftest$ac_exeext && {
6850          test "$cross_compiling" = yes ||
6851          $as_test_x conftest$ac_exeext
6852        }; then
6853   eval "$as_ac_var=yes"
6854 else
6855   $as_echo "$as_me: failed program was:" >&5
6856 sed 's/^/| /' conftest.$ac_ext >&5
6857
6858         eval "$as_ac_var=no"
6859 fi
6860
6861 rm -rf conftest.dSYM
6862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6863       conftest$ac_exeext conftest.$ac_ext
6864 fi
6865 ac_res=`eval 'as_val=${'$as_ac_var'}
6866                  $as_echo "$as_val"'`
6867                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6868 $as_echo "$ac_res" >&6; }
6869 as_val=`eval 'as_val=${'$as_ac_var'}
6870                  $as_echo "$as_val"'`
6871    if test "x$as_val" = x""yes; then
6872   cat >>confdefs.h <<_ACEOF
6873 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6874 _ACEOF
6875
6876 fi
6877 done
6878
6879 if test "x$ac_cv_func_fork" = xyes; then
6880   { $as_echo "$as_me:$LINENO: checking for working fork" >&5
6881 $as_echo_n "checking for working fork... " >&6; }
6882 if test "${ac_cv_func_fork_works+set}" = set; then
6883   $as_echo_n "(cached) " >&6
6884 else
6885   if test "$cross_compiling" = yes; then
6886   ac_cv_func_fork_works=cross
6887 else
6888   cat >conftest.$ac_ext <<_ACEOF
6889 /* confdefs.h.  */
6890 _ACEOF
6891 cat confdefs.h >>conftest.$ac_ext
6892 cat >>conftest.$ac_ext <<_ACEOF
6893 /* end confdefs.h.  */
6894 $ac_includes_default
6895 int
6896 main ()
6897 {
6898
6899           /* By Ruediger Kuhlmann. */
6900           return fork () < 0;
6901
6902   ;
6903   return 0;
6904 }
6905 _ACEOF
6906 rm -f conftest$ac_exeext
6907 if { (ac_try="$ac_link"
6908 case "(($ac_try" in
6909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6910   *) ac_try_echo=$ac_try;;
6911 esac
6912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6913 $as_echo "$ac_try_echo") >&5
6914   (eval "$ac_link") 2>&5
6915   ac_status=$?
6916   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6918   { (case "(($ac_try" in
6919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6920   *) ac_try_echo=$ac_try;;
6921 esac
6922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6923 $as_echo "$ac_try_echo") >&5
6924   (eval "$ac_try") 2>&5
6925   ac_status=$?
6926   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927   (exit $ac_status); }; }; then
6928   ac_cv_func_fork_works=yes
6929 else
6930   $as_echo "$as_me: program exited with status $ac_status" >&5
6931 $as_echo "$as_me: failed program was:" >&5
6932 sed 's/^/| /' conftest.$ac_ext >&5
6933
6934 ( exit $ac_status )
6935 ac_cv_func_fork_works=no
6936 fi
6937 rm -rf conftest.dSYM
6938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6939 fi
6940
6941
6942 fi
6943 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
6944 $as_echo "$ac_cv_func_fork_works" >&6; }
6945
6946 else
6947   ac_cv_func_fork_works=$ac_cv_func_fork
6948 fi
6949 if test "x$ac_cv_func_fork_works" = xcross; then
6950   case $host in
6951     *-*-amigaos* | *-*-msdosdjgpp*)
6952       # Override, as these systems have only a dummy fork() stub
6953       ac_cv_func_fork_works=no
6954       ;;
6955     *)
6956       ac_cv_func_fork_works=yes
6957       ;;
6958   esac
6959   { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6960 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6961 fi
6962 ac_cv_func_vfork_works=$ac_cv_func_vfork
6963 if test "x$ac_cv_func_vfork" = xyes; then
6964   { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
6965 $as_echo_n "checking for working vfork... " >&6; }
6966 if test "${ac_cv_func_vfork_works+set}" = set; then
6967   $as_echo_n "(cached) " >&6
6968 else
6969   if test "$cross_compiling" = yes; then
6970   ac_cv_func_vfork_works=cross
6971 else
6972   cat >conftest.$ac_ext <<_ACEOF
6973 /* confdefs.h.  */
6974 _ACEOF
6975 cat confdefs.h >>conftest.$ac_ext
6976 cat >>conftest.$ac_ext <<_ACEOF
6977 /* end confdefs.h.  */
6978 /* Thanks to Paul Eggert for this test.  */
6979 $ac_includes_default
6980 #include <sys/wait.h>
6981 #ifdef HAVE_VFORK_H
6982 # include <vfork.h>
6983 #endif
6984 /* On some sparc systems, changes by the child to local and incoming
6985    argument registers are propagated back to the parent.  The compiler
6986    is told about this with #include <vfork.h>, but some compilers
6987    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
6988    static variable whose address is put into a register that is
6989    clobbered by the vfork.  */
6990 static void
6991 #ifdef __cplusplus
6992 sparc_address_test (int arg)
6993 # else
6994 sparc_address_test (arg) int arg;
6995 #endif
6996 {
6997   static pid_t child;
6998   if (!child) {
6999     child = vfork ();
7000     if (child < 0) {
7001       perror ("vfork");
7002       _exit(2);
7003     }
7004     if (!child) {
7005       arg = getpid();
7006       write(-1, "", 0);
7007       _exit (arg);
7008     }
7009   }
7010 }
7011
7012 int
7013 main ()
7014 {
7015   pid_t parent = getpid ();
7016   pid_t child;
7017
7018   sparc_address_test (0);
7019
7020   child = vfork ();
7021
7022   if (child == 0) {
7023     /* Here is another test for sparc vfork register problems.  This
7024        test uses lots of local variables, at least as many local
7025        variables as main has allocated so far including compiler
7026        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
7027        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
7028        reuse the register of parent for one of the local variables,
7029        since it will think that parent can't possibly be used any more
7030        in this routine.  Assigning to the local variable will thus
7031        munge parent in the parent process.  */
7032     pid_t
7033       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7034       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7035     /* Convince the compiler that p..p7 are live; otherwise, it might
7036        use the same hardware register for all 8 local variables.  */
7037     if (p != p1 || p != p2 || p != p3 || p != p4
7038         || p != p5 || p != p6 || p != p7)
7039       _exit(1);
7040
7041     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7042        from child file descriptors.  If the child closes a descriptor
7043        before it execs or exits, this munges the parent's descriptor
7044        as well.  Test for this by closing stdout in the child.  */
7045     _exit(close(fileno(stdout)) != 0);
7046   } else {
7047     int status;
7048     struct stat st;
7049
7050     while (wait(&status) != child)
7051       ;
7052     return (
7053          /* Was there some problem with vforking?  */
7054          child < 0
7055
7056          /* Did the child fail?  (This shouldn't happen.)  */
7057          || status
7058
7059          /* Did the vfork/compiler bug occur?  */
7060          || parent != getpid()
7061
7062          /* Did the file descriptor bug occur?  */
7063          || fstat(fileno(stdout), &st) != 0
7064          );
7065   }
7066 }
7067 _ACEOF
7068 rm -f conftest$ac_exeext
7069 if { (ac_try="$ac_link"
7070 case "(($ac_try" in
7071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7072   *) ac_try_echo=$ac_try;;
7073 esac
7074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7075 $as_echo "$ac_try_echo") >&5
7076   (eval "$ac_link") 2>&5
7077   ac_status=$?
7078   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7080   { (case "(($ac_try" in
7081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7082   *) ac_try_echo=$ac_try;;
7083 esac
7084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7085 $as_echo "$ac_try_echo") >&5
7086   (eval "$ac_try") 2>&5
7087   ac_status=$?
7088   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089   (exit $ac_status); }; }; then
7090   ac_cv_func_vfork_works=yes
7091 else
7092   $as_echo "$as_me: program exited with status $ac_status" >&5
7093 $as_echo "$as_me: failed program was:" >&5
7094 sed 's/^/| /' conftest.$ac_ext >&5
7095
7096 ( exit $ac_status )
7097 ac_cv_func_vfork_works=no
7098 fi
7099 rm -rf conftest.dSYM
7100 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7101 fi
7102
7103
7104 fi
7105 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7106 $as_echo "$ac_cv_func_vfork_works" >&6; }
7107
7108 fi;
7109 if test "x$ac_cv_func_fork_works" = xcross; then
7110   ac_cv_func_vfork_works=$ac_cv_func_vfork
7111   { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7112 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7113 fi
7114
7115 if test "x$ac_cv_func_vfork_works" = xyes; then
7116
7117 cat >>confdefs.h <<\_ACEOF
7118 #define HAVE_WORKING_VFORK 1
7119 _ACEOF
7120
7121 else
7122
7123 cat >>confdefs.h <<\_ACEOF
7124 #define vfork fork
7125 _ACEOF
7126
7127 fi
7128 if test "x$ac_cv_func_fork_works" = xyes; then
7129
7130 cat >>confdefs.h <<\_ACEOF
7131 #define HAVE_WORKING_FORK 1
7132 _ACEOF
7133
7134 fi
7135
7136 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
7137   $as_echo_n "(cached) " >&6
7138 else
7139   ac_cv_func_setvbuf_reversed=no
7140 fi
7141
7142
7143 { $as_echo "$as_me:$LINENO: checking whether client should be built" >&5
7144 $as_echo_n "checking whether client should be built... " >&6; }
7145 case $host_os in
7146      linux*) sbin_PROGRAMS="$sbin_PROGRAMS nbd-client"
7147               { $as_echo "$as_me:$LINENO: result: yes" >&5
7148 $as_echo "yes" >&6; }
7149               ;;
7150      *) { $as_echo "$as_me:$LINENO: result: no" >&5
7151 $as_echo "no" >&6; } ;;
7152 esac
7153 { $as_echo "$as_me:$LINENO: checking where to find a working nbd.h" >&5
7154 $as_echo_n "checking where to find a working nbd.h... " >&6; }
7155 cat >conftest.$ac_ext <<_ACEOF
7156 /* confdefs.h.  */
7157 _ACEOF
7158 cat confdefs.h >>conftest.$ac_ext
7159 cat >>conftest.$ac_ext <<_ACEOF
7160 /* end confdefs.h.  */
7161 #define u32 int
7162 #define u64 int
7163 #define __be32 int
7164 #define __be64 int
7165 #include "nbd.h"
7166 #ifdef __GNUC__
7167 #define UNUSED __attribute__((__unused__))
7168 #else
7169 #define UNUSED
7170 #endif
7171
7172 int
7173 main ()
7174 {
7175 int UNUSED foo=NBD_CMD_DISC
7176   ;
7177   return 0;
7178 }
7179 _ACEOF
7180 rm -f conftest.$ac_objext
7181 if { (ac_try="$ac_compile"
7182 case "(($ac_try" in
7183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7184   *) ac_try_echo=$ac_try;;
7185 esac
7186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7187 $as_echo "$ac_try_echo") >&5
7188   (eval "$ac_compile") 2>conftest.er1
7189   ac_status=$?
7190   grep -v '^ *+' conftest.er1 >conftest.err
7191   rm -f conftest.er1
7192   cat conftest.err >&5
7193   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194   (exit $ac_status); } && {
7195          test -z "$ac_c_werror_flag" ||
7196          test ! -s conftest.err
7197        } && test -s conftest.$ac_objext; then
7198
7199 cat >>confdefs.h <<\_ACEOF
7200 #define NBD_H_LOCAL 1
7201 _ACEOF
7202
7203     NBD_H='"nbd.h"'
7204 else
7205   $as_echo "$as_me: failed program was:" >&5
7206 sed 's/^/| /' conftest.$ac_ext >&5
7207
7208         cat >conftest.$ac_ext <<_ACEOF
7209 /* confdefs.h.  */
7210 _ACEOF
7211 cat confdefs.h >>conftest.$ac_ext
7212 cat >>conftest.$ac_ext <<_ACEOF
7213 /* end confdefs.h.  */
7214 #define u32 int
7215 #define u64 int
7216 #define __be32 int
7217 #define __be64 int
7218 #include <linux/nbd.h>
7219 #ifdef __GNUC__
7220 #define UNUSED __attribute__((__unused__))
7221 #else
7222 #define UNUSED
7223 #endif
7224
7225 int
7226 main ()
7227 {
7228 int UNUSED foo=NBD_CMD_DISC
7229   ;
7230   return 0;
7231 }
7232 _ACEOF
7233 rm -f conftest.$ac_objext
7234 if { (ac_try="$ac_compile"
7235 case "(($ac_try" in
7236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7237   *) ac_try_echo=$ac_try;;
7238 esac
7239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7240 $as_echo "$ac_try_echo") >&5
7241   (eval "$ac_compile") 2>conftest.er1
7242   ac_status=$?
7243   grep -v '^ *+' conftest.er1 >conftest.err
7244   rm -f conftest.er1
7245   cat conftest.err >&5
7246   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247   (exit $ac_status); } && {
7248          test -z "$ac_c_werror_flag" ||
7249          test ! -s conftest.err
7250        } && test -s conftest.$ac_objext; then
7251
7252 cat >>confdefs.h <<\_ACEOF
7253 #define NBD_H_LINUX 1
7254 _ACEOF
7255
7256       NBD_H='<linux/nbd.h>'
7257 else
7258   $as_echo "$as_me: failed program was:" >&5
7259 sed 's/^/| /' conftest.$ac_ext >&5
7260
7261         cat >conftest.$ac_ext <<_ACEOF
7262 /* confdefs.h.  */
7263 _ACEOF
7264 cat confdefs.h >>conftest.$ac_ext
7265 cat >>conftest.$ac_ext <<_ACEOF
7266 /* end confdefs.h.  */
7267 #include <linux/nbd.h>
7268 #ifdef __GNUC__
7269 #define UNUSED __attribute__((__unused__))
7270 #else
7271 #define UNUSED
7272 #endif
7273
7274 int
7275 main ()
7276 {
7277 int UNUSED foo=NBD_CMD_DISC
7278   ;
7279   return 0;
7280 }
7281 _ACEOF
7282 rm -f conftest.$ac_objext
7283 if { (ac_try="$ac_compile"
7284 case "(($ac_try" in
7285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7286   *) ac_try_echo=$ac_try;;
7287 esac
7288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7289 $as_echo "$ac_try_echo") >&5
7290   (eval "$ac_compile") 2>conftest.er1
7291   ac_status=$?
7292   grep -v '^ *+' conftest.er1 >conftest.err
7293   rm -f conftest.er1
7294   cat conftest.err >&5
7295   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296   (exit $ac_status); } && {
7297          test -z "$ac_c_werror_flag" ||
7298          test ! -s conftest.err
7299        } && test -s conftest.$ac_objext; then
7300
7301 cat >>confdefs.h <<\_ACEOF
7302 #define NBD_H_LINUX 1
7303 _ACEOF
7304
7305         NBD_H='<linux/nbd.h>'
7306 else
7307   $as_echo "$as_me: failed program was:" >&5
7308 sed 's/^/| /' conftest.$ac_ext >&5
7309
7310         { { $as_echo "$as_me:$LINENO: error: Could not find an nbd.h from 2.6 or above." >&5
7311 $as_echo "$as_me: error: Could not find an nbd.h from 2.6 or above." >&2;}
7312    { (exit 1); exit 1; }; }
7313
7314 fi
7315
7316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7317
7318 fi
7319
7320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7321
7322 fi
7323
7324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7325 if test -f nbd.h
7326 then
7327   if test "$NBD_H" = '<linux/nbd.h>'
7328   then
7329     { $as_echo "$as_me:$LINENO: WARNING: there is a local nbd.h, but it is from the 2.4-series of kernels. Using the system-provided, working, nbd.h" >&5
7330 $as_echo "$as_me: WARNING: there is a local nbd.h, but it is from the 2.4-series of kernels. Using the system-provided, working, nbd.h" >&2;}
7331   fi
7332 fi
7333 { $as_echo "$as_me:$LINENO: result: $NBD_H" >&5
7334 $as_echo "$NBD_H" >&6; }
7335 { $as_echo "$as_me:$LINENO: checking for library containing bind" >&5
7336 $as_echo_n "checking for library containing bind... " >&6; }
7337 if test "${ac_cv_search_bind+set}" = set; then
7338   $as_echo_n "(cached) " >&6
7339 else
7340   ac_func_search_save_LIBS=$LIBS
7341 cat >conftest.$ac_ext <<_ACEOF
7342 /* confdefs.h.  */
7343 _ACEOF
7344 cat confdefs.h >>conftest.$ac_ext
7345 cat >>conftest.$ac_ext <<_ACEOF
7346 /* end confdefs.h.  */
7347
7348 /* Override any GCC internal prototype to avoid an error.
7349    Use char because int might match the return type of a GCC
7350    builtin and then its argument prototype would still apply.  */
7351 #ifdef __cplusplus
7352 extern "C"
7353 #endif
7354 char bind ();
7355 int
7356 main ()
7357 {
7358 return bind ();
7359   ;
7360   return 0;
7361 }
7362 _ACEOF
7363 for ac_lib in '' socket; do
7364   if test -z "$ac_lib"; then
7365     ac_res="none required"
7366   else
7367     ac_res=-l$ac_lib
7368     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7369   fi
7370   rm -f conftest.$ac_objext conftest$ac_exeext
7371 if { (ac_try="$ac_link"
7372 case "(($ac_try" in
7373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7374   *) ac_try_echo=$ac_try;;
7375 esac
7376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7377 $as_echo "$ac_try_echo") >&5
7378   (eval "$ac_link") 2>conftest.er1
7379   ac_status=$?
7380   grep -v '^ *+' conftest.er1 >conftest.err
7381   rm -f conftest.er1
7382   cat conftest.err >&5
7383   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384   (exit $ac_status); } && {
7385          test -z "$ac_c_werror_flag" ||
7386          test ! -s conftest.err
7387        } && test -s conftest$ac_exeext && {
7388          test "$cross_compiling" = yes ||
7389          $as_test_x conftest$ac_exeext
7390        }; then
7391   ac_cv_search_bind=$ac_res
7392 else
7393   $as_echo "$as_me: failed program was:" >&5
7394 sed 's/^/| /' conftest.$ac_ext >&5
7395
7396
7397 fi
7398
7399 rm -rf conftest.dSYM
7400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7401       conftest$ac_exeext
7402   if test "${ac_cv_search_bind+set}" = set; then
7403   break
7404 fi
7405 done
7406 if test "${ac_cv_search_bind+set}" = set; then
7407   :
7408 else
7409   ac_cv_search_bind=no
7410 fi
7411 rm conftest.$ac_ext
7412 LIBS=$ac_func_search_save_LIBS
7413 fi
7414 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind" >&5
7415 $as_echo "$ac_cv_search_bind" >&6; }
7416 ac_res=$ac_cv_search_bind
7417 if test "$ac_res" != no; then
7418   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7419
7420 else
7421   { { $as_echo "$as_me:$LINENO: error: Could not find an implementation of the bind() system call" >&5
7422 $as_echo "$as_me: error: Could not find an implementation of the bind() system call" >&2;}
7423    { (exit 1); exit 1; }; }
7424 fi
7425
7426 { $as_echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
7427 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
7428 if test "${ac_cv_search_inet_ntoa+set}" = set; then
7429   $as_echo_n "(cached) " >&6
7430 else
7431   ac_func_search_save_LIBS=$LIBS
7432 cat >conftest.$ac_ext <<_ACEOF
7433 /* confdefs.h.  */
7434 _ACEOF
7435 cat confdefs.h >>conftest.$ac_ext
7436 cat >>conftest.$ac_ext <<_ACEOF
7437 /* end confdefs.h.  */
7438
7439 /* Override any GCC internal prototype to avoid an error.
7440    Use char because int might match the return type of a GCC
7441    builtin and then its argument prototype would still apply.  */
7442 #ifdef __cplusplus
7443 extern "C"
7444 #endif
7445 char inet_ntoa ();
7446 int
7447 main ()
7448 {
7449 return inet_ntoa ();
7450   ;
7451   return 0;
7452 }
7453 _ACEOF
7454 for ac_lib in '' nsl; do
7455   if test -z "$ac_lib"; then
7456     ac_res="none required"
7457   else
7458     ac_res=-l$ac_lib
7459     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7460   fi
7461   rm -f conftest.$ac_objext conftest$ac_exeext
7462 if { (ac_try="$ac_link"
7463 case "(($ac_try" in
7464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7465   *) ac_try_echo=$ac_try;;
7466 esac
7467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7468 $as_echo "$ac_try_echo") >&5
7469   (eval "$ac_link") 2>conftest.er1
7470   ac_status=$?
7471   grep -v '^ *+' conftest.er1 >conftest.err
7472   rm -f conftest.er1
7473   cat conftest.err >&5
7474   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475   (exit $ac_status); } && {
7476          test -z "$ac_c_werror_flag" ||
7477          test ! -s conftest.err
7478        } && test -s conftest$ac_exeext && {
7479          test "$cross_compiling" = yes ||
7480          $as_test_x conftest$ac_exeext
7481        }; then
7482   ac_cv_search_inet_ntoa=$ac_res
7483 else
7484   $as_echo "$as_me: failed program was:" >&5
7485 sed 's/^/| /' conftest.$ac_ext >&5
7486
7487
7488 fi
7489
7490 rm -rf conftest.dSYM
7491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7492       conftest$ac_exeext
7493   if test "${ac_cv_search_inet_ntoa+set}" = set; then
7494   break
7495 fi
7496 done
7497 if test "${ac_cv_search_inet_ntoa+set}" = set; then
7498   :
7499 else
7500   ac_cv_search_inet_ntoa=no
7501 fi
7502 rm conftest.$ac_ext
7503 LIBS=$ac_func_search_save_LIBS
7504 fi
7505 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
7506 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
7507 ac_res=$ac_cv_search_inet_ntoa
7508 if test "$ac_res" != no; then
7509   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7510
7511 else
7512   { { $as_echo "$as_me:$LINENO: error: Could not find an implementation of the inet_ntoa() system call" >&5
7513 $as_echo "$as_me: error: Could not find an implementation of the inet_ntoa() system call" >&2;}
7514    { (exit 1); exit 1; }; }
7515 fi
7516
7517 { $as_echo "$as_me:$LINENO: checking for library containing daemon" >&5
7518 $as_echo_n "checking for library containing daemon... " >&6; }
7519 if test "${ac_cv_search_daemon+set}" = set; then
7520   $as_echo_n "(cached) " >&6
7521 else
7522   ac_func_search_save_LIBS=$LIBS
7523 cat >conftest.$ac_ext <<_ACEOF
7524 /* confdefs.h.  */
7525 _ACEOF
7526 cat confdefs.h >>conftest.$ac_ext
7527 cat >>conftest.$ac_ext <<_ACEOF
7528 /* end confdefs.h.  */
7529
7530 /* Override any GCC internal prototype to avoid an error.
7531    Use char because int might match the return type of a GCC
7532    builtin and then its argument prototype would still apply.  */
7533 #ifdef __cplusplus
7534 extern "C"
7535 #endif
7536 char daemon ();
7537 int
7538 main ()
7539 {
7540 return daemon ();
7541   ;
7542   return 0;
7543 }
7544 _ACEOF
7545 for ac_lib in '' resolv; do
7546   if test -z "$ac_lib"; then
7547     ac_res="none required"
7548   else
7549     ac_res=-l$ac_lib
7550     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7551   fi
7552   rm -f conftest.$ac_objext conftest$ac_exeext
7553 if { (ac_try="$ac_link"
7554 case "(($ac_try" in
7555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7556   *) ac_try_echo=$ac_try;;
7557 esac
7558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7559 $as_echo "$ac_try_echo") >&5
7560   (eval "$ac_link") 2>conftest.er1
7561   ac_status=$?
7562   grep -v '^ *+' conftest.er1 >conftest.err
7563   rm -f conftest.er1
7564   cat conftest.err >&5
7565   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566   (exit $ac_status); } && {
7567          test -z "$ac_c_werror_flag" ||
7568          test ! -s conftest.err
7569        } && test -s conftest$ac_exeext && {
7570          test "$cross_compiling" = yes ||
7571          $as_test_x conftest$ac_exeext
7572        }; then
7573   ac_cv_search_daemon=$ac_res
7574 else
7575   $as_echo "$as_me: failed program was:" >&5
7576 sed 's/^/| /' conftest.$ac_ext >&5
7577
7578
7579 fi
7580
7581 rm -rf conftest.dSYM
7582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7583       conftest$ac_exeext
7584   if test "${ac_cv_search_daemon+set}" = set; then
7585   break
7586 fi
7587 done
7588 if test "${ac_cv_search_daemon+set}" = set; then
7589   :
7590 else
7591   ac_cv_search_daemon=no
7592 fi
7593 rm conftest.$ac_ext
7594 LIBS=$ac_func_search_save_LIBS
7595 fi
7596 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_daemon" >&5
7597 $as_echo "$ac_cv_search_daemon" >&6; }
7598 ac_res=$ac_cv_search_daemon
7599 if test "$ac_res" != no; then
7600   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7601
7602 else
7603   { { $as_echo "$as_me:$LINENO: error: Could not find an implementation of the daemon() system call" >&5
7604 $as_echo "$as_me: error: Could not find an implementation of the daemon() system call" >&2;}
7605    { (exit 1); exit 1; }; }
7606 fi
7607
7608
7609 for ac_header in sys/mount.h
7610 do
7611 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7612 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7613 $as_echo_n "checking for $ac_header... " >&6; }
7614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7615   $as_echo_n "(cached) " >&6
7616 else
7617   cat >conftest.$ac_ext <<_ACEOF
7618 /* confdefs.h.  */
7619 _ACEOF
7620 cat confdefs.h >>conftest.$ac_ext
7621 cat >>conftest.$ac_ext <<_ACEOF
7622 /* end confdefs.h.  */
7623 #include <sys/param.h>
7624
7625
7626 #include <$ac_header>
7627 _ACEOF
7628 rm -f conftest.$ac_objext
7629 if { (ac_try="$ac_compile"
7630 case "(($ac_try" in
7631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7632   *) ac_try_echo=$ac_try;;
7633 esac
7634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7635 $as_echo "$ac_try_echo") >&5
7636   (eval "$ac_compile") 2>conftest.er1
7637   ac_status=$?
7638   grep -v '^ *+' conftest.er1 >conftest.err
7639   rm -f conftest.er1
7640   cat conftest.err >&5
7641   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642   (exit $ac_status); } && {
7643          test -z "$ac_c_werror_flag" ||
7644          test ! -s conftest.err
7645        } && test -s conftest.$ac_objext; then
7646   eval "$as_ac_Header=yes"
7647 else
7648   $as_echo "$as_me: failed program was:" >&5
7649 sed 's/^/| /' conftest.$ac_ext >&5
7650
7651         eval "$as_ac_Header=no"
7652 fi
7653
7654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7655 fi
7656 ac_res=`eval 'as_val=${'$as_ac_Header'}
7657                  $as_echo "$as_val"'`
7658                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7659 $as_echo "$ac_res" >&6; }
7660 as_val=`eval 'as_val=${'$as_ac_Header'}
7661                  $as_echo "$as_val"'`
7662    if test "x$as_val" = x""yes; then
7663   cat >>confdefs.h <<_ACEOF
7664 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7665 _ACEOF
7666
7667 fi
7668
7669 done
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679 for ac_header in arpa/inet.h fcntl.h netdb.h netinet/in.h sys/ioctl.h sys/socket.h syslog.h linux/types.h
7680 do
7681 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7683   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7684 $as_echo_n "checking for $ac_header... " >&6; }
7685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7686   $as_echo_n "(cached) " >&6
7687 fi
7688 ac_res=`eval 'as_val=${'$as_ac_Header'}
7689                  $as_echo "$as_val"'`
7690                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7691 $as_echo "$ac_res" >&6; }
7692 else
7693   # Is the header compilable?
7694 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7695 $as_echo_n "checking $ac_header usability... " >&6; }
7696 cat >conftest.$ac_ext <<_ACEOF
7697 /* confdefs.h.  */
7698 _ACEOF
7699 cat confdefs.h >>conftest.$ac_ext
7700 cat >>conftest.$ac_ext <<_ACEOF
7701 /* end confdefs.h.  */
7702 $ac_includes_default
7703 #include <$ac_header>
7704 _ACEOF
7705 rm -f conftest.$ac_objext
7706 if { (ac_try="$ac_compile"
7707 case "(($ac_try" in
7708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7709   *) ac_try_echo=$ac_try;;
7710 esac
7711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7712 $as_echo "$ac_try_echo") >&5
7713   (eval "$ac_compile") 2>conftest.er1
7714   ac_status=$?
7715   grep -v '^ *+' conftest.er1 >conftest.err
7716   rm -f conftest.er1
7717   cat conftest.err >&5
7718   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719   (exit $ac_status); } && {
7720          test -z "$ac_c_werror_flag" ||
7721          test ! -s conftest.err
7722        } && test -s conftest.$ac_objext; then
7723   ac_header_compiler=yes
7724 else
7725   $as_echo "$as_me: failed program was:" >&5
7726 sed 's/^/| /' conftest.$ac_ext >&5
7727
7728         ac_header_compiler=no
7729 fi
7730
7731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7732 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7733 $as_echo "$ac_header_compiler" >&6; }
7734
7735 # Is the header present?
7736 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7737 $as_echo_n "checking $ac_header presence... " >&6; }
7738 cat >conftest.$ac_ext <<_ACEOF
7739 /* confdefs.h.  */
7740 _ACEOF
7741 cat confdefs.h >>conftest.$ac_ext
7742 cat >>conftest.$ac_ext <<_ACEOF
7743 /* end confdefs.h.  */
7744 #include <$ac_header>
7745 _ACEOF
7746 if { (ac_try="$ac_cpp conftest.$ac_ext"
7747 case "(($ac_try" in
7748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7749   *) ac_try_echo=$ac_try;;
7750 esac
7751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7752 $as_echo "$ac_try_echo") >&5
7753   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7754   ac_status=$?
7755   grep -v '^ *+' conftest.er1 >conftest.err
7756   rm -f conftest.er1
7757   cat conftest.err >&5
7758   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759   (exit $ac_status); } >/dev/null && {
7760          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7761          test ! -s conftest.err
7762        }; then
7763   ac_header_preproc=yes
7764 else
7765   $as_echo "$as_me: failed program was:" >&5
7766 sed 's/^/| /' conftest.$ac_ext >&5
7767
7768   ac_header_preproc=no
7769 fi
7770
7771 rm -f conftest.err conftest.$ac_ext
7772 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7773 $as_echo "$ac_header_preproc" >&6; }
7774
7775 # So?  What about this header?
7776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7777   yes:no: )
7778     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7779 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7780     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7781 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7782     ac_header_preproc=yes
7783     ;;
7784   no:yes:* )
7785     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7786 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7787     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7788 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7789     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7790 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7791     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7792 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7793     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7794 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7795     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7796 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7797     ( cat <<\_ASBOX
7798 ## -------------------------------- ##
7799 ## Report this to wouter@debian.org ##
7800 ## -------------------------------- ##
7801 _ASBOX
7802      ) | sed "s/^/$as_me: WARNING:     /" >&2
7803     ;;
7804 esac
7805 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7806 $as_echo_n "checking for $ac_header... " >&6; }
7807 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7808   $as_echo_n "(cached) " >&6
7809 else
7810   eval "$as_ac_Header=\$ac_header_preproc"
7811 fi
7812 ac_res=`eval 'as_val=${'$as_ac_Header'}
7813                  $as_echo "$as_val"'`
7814                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7815 $as_echo "$ac_res" >&6; }
7816
7817 fi
7818 as_val=`eval 'as_val=${'$as_ac_Header'}
7819                  $as_echo "$as_val"'`
7820    if test "x$as_val" = x""yes; then
7821   cat >>confdefs.h <<_ACEOF
7822 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7823 _ACEOF
7824
7825 fi
7826
7827 done
7828
7829 # Check whether --enable-glibtest was given.
7830 if test "${enable_glibtest+set}" = set; then
7831   enableval=$enable_glibtest;
7832 else
7833   enable_glibtest=yes
7834 fi
7835
7836
7837   pkg_config_args=glib-2.0
7838   for module in .
7839   do
7840       case "$module" in
7841          gmodule)
7842              pkg_config_args="$pkg_config_args gmodule-2.0"
7843          ;;
7844          gmodule-no-export)
7845              pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
7846          ;;
7847          gobject)
7848              pkg_config_args="$pkg_config_args gobject-2.0"
7849          ;;
7850          gthread)
7851              pkg_config_args="$pkg_config_args gthread-2.0"
7852          ;;
7853          gio*)
7854              pkg_config_args="$pkg_config_args $module-2.0"
7855          ;;
7856       esac
7857   done
7858
7859
7860
7861 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7862         if test -n "$ac_tool_prefix"; then
7863   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7864 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7865 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7866 $as_echo_n "checking for $ac_word... " >&6; }
7867 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7868   $as_echo_n "(cached) " >&6
7869 else
7870   case $PKG_CONFIG in
7871   [\\/]* | ?:[\\/]*)
7872   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7873   ;;
7874   *)
7875   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7876 for as_dir in $PATH
7877 do
7878   IFS=$as_save_IFS
7879   test -z "$as_dir" && as_dir=.
7880   for ac_exec_ext in '' $ac_executable_extensions; do
7881   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7882     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7883     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7884     break 2
7885   fi
7886 done
7887 done
7888 IFS=$as_save_IFS
7889
7890   ;;
7891 esac
7892 fi
7893 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7894 if test -n "$PKG_CONFIG"; then
7895   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7896 $as_echo "$PKG_CONFIG" >&6; }
7897 else
7898   { $as_echo "$as_me:$LINENO: result: no" >&5
7899 $as_echo "no" >&6; }
7900 fi
7901
7902
7903 fi
7904 if test -z "$ac_cv_path_PKG_CONFIG"; then
7905   ac_pt_PKG_CONFIG=$PKG_CONFIG
7906   # Extract the first word of "pkg-config", so it can be a program name with args.
7907 set dummy pkg-config; ac_word=$2
7908 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7909 $as_echo_n "checking for $ac_word... " >&6; }
7910 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
7911   $as_echo_n "(cached) " >&6
7912 else
7913   case $ac_pt_PKG_CONFIG in
7914   [\\/]* | ?:[\\/]*)
7915   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7916   ;;
7917   *)
7918   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7919 for as_dir in $PATH
7920 do
7921   IFS=$as_save_IFS
7922   test -z "$as_dir" && as_dir=.
7923   for ac_exec_ext in '' $ac_executable_extensions; do
7924   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7925     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7926     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7927     break 2
7928   fi
7929 done
7930 done
7931 IFS=$as_save_IFS
7932
7933   ;;
7934 esac
7935 fi
7936 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7937 if test -n "$ac_pt_PKG_CONFIG"; then
7938   { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
7939 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7940 else
7941   { $as_echo "$as_me:$LINENO: result: no" >&5
7942 $as_echo "no" >&6; }
7943 fi
7944
7945   if test "x$ac_pt_PKG_CONFIG" = x; then
7946     PKG_CONFIG=""
7947   else
7948     case $cross_compiling:$ac_tool_warned in
7949 yes:)
7950 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7951 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7952 ac_tool_warned=yes ;;
7953 esac
7954     PKG_CONFIG=$ac_pt_PKG_CONFIG
7955   fi
7956 else
7957   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7958 fi
7959
7960 fi
7961 if test -n "$PKG_CONFIG"; then
7962         _pkg_min_version=0.16
7963         { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
7964 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7965         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7966                 { $as_echo "$as_me:$LINENO: result: yes" >&5
7967 $as_echo "yes" >&6; }
7968         else
7969                 { $as_echo "$as_me:$LINENO: result: no" >&5
7970 $as_echo "no" >&6; }
7971                 PKG_CONFIG=""
7972         fi
7973
7974 fi
7975
7976   no_glib=""
7977
7978   if test "x$PKG_CONFIG" = x ; then
7979     no_glib=yes
7980     PKG_CONFIG=no
7981   fi
7982
7983   min_glib_version=2.6.0
7984   { $as_echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5
7985 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
7986
7987   if test x$PKG_CONFIG != xno ; then
7988     ## don't try to run the test against uninstalled libtool libs
7989     if $PKG_CONFIG --uninstalled $pkg_config_args; then
7990           echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
7991           enable_glibtest=no
7992     fi
7993
7994     if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
7995           :
7996     else
7997           no_glib=yes
7998     fi
7999   fi
8000
8001   if test x"$no_glib" = x ; then
8002     GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
8003     GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
8004     GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
8005
8006     GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
8007     GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
8008     glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
8009            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8010     glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
8011            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8012     glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
8013            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8014     if test "x$enable_glibtest" = "xyes" ; then
8015       ac_save_CFLAGS="$CFLAGS"
8016       ac_save_LIBS="$LIBS"
8017       CFLAGS="$CFLAGS $GLIB_CFLAGS"
8018       LIBS="$GLIB_LIBS $LIBS"
8019       rm -f conf.glibtest
8020       if test "$cross_compiling" = yes; then
8021   echo $ac_n "cross compiling; assumed OK... $ac_c"
8022 else
8023   cat >conftest.$ac_ext <<_ACEOF
8024 /* confdefs.h.  */
8025 _ACEOF
8026 cat confdefs.h >>conftest.$ac_ext
8027 cat >>conftest.$ac_ext <<_ACEOF
8028 /* end confdefs.h.  */
8029
8030 #include <glib.h>
8031 #include <stdio.h>
8032 #include <stdlib.h>
8033
8034 int
8035 main ()
8036 {
8037   int major, minor, micro;
8038   char *tmp_version;
8039   int ignored;
8040
8041   ignored = system ("touch conf.glibtest");
8042
8043   /* HP/UX 9 (%@#!) writes to sscanf strings */
8044   tmp_version = g_strdup("$min_glib_version");
8045   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8046      printf("%s, bad version string\n", "$min_glib_version");
8047      exit(1);
8048    }
8049
8050   if ((glib_major_version != $glib_config_major_version) ||
8051       (glib_minor_version != $glib_config_minor_version) ||
8052       (glib_micro_version != $glib_config_micro_version))
8053     {
8054       printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
8055              $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
8056              glib_major_version, glib_minor_version, glib_micro_version);
8057       printf ("*** was found! If pkg-config was correct, then it is best\n");
8058       printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
8059       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
8060       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
8061       printf("*** required on your system.\n");
8062       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
8063       printf("*** to point to the correct configuration files\n");
8064     }
8065   else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
8066            (glib_minor_version != GLIB_MINOR_VERSION) ||
8067            (glib_micro_version != GLIB_MICRO_VERSION))
8068     {
8069       printf("*** GLIB header files (version %d.%d.%d) do not match\n",
8070              GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
8071       printf("*** library (version %d.%d.%d)\n",
8072              glib_major_version, glib_minor_version, glib_micro_version);
8073     }
8074   else
8075     {
8076       if ((glib_major_version > major) ||
8077         ((glib_major_version == major) && (glib_minor_version > minor)) ||
8078         ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
8079       {
8080         return 0;
8081        }
8082      else
8083       {
8084         printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
8085                glib_major_version, glib_minor_version, glib_micro_version);
8086         printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
8087                major, minor, micro);
8088         printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
8089         printf("***\n");
8090         printf("*** If you have already installed a sufficiently new version, this error\n");
8091         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
8092         printf("*** being found. The easiest way to fix this is to remove the old version\n");
8093         printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
8094         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
8095         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
8096         printf("*** so that the correct libraries are found at run-time))\n");
8097       }
8098     }
8099   return 1;
8100 }
8101
8102 _ACEOF
8103 rm -f conftest$ac_exeext
8104 if { (ac_try="$ac_link"
8105 case "(($ac_try" in
8106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8107   *) ac_try_echo=$ac_try;;
8108 esac
8109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8110 $as_echo "$ac_try_echo") >&5
8111   (eval "$ac_link") 2>&5
8112   ac_status=$?
8113   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8115   { (case "(($ac_try" in
8116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8117   *) ac_try_echo=$ac_try;;
8118 esac
8119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8120 $as_echo "$ac_try_echo") >&5
8121   (eval "$ac_try") 2>&5
8122   ac_status=$?
8123   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124   (exit $ac_status); }; }; then
8125   :
8126 else
8127   $as_echo "$as_me: program exited with status $ac_status" >&5
8128 $as_echo "$as_me: failed program was:" >&5
8129 sed 's/^/| /' conftest.$ac_ext >&5
8130
8131 ( exit $ac_status )
8132 no_glib=yes
8133 fi
8134 rm -rf conftest.dSYM
8135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8136 fi
8137
8138
8139        CFLAGS="$ac_save_CFLAGS"
8140        LIBS="$ac_save_LIBS"
8141      fi
8142   fi
8143   if test "x$no_glib" = x ; then
8144      { $as_echo "$as_me:$LINENO: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
8145 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
8146      HAVE_GLIB=yes
8147   else
8148      { $as_echo "$as_me:$LINENO: result: no" >&5
8149 $as_echo "no" >&6; }
8150      if test "$PKG_CONFIG" = "no" ; then
8151        echo "*** A new enough version of pkg-config was not found."
8152        echo "*** See http://www.freedesktop.org/software/pkgconfig/"
8153      else
8154        if test -f conf.glibtest ; then
8155         :
8156        else
8157           echo "*** Could not run GLIB test program, checking why..."
8158           ac_save_CFLAGS="$CFLAGS"
8159           ac_save_LIBS="$LIBS"
8160           CFLAGS="$CFLAGS $GLIB_CFLAGS"
8161           LIBS="$LIBS $GLIB_LIBS"
8162           cat >conftest.$ac_ext <<_ACEOF
8163 /* confdefs.h.  */
8164 _ACEOF
8165 cat confdefs.h >>conftest.$ac_ext
8166 cat >>conftest.$ac_ext <<_ACEOF
8167 /* end confdefs.h.  */
8168
8169 #include <glib.h>
8170 #include <stdio.h>
8171
8172 int
8173 main ()
8174 {
8175  return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
8176   ;
8177   return 0;
8178 }
8179 _ACEOF
8180 rm -f conftest.$ac_objext conftest$ac_exeext
8181 if { (ac_try="$ac_link"
8182 case "(($ac_try" in
8183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8184   *) ac_try_echo=$ac_try;;
8185 esac
8186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8187 $as_echo "$ac_try_echo") >&5
8188   (eval "$ac_link") 2>conftest.er1
8189   ac_status=$?
8190   grep -v '^ *+' conftest.er1 >conftest.err
8191   rm -f conftest.er1
8192   cat conftest.err >&5
8193   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194   (exit $ac_status); } && {
8195          test -z "$ac_c_werror_flag" ||
8196          test ! -s conftest.err
8197        } && test -s conftest$ac_exeext && {
8198          test "$cross_compiling" = yes ||
8199          $as_test_x conftest$ac_exeext
8200        }; then
8201    echo "*** The test program compiled, but did not run. This usually means"
8202           echo "*** that the run-time linker is not finding GLIB or finding the wrong"
8203           echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
8204           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
8205           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
8206           echo "*** is required on your system"
8207           echo "***"
8208           echo "*** If you have an old version installed, it is best to remove it, although"
8209           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
8210 else
8211   $as_echo "$as_me: failed program was:" >&5
8212 sed 's/^/| /' conftest.$ac_ext >&5
8213
8214          echo "*** The test program failed to compile or link. See the file config.log for the"
8215           echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
8216 fi
8217
8218 rm -rf conftest.dSYM
8219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8220       conftest$ac_exeext conftest.$ac_ext
8221           CFLAGS="$ac_save_CFLAGS"
8222           LIBS="$ac_save_LIBS"
8223        fi
8224      fi
8225      GLIB_CFLAGS=""
8226      GLIB_LIBS=""
8227      GLIB_GENMARSHAL=""
8228      GOBJECT_QUERY=""
8229      GLIB_MKENUMS=""
8230      { { $as_echo "$as_me:$LINENO: error: Missing glib" >&5
8231 $as_echo "$as_me: error: Missing glib" >&2;}
8232    { (exit 1); exit 1; }; }
8233   fi
8234
8235
8236
8237
8238
8239   rm -f conf.glibtest
8240
8241 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8242 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8243 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8244   $as_echo_n "(cached) " >&6
8245 else
8246   cat >conftest.$ac_ext <<_ACEOF
8247 /* confdefs.h.  */
8248 _ACEOF
8249 cat confdefs.h >>conftest.$ac_ext
8250 cat >>conftest.$ac_ext <<_ACEOF
8251 /* end confdefs.h.  */
8252 #include <sys/types.h>
8253 #include <sys/wait.h>
8254 #ifndef WEXITSTATUS
8255 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8256 #endif
8257 #ifndef WIFEXITED
8258 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8259 #endif
8260
8261 int
8262 main ()
8263 {
8264   int s;
8265   wait (&s);
8266   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8267   ;
8268   return 0;
8269 }
8270 _ACEOF
8271 rm -f conftest.$ac_objext
8272 if { (ac_try="$ac_compile"
8273 case "(($ac_try" in
8274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8275   *) ac_try_echo=$ac_try;;
8276 esac
8277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8278 $as_echo "$ac_try_echo") >&5
8279   (eval "$ac_compile") 2>conftest.er1
8280   ac_status=$?
8281   grep -v '^ *+' conftest.er1 >conftest.err
8282   rm -f conftest.er1
8283   cat conftest.err >&5
8284   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285   (exit $ac_status); } && {
8286          test -z "$ac_c_werror_flag" ||
8287          test ! -s conftest.err
8288        } && test -s conftest.$ac_objext; then
8289   ac_cv_header_sys_wait_h=yes
8290 else
8291   $as_echo "$as_me: failed program was:" >&5
8292 sed 's/^/| /' conftest.$ac_ext >&5
8293
8294         ac_cv_header_sys_wait_h=no
8295 fi
8296
8297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8298 fi
8299 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8300 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8301 if test $ac_cv_header_sys_wait_h = yes; then
8302
8303 cat >>confdefs.h <<\_ACEOF
8304 #define HAVE_SYS_WAIT_H 1
8305 _ACEOF
8306
8307 fi
8308
8309 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
8310 $as_echo_n "checking for off_t... " >&6; }
8311 if test "${ac_cv_type_off_t+set}" = set; then
8312   $as_echo_n "(cached) " >&6
8313 else
8314   ac_cv_type_off_t=no
8315 cat >conftest.$ac_ext <<_ACEOF
8316 /* confdefs.h.  */
8317 _ACEOF
8318 cat confdefs.h >>conftest.$ac_ext
8319 cat >>conftest.$ac_ext <<_ACEOF
8320 /* end confdefs.h.  */
8321 $ac_includes_default
8322 int
8323 main ()
8324 {
8325 if (sizeof (off_t))
8326        return 0;
8327   ;
8328   return 0;
8329 }
8330 _ACEOF
8331 rm -f conftest.$ac_objext
8332 if { (ac_try="$ac_compile"
8333 case "(($ac_try" in
8334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8335   *) ac_try_echo=$ac_try;;
8336 esac
8337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8338 $as_echo "$ac_try_echo") >&5
8339   (eval "$ac_compile") 2>conftest.er1
8340   ac_status=$?
8341   grep -v '^ *+' conftest.er1 >conftest.err
8342   rm -f conftest.er1
8343   cat conftest.err >&5
8344   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345   (exit $ac_status); } && {
8346          test -z "$ac_c_werror_flag" ||
8347          test ! -s conftest.err
8348        } && test -s conftest.$ac_objext; then
8349   cat >conftest.$ac_ext <<_ACEOF
8350 /* confdefs.h.  */
8351 _ACEOF
8352 cat confdefs.h >>conftest.$ac_ext
8353 cat >>conftest.$ac_ext <<_ACEOF
8354 /* end confdefs.h.  */
8355 $ac_includes_default
8356 int
8357 main ()
8358 {
8359 if (sizeof ((off_t)))
8360           return 0;
8361   ;
8362   return 0;
8363 }
8364 _ACEOF
8365 rm -f conftest.$ac_objext
8366 if { (ac_try="$ac_compile"
8367 case "(($ac_try" in
8368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8369   *) ac_try_echo=$ac_try;;
8370 esac
8371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8372 $as_echo "$ac_try_echo") >&5
8373   (eval "$ac_compile") 2>conftest.er1
8374   ac_status=$?
8375   grep -v '^ *+' conftest.er1 >conftest.err
8376   rm -f conftest.er1
8377   cat conftest.err >&5
8378   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379   (exit $ac_status); } && {
8380          test -z "$ac_c_werror_flag" ||
8381          test ! -s conftest.err
8382        } && test -s conftest.$ac_objext; then
8383   :
8384 else
8385   $as_echo "$as_me: failed program was:" >&5
8386 sed 's/^/| /' conftest.$ac_ext >&5
8387
8388         ac_cv_type_off_t=yes
8389 fi
8390
8391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8392 else
8393   $as_echo "$as_me: failed program was:" >&5
8394 sed 's/^/| /' conftest.$ac_ext >&5
8395
8396
8397 fi
8398
8399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8400 fi
8401 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8402 $as_echo "$ac_cv_type_off_t" >&6; }
8403 if test "x$ac_cv_type_off_t" = x""yes; then
8404   :
8405 else
8406
8407 cat >>confdefs.h <<_ACEOF
8408 #define off_t long int
8409 _ACEOF
8410
8411 fi
8412
8413 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
8414 $as_echo_n "checking for pid_t... " >&6; }
8415 if test "${ac_cv_type_pid_t+set}" = set; then
8416   $as_echo_n "(cached) " >&6
8417 else
8418   ac_cv_type_pid_t=no
8419 cat >conftest.$ac_ext <<_ACEOF
8420 /* confdefs.h.  */
8421 _ACEOF
8422 cat confdefs.h >>conftest.$ac_ext
8423 cat >>conftest.$ac_ext <<_ACEOF
8424 /* end confdefs.h.  */
8425 $ac_includes_default
8426 int
8427 main ()
8428 {
8429 if (sizeof (pid_t))
8430        return 0;
8431   ;
8432   return 0;
8433 }
8434 _ACEOF
8435 rm -f conftest.$ac_objext
8436 if { (ac_try="$ac_compile"
8437 case "(($ac_try" in
8438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8439   *) ac_try_echo=$ac_try;;
8440 esac
8441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8442 $as_echo "$ac_try_echo") >&5
8443   (eval "$ac_compile") 2>conftest.er1
8444   ac_status=$?
8445   grep -v '^ *+' conftest.er1 >conftest.err
8446   rm -f conftest.er1
8447   cat conftest.err >&5
8448   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449   (exit $ac_status); } && {
8450          test -z "$ac_c_werror_flag" ||
8451          test ! -s conftest.err
8452        } && test -s conftest.$ac_objext; then
8453   cat >conftest.$ac_ext <<_ACEOF
8454 /* confdefs.h.  */
8455 _ACEOF
8456 cat confdefs.h >>conftest.$ac_ext
8457 cat >>conftest.$ac_ext <<_ACEOF
8458 /* end confdefs.h.  */
8459 $ac_includes_default
8460 int
8461 main ()
8462 {
8463 if (sizeof ((pid_t)))
8464           return 0;
8465   ;
8466   return 0;
8467 }
8468 _ACEOF
8469 rm -f conftest.$ac_objext
8470 if { (ac_try="$ac_compile"
8471 case "(($ac_try" in
8472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8473   *) ac_try_echo=$ac_try;;
8474 esac
8475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8476 $as_echo "$ac_try_echo") >&5
8477   (eval "$ac_compile") 2>conftest.er1
8478   ac_status=$?
8479   grep -v '^ *+' conftest.er1 >conftest.err
8480   rm -f conftest.er1
8481   cat conftest.err >&5
8482   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483   (exit $ac_status); } && {
8484          test -z "$ac_c_werror_flag" ||
8485          test ! -s conftest.err
8486        } && test -s conftest.$ac_objext; then
8487   :
8488 else
8489   $as_echo "$as_me: failed program was:" >&5
8490 sed 's/^/| /' conftest.$ac_ext >&5
8491
8492         ac_cv_type_pid_t=yes
8493 fi
8494
8495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8496 else
8497   $as_echo "$as_me: failed program was:" >&5
8498 sed 's/^/| /' conftest.$ac_ext >&5
8499
8500
8501 fi
8502
8503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8504 fi
8505 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8506 $as_echo "$ac_cv_type_pid_t" >&6; }
8507 if test "x$ac_cv_type_pid_t" = x""yes; then
8508   :
8509 else
8510
8511 cat >>confdefs.h <<_ACEOF
8512 #define pid_t int
8513 _ACEOF
8514
8515 fi
8516
8517
8518 nbd_server_CPPFLAGS=$nbd_server_CPPFLAGS" -DSYSCONFDIR='\"$sysconfdir\"'"
8519
8520 ac_config_headers="$ac_config_headers config.h"
8521
8522 ac_config_files="$ac_config_files Makefile Doxyfile nbd-server.1 nbd-server.5 nbd-client.8"
8523
8524 cat >confcache <<\_ACEOF
8525 # This file is a shell script that caches the results of configure
8526 # tests run on this system so they can be shared between configure
8527 # scripts and configure runs, see configure's option --config-cache.
8528 # It is not useful on other systems.  If it contains results you don't
8529 # want to keep, you may remove or edit it.
8530 #
8531 # config.status only pays attention to the cache file if you give it
8532 # the --recheck option to rerun configure.
8533 #
8534 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8535 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8536 # following values.
8537
8538 _ACEOF
8539
8540 # The following way of writing the cache mishandles newlines in values,
8541 # but we know of no workaround that is simple, portable, and efficient.
8542 # So, we kill variables containing newlines.
8543 # Ultrix sh set writes to stderr and can't be redirected directly,
8544 # and sets the high bit in the cache file unless we assign to the vars.
8545 (
8546   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8547     eval ac_val=\$$ac_var
8548     case $ac_val in #(
8549     *${as_nl}*)
8550       case $ac_var in #(
8551       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
8552 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8553       esac
8554       case $ac_var in #(
8555       _ | IFS | as_nl) ;; #(
8556       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8557       *) $as_unset $ac_var ;;
8558       esac ;;
8559     esac
8560   done
8561
8562   (set) 2>&1 |
8563     case $as_nl`(ac_space=' '; set) 2>&1` in #(
8564     *${as_nl}ac_space=\ *)
8565       # `set' does not quote correctly, so add quotes (double-quote
8566       # substitution turns \\\\ into \\, and sed turns \\ into \).
8567       sed -n \
8568         "s/'/'\\\\''/g;
8569           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8570       ;; #(
8571     *)
8572       # `set' quotes correctly as required by POSIX, so do not add quotes.
8573       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8574       ;;
8575     esac |
8576     sort
8577 ) |
8578   sed '
8579      /^ac_cv_env_/b end
8580      t clear
8581      :clear
8582      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8583      t end
8584      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8585      :end' >>confcache
8586 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8587   if test -w "$cache_file"; then
8588     test "x$cache_file" != "x/dev/null" &&
8589       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
8590 $as_echo "$as_me: updating cache $cache_file" >&6;}
8591     cat confcache >$cache_file
8592   else
8593     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8594 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8595   fi
8596 fi
8597 rm -f confcache
8598
8599 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8600 # Let make expand exec_prefix.
8601 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8602
8603 DEFS=-DHAVE_CONFIG_H
8604
8605 ac_libobjs=
8606 ac_ltlibobjs=
8607 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8608   # 1. Remove the extension, and $U if already installed.
8609   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8610   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8611   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
8612   #    will be set to the directory where LIBOBJS objects are built.
8613   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8614   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
8615 done
8616 LIBOBJS=$ac_libobjs
8617
8618 LTLIBOBJS=$ac_ltlibobjs
8619
8620
8621 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8622   { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
8623 Usually this means the macro was only invoked conditionally." >&5
8624 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
8625 Usually this means the macro was only invoked conditionally." >&2;}
8626    { (exit 1); exit 1; }; }
8627 fi
8628 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8629   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8630 Usually this means the macro was only invoked conditionally." >&5
8631 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
8632 Usually this means the macro was only invoked conditionally." >&2;}
8633    { (exit 1); exit 1; }; }
8634 fi
8635 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8636   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8637 Usually this means the macro was only invoked conditionally." >&5
8638 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8639 Usually this means the macro was only invoked conditionally." >&2;}
8640    { (exit 1); exit 1; }; }
8641 fi
8642
8643
8644 : ${CONFIG_STATUS=./config.status}
8645 ac_write_fail=0
8646 ac_clean_files_save=$ac_clean_files
8647 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8648 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8649 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8650 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8651 #! $SHELL
8652 # Generated by $as_me.
8653 # Run this file to recreate the current configuration.
8654 # Compiler output produced by configure, useful for debugging
8655 # configure, is in config.log if it exists.
8656
8657 debug=false
8658 ac_cs_recheck=false
8659 ac_cs_silent=false
8660 SHELL=\${CONFIG_SHELL-$SHELL}
8661 _ACEOF
8662
8663 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8664 ## --------------------- ##
8665 ## M4sh Initialization.  ##
8666 ## --------------------- ##
8667
8668 # Be more Bourne compatible
8669 DUALCASE=1; export DUALCASE # for MKS sh
8670 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8671   emulate sh
8672   NULLCMD=:
8673   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8674   # is contrary to our usage.  Disable this feature.
8675   alias -g '${1+"$@"}'='"$@"'
8676   setopt NO_GLOB_SUBST
8677 else
8678   case `(set -o) 2>/dev/null` in
8679   *posix*) set -o posix ;;
8680 esac
8681
8682 fi
8683
8684
8685
8686
8687 # PATH needs CR
8688 # Avoid depending upon Character Ranges.
8689 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8690 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8691 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8692 as_cr_digits='0123456789'
8693 as_cr_alnum=$as_cr_Letters$as_cr_digits
8694
8695 as_nl='
8696 '
8697 export as_nl
8698 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8699 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8700 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8701 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8702 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8703   as_echo='printf %s\n'
8704   as_echo_n='printf %s'
8705 else
8706   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8707     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8708     as_echo_n='/usr/ucb/echo -n'
8709   else
8710     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8711     as_echo_n_body='eval
8712       arg=$1;
8713       case $arg in
8714       *"$as_nl"*)
8715         expr "X$arg" : "X\\(.*\\)$as_nl";
8716         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8717       esac;
8718       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8719     '
8720     export as_echo_n_body
8721     as_echo_n='sh -c $as_echo_n_body as_echo'
8722   fi
8723   export as_echo_body
8724   as_echo='sh -c $as_echo_body as_echo'
8725 fi
8726
8727 # The user is always right.
8728 if test "${PATH_SEPARATOR+set}" != set; then
8729   PATH_SEPARATOR=:
8730   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8731     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8732       PATH_SEPARATOR=';'
8733   }
8734 fi
8735
8736 # Support unset when possible.
8737 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8738   as_unset=unset
8739 else
8740   as_unset=false
8741 fi
8742
8743
8744 # IFS
8745 # We need space, tab and new line, in precisely that order.  Quoting is
8746 # there to prevent editors from complaining about space-tab.
8747 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8748 # splitting by setting IFS to empty value.)
8749 IFS=" ""        $as_nl"
8750
8751 # Find who we are.  Look in the path if we contain no directory separator.
8752 case $0 in
8753   *[\\/]* ) as_myself=$0 ;;
8754   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8755 for as_dir in $PATH
8756 do
8757   IFS=$as_save_IFS
8758   test -z "$as_dir" && as_dir=.
8759   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8760 done
8761 IFS=$as_save_IFS
8762
8763      ;;
8764 esac
8765 # We did not find ourselves, most probably we were run as `sh COMMAND'
8766 # in which case we are not to be found in the path.
8767 if test "x$as_myself" = x; then
8768   as_myself=$0
8769 fi
8770 if test ! -f "$as_myself"; then
8771   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8772   { (exit 1); exit 1; }
8773 fi
8774
8775 # Work around bugs in pre-3.0 UWIN ksh.
8776 for as_var in ENV MAIL MAILPATH
8777 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8778 done
8779 PS1='$ '
8780 PS2='> '
8781 PS4='+ '
8782
8783 # NLS nuisances.
8784 LC_ALL=C
8785 export LC_ALL
8786 LANGUAGE=C
8787 export LANGUAGE
8788
8789 # Required to use basename.
8790 if expr a : '\(a\)' >/dev/null 2>&1 &&
8791    test "X`expr 00001 : '.*\(...\)'`" = X001; then
8792   as_expr=expr
8793 else
8794   as_expr=false
8795 fi
8796
8797 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8798   as_basename=basename
8799 else
8800   as_basename=false
8801 fi
8802
8803
8804 # Name of the executable.
8805 as_me=`$as_basename -- "$0" ||
8806 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8807          X"$0" : 'X\(//\)$' \| \
8808          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8809 $as_echo X/"$0" |
8810     sed '/^.*\/\([^/][^/]*\)\/*$/{
8811             s//\1/
8812             q
8813           }
8814           /^X\/\(\/\/\)$/{
8815             s//\1/
8816             q
8817           }
8818           /^X\/\(\/\).*/{
8819             s//\1/
8820             q
8821           }
8822           s/.*/./; q'`
8823
8824 # CDPATH.
8825 $as_unset CDPATH
8826
8827
8828
8829   as_lineno_1=$LINENO
8830   as_lineno_2=$LINENO
8831   test "x$as_lineno_1" != "x$as_lineno_2" &&
8832   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
8833
8834   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8835   # uniformly replaced by the line number.  The first 'sed' inserts a
8836   # line-number line after each line using $LINENO; the second 'sed'
8837   # does the real work.  The second script uses 'N' to pair each
8838   # line-number line with the line containing $LINENO, and appends
8839   # trailing '-' during substitution so that $LINENO is not a special
8840   # case at line end.
8841   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8842   # scripts with optimization help from Paolo Bonzini.  Blame Lee
8843   # E. McMahon (1931-1989) for sed's syntax.  :-)
8844   sed -n '
8845     p
8846     /[$]LINENO/=
8847   ' <$as_myself |
8848     sed '
8849       s/[$]LINENO.*/&-/
8850       t lineno
8851       b
8852       :lineno
8853       N
8854       :loop
8855       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
8856       t loop
8857       s/-\n.*//
8858     ' >$as_me.lineno &&
8859   chmod +x "$as_me.lineno" ||
8860     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
8861    { (exit 1); exit 1; }; }
8862
8863   # Don't try to exec as it changes $[0], causing all sort of problems
8864   # (the dirname of $[0] is not the place where we might find the
8865   # original and so on.  Autoconf is especially sensitive to this).
8866   . "./$as_me.lineno"
8867   # Exit status is that of the last command.
8868   exit
8869 }
8870
8871
8872 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8873   as_dirname=dirname
8874 else
8875   as_dirname=false
8876 fi
8877
8878 ECHO_C= ECHO_N= ECHO_T=
8879 case `echo -n x` in
8880 -n*)
8881   case `echo 'x\c'` in
8882   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
8883   *)   ECHO_C='\c';;
8884   esac;;
8885 *)
8886   ECHO_N='-n';;
8887 esac
8888 if expr a : '\(a\)' >/dev/null 2>&1 &&
8889    test "X`expr 00001 : '.*\(...\)'`" = X001; then
8890   as_expr=expr
8891 else
8892   as_expr=false
8893 fi
8894
8895 rm -f conf$$ conf$$.exe conf$$.file
8896 if test -d conf$$.dir; then
8897   rm -f conf$$.dir/conf$$.file
8898 else
8899   rm -f conf$$.dir
8900   mkdir conf$$.dir 2>/dev/null
8901 fi
8902 if (echo >conf$$.file) 2>/dev/null; then
8903   if ln -s conf$$.file conf$$ 2>/dev/null; then
8904     as_ln_s='ln -s'
8905     # ... but there are two gotchas:
8906     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8907     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8908     # In both cases, we have to default to `cp -p'.
8909     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8910       as_ln_s='cp -p'
8911   elif ln conf$$.file conf$$ 2>/dev/null; then
8912     as_ln_s=ln
8913   else
8914     as_ln_s='cp -p'
8915   fi
8916 else
8917   as_ln_s='cp -p'
8918 fi
8919 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8920 rmdir conf$$.dir 2>/dev/null
8921
8922 if mkdir -p . 2>/dev/null; then
8923   as_mkdir_p=:
8924 else
8925   test -d ./-p && rmdir ./-p
8926   as_mkdir_p=false
8927 fi
8928
8929 if test -x / >/dev/null 2>&1; then
8930   as_test_x='test -x'
8931 else
8932   if ls -dL / >/dev/null 2>&1; then
8933     as_ls_L_option=L
8934   else
8935     as_ls_L_option=
8936   fi
8937   as_test_x='
8938     eval sh -c '\''
8939       if test -d "$1"; then
8940         test -d "$1/.";
8941       else
8942         case $1 in
8943         -*)set "./$1";;
8944         esac;
8945         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
8946         ???[sx]*):;;*)false;;esac;fi
8947     '\'' sh
8948   '
8949 fi
8950 as_executable_p=$as_test_x
8951
8952 # Sed expression to map a string onto a valid CPP name.
8953 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8954
8955 # Sed expression to map a string onto a valid variable name.
8956 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8957
8958
8959 exec 6>&1
8960
8961 # Save the log message, to keep $[0] and so on meaningful, and to
8962 # report actual input values of CONFIG_FILES etc. instead of their
8963 # values after options handling.
8964 ac_log="
8965 This file was extended by nbd $as_me 2.9.13, which was
8966 generated by GNU Autoconf 2.63.  Invocation command line was
8967
8968   CONFIG_FILES    = $CONFIG_FILES
8969   CONFIG_HEADERS  = $CONFIG_HEADERS
8970   CONFIG_LINKS    = $CONFIG_LINKS
8971   CONFIG_COMMANDS = $CONFIG_COMMANDS
8972   $ $0 $@
8973
8974 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8975 "
8976
8977 _ACEOF
8978
8979 case $ac_config_files in *"
8980 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8981 esac
8982
8983 case $ac_config_headers in *"
8984 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8985 esac
8986
8987
8988 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8989 # Files that config.status was made for.
8990 config_files="$ac_config_files"
8991 config_headers="$ac_config_headers"
8992 config_commands="$ac_config_commands"
8993
8994 _ACEOF
8995
8996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8997 ac_cs_usage="\
8998 \`$as_me' instantiates files from templates according to the
8999 current configuration.
9000
9001 Usage: $0 [OPTION]... [FILE]...
9002
9003   -h, --help       print this help, then exit
9004   -V, --version    print version number and configuration settings, then exit
9005   -q, --quiet, --silent
9006                    do not print progress messages
9007   -d, --debug      don't remove temporary files
9008       --recheck    update $as_me by reconfiguring in the same conditions
9009       --file=FILE[:TEMPLATE]
9010                    instantiate the configuration file FILE
9011       --header=FILE[:TEMPLATE]
9012                    instantiate the configuration header FILE
9013
9014 Configuration files:
9015 $config_files
9016
9017 Configuration headers:
9018 $config_headers
9019
9020 Configuration commands:
9021 $config_commands
9022
9023 Report bugs to <bug-autoconf@gnu.org>."
9024
9025 _ACEOF
9026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9027 ac_cs_version="\\
9028 nbd config.status 2.9.13
9029 configured by $0, generated by GNU Autoconf 2.63,
9030   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
9031
9032 Copyright (C) 2008 Free Software Foundation, Inc.
9033 This config.status script is free software; the Free Software Foundation
9034 gives unlimited permission to copy, distribute and modify it."
9035
9036 ac_pwd='$ac_pwd'
9037 srcdir='$srcdir'
9038 INSTALL='$INSTALL'
9039 MKDIR_P='$MKDIR_P'
9040 AWK='$AWK'
9041 test -n "\$AWK" || AWK=awk
9042 _ACEOF
9043
9044 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9045 # The default lists apply if the user does not specify any file.
9046 ac_need_defaults=:
9047 while test $# != 0
9048 do
9049   case $1 in
9050   --*=*)
9051     ac_option=`expr "X$1" : 'X\([^=]*\)='`
9052     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9053     ac_shift=:
9054     ;;
9055   *)
9056     ac_option=$1
9057     ac_optarg=$2
9058     ac_shift=shift
9059     ;;
9060   esac
9061
9062   case $ac_option in
9063   # Handling of the options.
9064   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9065     ac_cs_recheck=: ;;
9066   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9067     $as_echo "$ac_cs_version"; exit ;;
9068   --debug | --debu | --deb | --de | --d | -d )
9069     debug=: ;;
9070   --file | --fil | --fi | --f )
9071     $ac_shift
9072     case $ac_optarg in
9073     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9074     esac
9075     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
9076     ac_need_defaults=false;;
9077   --header | --heade | --head | --hea )
9078     $ac_shift
9079     case $ac_optarg in
9080     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9081     esac
9082     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
9083     ac_need_defaults=false;;
9084   --he | --h)
9085     # Conflict between --help and --header
9086     { $as_echo "$as_me: error: ambiguous option: $1
9087 Try \`$0 --help' for more information." >&2
9088    { (exit 1); exit 1; }; };;
9089   --help | --hel | -h )
9090     $as_echo "$ac_cs_usage"; exit ;;
9091   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9092   | -silent | --silent | --silen | --sile | --sil | --si | --s)
9093     ac_cs_silent=: ;;
9094
9095   # This is an error.
9096   -*) { $as_echo "$as_me: error: unrecognized option: $1
9097 Try \`$0 --help' for more information." >&2
9098    { (exit 1); exit 1; }; } ;;
9099
9100   *) ac_config_targets="$ac_config_targets $1"
9101      ac_need_defaults=false ;;
9102
9103   esac
9104   shift
9105 done
9106
9107 ac_configure_extra_args=
9108
9109 if $ac_cs_silent; then
9110   exec 6>/dev/null
9111   ac_configure_extra_args="$ac_configure_extra_args --silent"
9112 fi
9113
9114 _ACEOF
9115 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9116 if \$ac_cs_recheck; then
9117   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9118   shift
9119   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9120   CONFIG_SHELL='$SHELL'
9121   export CONFIG_SHELL
9122   exec "\$@"
9123 fi
9124
9125 _ACEOF
9126 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9127 exec 5>>config.log
9128 {
9129   echo
9130   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9131 ## Running $as_me. ##
9132 _ASBOX
9133   $as_echo "$ac_log"
9134 } >&5
9135
9136 _ACEOF
9137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9138 #
9139 # INIT-COMMANDS
9140 #
9141 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9142
9143 _ACEOF
9144
9145 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9146
9147 # Handling of arguments.
9148 for ac_config_target in $ac_config_targets
9149 do
9150   case $ac_config_target in
9151     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9152     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9153     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9154     "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
9155     "nbd-server.1") CONFIG_FILES="$CONFIG_FILES nbd-server.1" ;;
9156     "nbd-server.5") CONFIG_FILES="$CONFIG_FILES nbd-server.5" ;;
9157     "nbd-client.8") CONFIG_FILES="$CONFIG_FILES nbd-client.8" ;;
9158
9159   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9160 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9161    { (exit 1); exit 1; }; };;
9162   esac
9163 done
9164
9165
9166 # If the user did not use the arguments to specify the items to instantiate,
9167 # then the envvar interface is used.  Set only those that are not.
9168 # We use the long form for the default assignment because of an extremely
9169 # bizarre bug on SunOS 4.1.3.
9170 if $ac_need_defaults; then
9171   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9172   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9173   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9174 fi
9175
9176 # Have a temporary directory for convenience.  Make it in the build tree
9177 # simply because there is no reason against having it here, and in addition,
9178 # creating and moving files from /tmp can sometimes cause problems.
9179 # Hook for its removal unless debugging.
9180 # Note that there is a small window in which the directory will not be cleaned:
9181 # after its creation but before its name has been assigned to `$tmp'.
9182 $debug ||
9183 {
9184   tmp=
9185   trap 'exit_status=$?
9186   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9187 ' 0
9188   trap '{ (exit 1); exit 1; }' 1 2 13 15
9189 }
9190 # Create a (secure) tmp directory for tmp files.
9191
9192 {
9193   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9194   test -n "$tmp" && test -d "$tmp"
9195 }  ||
9196 {
9197   tmp=./conf$$-$RANDOM
9198   (umask 077 && mkdir "$tmp")
9199 } ||
9200 {
9201    $as_echo "$as_me: cannot create a temporary directory in ." >&2
9202    { (exit 1); exit 1; }
9203 }
9204
9205 # Set up the scripts for CONFIG_FILES section.
9206 # No need to generate them if there are no CONFIG_FILES.
9207 # This happens for instance with `./config.status config.h'.
9208 if test -n "$CONFIG_FILES"; then
9209
9210
9211 ac_cr='\r'
9212 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9213 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9214   ac_cs_awk_cr='\\r'
9215 else
9216   ac_cs_awk_cr=$ac_cr
9217 fi
9218
9219 echo 'BEGIN {' >"$tmp/subs1.awk" &&
9220 _ACEOF
9221
9222
9223 {
9224   echo "cat >conf$$subs.awk <<_ACEOF" &&
9225   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9226   echo "_ACEOF"
9227 } >conf$$subs.sh ||
9228   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9229 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9230    { (exit 1); exit 1; }; }
9231 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
9232 ac_delim='%!_!# '
9233 for ac_last_try in false false false false false :; do
9234   . ./conf$$subs.sh ||
9235     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9236 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9237    { (exit 1); exit 1; }; }
9238
9239   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9240   if test $ac_delim_n = $ac_delim_num; then
9241     break
9242   elif $ac_last_try; then
9243     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9244 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9245    { (exit 1); exit 1; }; }
9246   else
9247     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9248   fi
9249 done
9250 rm -f conf$$subs.sh
9251
9252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9253 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
9254 _ACEOF
9255 sed -n '
9256 h
9257 s/^/S["/; s/!.*/"]=/
9258 p
9259 g
9260 s/^[^!]*!//
9261 :repl
9262 t repl
9263 s/'"$ac_delim"'$//
9264 t delim
9265 :nl
9266 h
9267 s/\(.\{148\}\).*/\1/
9268 t more1
9269 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9270 p
9271 n
9272 b repl
9273 :more1
9274 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9275 p
9276 g
9277 s/.\{148\}//
9278 t nl
9279 :delim
9280 h
9281 s/\(.\{148\}\).*/\1/
9282 t more2
9283 s/["\\]/\\&/g; s/^/"/; s/$/"/
9284 p
9285 b
9286 :more2
9287 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9288 p
9289 g
9290 s/.\{148\}//
9291 t delim
9292 ' <conf$$subs.awk | sed '
9293 /^[^""]/{
9294   N
9295   s/\n//
9296 }
9297 ' >>$CONFIG_STATUS || ac_write_fail=1
9298 rm -f conf$$subs.awk
9299 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9300 _ACAWK
9301 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
9302   for (key in S) S_is_set[key] = 1
9303   FS = "\a"
9304
9305 }
9306 {
9307   line = $ 0
9308   nfields = split(line, field, "@")
9309   substed = 0
9310   len = length(field[1])
9311   for (i = 2; i < nfields; i++) {
9312     key = field[i]
9313     keylen = length(key)
9314     if (S_is_set[key]) {
9315       value = S[key]
9316       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9317       len += length(value) + length(field[++i])
9318       substed = 1
9319     } else
9320       len += 1 + keylen
9321   }
9322
9323   print line
9324 }
9325
9326 _ACAWK
9327 _ACEOF
9328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9329 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9330   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9331 else
9332   cat
9333 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
9334   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
9335 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
9336    { (exit 1); exit 1; }; }
9337 _ACEOF
9338
9339 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9340 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9341 # trailing colons and then remove the whole line if VPATH becomes empty
9342 # (actually we leave an empty line to preserve line numbers).
9343 if test "x$srcdir" = x.; then
9344   ac_vpsub='/^[  ]*VPATH[        ]*=/{
9345 s/:*\$(srcdir):*/:/
9346 s/:*\${srcdir}:*/:/
9347 s/:*@srcdir@:*/:/
9348 s/^\([^=]*=[     ]*\):*/\1/
9349 s/:*$//
9350 s/^[^=]*=[       ]*$//
9351 }'
9352 fi
9353
9354 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9355 fi # test -n "$CONFIG_FILES"
9356
9357 # Set up the scripts for CONFIG_HEADERS section.
9358 # No need to generate them if there are no CONFIG_HEADERS.
9359 # This happens for instance with `./config.status Makefile'.
9360 if test -n "$CONFIG_HEADERS"; then
9361 cat >"$tmp/defines.awk" <<\_ACAWK ||
9362 BEGIN {
9363 _ACEOF
9364
9365 # Transform confdefs.h into an awk script `defines.awk', embedded as
9366 # here-document in config.status, that substitutes the proper values into
9367 # config.h.in to produce config.h.
9368
9369 # Create a delimiter string that does not exist in confdefs.h, to ease
9370 # handling of long lines.
9371 ac_delim='%!_!# '
9372 for ac_last_try in false false :; do
9373   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
9374   if test -z "$ac_t"; then
9375     break
9376   elif $ac_last_try; then
9377     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
9378 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
9379    { (exit 1); exit 1; }; }
9380   else
9381     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9382   fi
9383 done
9384
9385 # For the awk script, D is an array of macro values keyed by name,
9386 # likewise P contains macro parameters if any.  Preserve backslash
9387 # newline sequences.
9388
9389 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9390 sed -n '
9391 s/.\{148\}/&'"$ac_delim"'/g
9392 t rset
9393 :rset
9394 s/^[     ]*#[    ]*define[       ][      ]*/ /
9395 t def
9396 d
9397 :def
9398 s/\\$//
9399 t bsnl
9400 s/["\\]/\\&/g
9401 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
9402 D["\1"]=" \3"/p
9403 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
9404 d
9405 :bsnl
9406 s/["\\]/\\&/g
9407 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
9408 D["\1"]=" \3\\\\\\n"\\/p
9409 t cont
9410 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9411 t cont
9412 d
9413 :cont
9414 n
9415 s/.\{148\}/&'"$ac_delim"'/g
9416 t clear
9417 :clear
9418 s/\\$//
9419 t bsnlc
9420 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9421 d
9422 :bsnlc
9423 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9424 b cont
9425 ' <confdefs.h | sed '
9426 s/'"$ac_delim"'/"\\\
9427 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9428
9429 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9430   for (key in D) D_is_set[key] = 1
9431   FS = "\a"
9432 }
9433 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9434   line = \$ 0
9435   split(line, arg, " ")
9436   if (arg[1] == "#") {
9437     defundef = arg[2]
9438     mac1 = arg[3]
9439   } else {
9440     defundef = substr(arg[1], 2)
9441     mac1 = arg[2]
9442   }
9443   split(mac1, mac2, "(") #)
9444   macro = mac2[1]
9445   prefix = substr(line, 1, index(line, defundef) - 1)
9446   if (D_is_set[macro]) {
9447     # Preserve the white space surrounding the "#".
9448     print prefix "define", macro P[macro] D[macro]
9449     next
9450   } else {
9451     # Replace #undef with comments.  This is necessary, for example,
9452     # in the case of _POSIX_SOURCE, which is predefined and required
9453     # on some systems where configure will not decide to define it.
9454     if (defundef == "undef") {
9455       print "/*", prefix defundef, macro, "*/"
9456       next
9457     }
9458   }
9459 }
9460 { print }
9461 _ACAWK
9462 _ACEOF
9463 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9464   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
9465 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
9466    { (exit 1); exit 1; }; }
9467 fi # test -n "$CONFIG_HEADERS"
9468
9469
9470 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
9471 shift
9472 for ac_tag
9473 do
9474   case $ac_tag in
9475   :[FHLC]) ac_mode=$ac_tag; continue;;
9476   esac
9477   case $ac_mode$ac_tag in
9478   :[FHL]*:*);;
9479   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
9480 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
9481    { (exit 1); exit 1; }; };;
9482   :[FH]-) ac_tag=-:-;;
9483   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9484   esac
9485   ac_save_IFS=$IFS
9486   IFS=:
9487   set x $ac_tag
9488   IFS=$ac_save_IFS
9489   shift
9490   ac_file=$1
9491   shift
9492
9493   case $ac_mode in
9494   :L) ac_source=$1;;
9495   :[FH])
9496     ac_file_inputs=
9497     for ac_f
9498     do
9499       case $ac_f in
9500       -) ac_f="$tmp/stdin";;
9501       *) # Look for the file first in the build tree, then in the source tree
9502          # (if the path is not absolute).  The absolute path cannot be DOS-style,
9503          # because $ac_f cannot contain `:'.
9504          test -f "$ac_f" ||
9505            case $ac_f in
9506            [\\/$]*) false;;
9507            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9508            esac ||
9509            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
9510 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
9511    { (exit 1); exit 1; }; };;
9512       esac
9513       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9514       ac_file_inputs="$ac_file_inputs '$ac_f'"
9515     done
9516
9517     # Let's still pretend it is `configure' which instantiates (i.e., don't
9518     # use $as_me), people would be surprised to read:
9519     #    /* config.h.  Generated by config.status.  */
9520     configure_input='Generated from '`
9521           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9522         `' by configure.'
9523     if test x"$ac_file" != x-; then
9524       configure_input="$ac_file.  $configure_input"
9525       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
9526 $as_echo "$as_me: creating $ac_file" >&6;}
9527     fi
9528     # Neutralize special characters interpreted by sed in replacement strings.
9529     case $configure_input in #(
9530     *\&* | *\|* | *\\* )
9531        ac_sed_conf_input=`$as_echo "$configure_input" |
9532        sed 's/[\\\\&|]/\\\\&/g'`;; #(
9533     *) ac_sed_conf_input=$configure_input;;
9534     esac
9535
9536     case $ac_tag in
9537     *:-:* | *:-) cat >"$tmp/stdin" \
9538       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
9539 $as_echo "$as_me: error: could not create $ac_file" >&2;}
9540    { (exit 1); exit 1; }; } ;;
9541     esac
9542     ;;
9543   esac
9544
9545   ac_dir=`$as_dirname -- "$ac_file" ||
9546 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9547          X"$ac_file" : 'X\(//\)[^/]' \| \
9548          X"$ac_file" : 'X\(//\)$' \| \
9549          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9550 $as_echo X"$ac_file" |
9551     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9552             s//\1/
9553             q
9554           }
9555           /^X\(\/\/\)[^/].*/{
9556             s//\1/
9557             q
9558           }
9559           /^X\(\/\/\)$/{
9560             s//\1/
9561             q
9562           }
9563           /^X\(\/\).*/{
9564             s//\1/
9565             q
9566           }
9567           s/.*/./; q'`
9568   { as_dir="$ac_dir"
9569   case $as_dir in #(
9570   -*) as_dir=./$as_dir;;
9571   esac
9572   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9573     as_dirs=
9574     while :; do
9575       case $as_dir in #(
9576       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9577       *) as_qdir=$as_dir;;
9578       esac
9579       as_dirs="'$as_qdir' $as_dirs"
9580       as_dir=`$as_dirname -- "$as_dir" ||
9581 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9582          X"$as_dir" : 'X\(//\)[^/]' \| \
9583          X"$as_dir" : 'X\(//\)$' \| \
9584          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9585 $as_echo X"$as_dir" |
9586     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9587             s//\1/
9588             q
9589           }
9590           /^X\(\/\/\)[^/].*/{
9591             s//\1/
9592             q
9593           }
9594           /^X\(\/\/\)$/{
9595             s//\1/
9596             q
9597           }
9598           /^X\(\/\).*/{
9599             s//\1/
9600             q
9601           }
9602           s/.*/./; q'`
9603       test -d "$as_dir" && break
9604     done
9605     test -z "$as_dirs" || eval "mkdir $as_dirs"
9606   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9607 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
9608    { (exit 1); exit 1; }; }; }
9609   ac_builddir=.
9610
9611 case "$ac_dir" in
9612 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9613 *)
9614   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9615   # A ".." for each directory in $ac_dir_suffix.
9616   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9617   case $ac_top_builddir_sub in
9618   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9619   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9620   esac ;;
9621 esac
9622 ac_abs_top_builddir=$ac_pwd
9623 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9624 # for backward compatibility:
9625 ac_top_builddir=$ac_top_build_prefix
9626
9627 case $srcdir in
9628   .)  # We are building in place.
9629     ac_srcdir=.
9630     ac_top_srcdir=$ac_top_builddir_sub
9631     ac_abs_top_srcdir=$ac_pwd ;;
9632   [\\/]* | ?:[\\/]* )  # Absolute name.
9633     ac_srcdir=$srcdir$ac_dir_suffix;
9634     ac_top_srcdir=$srcdir
9635     ac_abs_top_srcdir=$srcdir ;;
9636   *) # Relative name.
9637     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9638     ac_top_srcdir=$ac_top_build_prefix$srcdir
9639     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9640 esac
9641 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9642
9643
9644   case $ac_mode in
9645   :F)
9646   #
9647   # CONFIG_FILE
9648   #
9649
9650   case $INSTALL in
9651   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9652   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9653   esac
9654   ac_MKDIR_P=$MKDIR_P
9655   case $MKDIR_P in
9656   [\\/$]* | ?:[\\/]* ) ;;
9657   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9658   esac
9659 _ACEOF
9660
9661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9662 # If the template does not know about datarootdir, expand it.
9663 # FIXME: This hack should be removed a few years after 2.60.
9664 ac_datarootdir_hack=; ac_datarootdir_seen=
9665
9666 ac_sed_dataroot='
9667 /datarootdir/ {
9668   p
9669   q
9670 }
9671 /@datadir@/p
9672 /@docdir@/p
9673 /@infodir@/p
9674 /@localedir@/p
9675 /@mandir@/p
9676 '
9677 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9678 *datarootdir*) ac_datarootdir_seen=yes;;
9679 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9680   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9681 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9682 _ACEOF
9683 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9684   ac_datarootdir_hack='
9685   s&@datadir@&$datadir&g
9686   s&@docdir@&$docdir&g
9687   s&@infodir@&$infodir&g
9688   s&@localedir@&$localedir&g
9689   s&@mandir@&$mandir&g
9690     s&\\\${datarootdir}&$datarootdir&g' ;;
9691 esac
9692 _ACEOF
9693
9694 # Neutralize VPATH when `$srcdir' = `.'.
9695 # Shell code in configure.ac might set extrasub.
9696 # FIXME: do we really want to maintain this feature?
9697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9698 ac_sed_extra="$ac_vpsub
9699 $extrasub
9700 _ACEOF
9701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9702 :t
9703 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9704 s|@configure_input@|$ac_sed_conf_input|;t t
9705 s&@top_builddir@&$ac_top_builddir_sub&;t t
9706 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9707 s&@srcdir@&$ac_srcdir&;t t
9708 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9709 s&@top_srcdir@&$ac_top_srcdir&;t t
9710 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9711 s&@builddir@&$ac_builddir&;t t
9712 s&@abs_builddir@&$ac_abs_builddir&;t t
9713 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9714 s&@INSTALL@&$ac_INSTALL&;t t
9715 s&@MKDIR_P@&$ac_MKDIR_P&;t t
9716 $ac_datarootdir_hack
9717 "
9718 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
9719   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
9720 $as_echo "$as_me: error: could not create $ac_file" >&2;}
9721    { (exit 1); exit 1; }; }
9722
9723 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9724   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9725   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9726   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9727 which seems to be undefined.  Please make sure it is defined." >&5
9728 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9729 which seems to be undefined.  Please make sure it is defined." >&2;}
9730
9731   rm -f "$tmp/stdin"
9732   case $ac_file in
9733   -) cat "$tmp/out" && rm -f "$tmp/out";;
9734   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
9735   esac \
9736   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
9737 $as_echo "$as_me: error: could not create $ac_file" >&2;}
9738    { (exit 1); exit 1; }; }
9739  ;;
9740   :H)
9741   #
9742   # CONFIG_HEADER
9743   #
9744   if test x"$ac_file" != x-; then
9745     {
9746       $as_echo "/* $configure_input  */" \
9747       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
9748     } >"$tmp/config.h" \
9749       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
9750 $as_echo "$as_me: error: could not create $ac_file" >&2;}
9751    { (exit 1); exit 1; }; }
9752     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
9753       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9754 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9755     else
9756       rm -f "$ac_file"
9757       mv "$tmp/config.h" "$ac_file" \
9758         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
9759 $as_echo "$as_me: error: could not create $ac_file" >&2;}
9760    { (exit 1); exit 1; }; }
9761     fi
9762   else
9763     $as_echo "/* $configure_input  */" \
9764       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
9765       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
9766 $as_echo "$as_me: error: could not create -" >&2;}
9767    { (exit 1); exit 1; }; }
9768   fi
9769 # Compute "$ac_file"'s index in $config_headers.
9770 _am_arg="$ac_file"
9771 _am_stamp_count=1
9772 for _am_header in $config_headers :; do
9773   case $_am_header in
9774     $_am_arg | $_am_arg:* )
9775       break ;;
9776     * )
9777       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9778   esac
9779 done
9780 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9781 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9782          X"$_am_arg" : 'X\(//\)[^/]' \| \
9783          X"$_am_arg" : 'X\(//\)$' \| \
9784          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9785 $as_echo X"$_am_arg" |
9786     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9787             s//\1/
9788             q
9789           }
9790           /^X\(\/\/\)[^/].*/{
9791             s//\1/
9792             q
9793           }
9794           /^X\(\/\/\)$/{
9795             s//\1/
9796             q
9797           }
9798           /^X\(\/\).*/{
9799             s//\1/
9800             q
9801           }
9802           s/.*/./; q'`/stamp-h$_am_stamp_count
9803  ;;
9804
9805   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
9806 $as_echo "$as_me: executing $ac_file commands" >&6;}
9807  ;;
9808   esac
9809
9810
9811   case $ac_file$ac_mode in
9812     "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
9813 # are listed without --file.  Let's play safe and only enable the eval
9814 # if we detect the quoting.
9815 case $CONFIG_FILES in
9816 *\'*) eval set x "$CONFIG_FILES" ;;
9817 *)   set x $CONFIG_FILES ;;
9818 esac
9819 shift
9820 for mf
9821 do
9822   # Strip MF so we end up with the name of the file.
9823   mf=`echo "$mf" | sed -e 's/:.*$//'`
9824   # Check whether this is an Automake generated Makefile or not.
9825   # We used to match only the files named `Makefile.in', but
9826   # some people rename them; so instead we look at the file content.
9827   # Grep'ing the first line is not enough: some people post-process
9828   # each Makefile.in and add a new line on top of each file to say so.
9829   # Grep'ing the whole file is not good either: AIX grep has a line
9830   # limit of 2048, but all sed's we know have understand at least 4000.
9831   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9832     dirpart=`$as_dirname -- "$mf" ||
9833 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9834          X"$mf" : 'X\(//\)[^/]' \| \
9835          X"$mf" : 'X\(//\)$' \| \
9836          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
9837 $as_echo X"$mf" |
9838     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9839             s//\1/
9840             q
9841           }
9842           /^X\(\/\/\)[^/].*/{
9843             s//\1/
9844             q
9845           }
9846           /^X\(\/\/\)$/{
9847             s//\1/
9848             q
9849           }
9850           /^X\(\/\).*/{
9851             s//\1/
9852             q
9853           }
9854           s/.*/./; q'`
9855   else
9856     continue
9857   fi
9858   # Extract the definition of DEPDIR, am__include, and am__quote
9859   # from the Makefile without running `make'.
9860   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9861   test -z "$DEPDIR" && continue
9862   am__include=`sed -n 's/^am__include = //p' < "$mf"`
9863   test -z "am__include" && continue
9864   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9865   # When using ansi2knr, U may be empty or an underscore; expand it
9866   U=`sed -n 's/^U = //p' < "$mf"`
9867   # Find all dependency output files, they are included files with
9868   # $(DEPDIR) in their names.  We invoke sed twice because it is the
9869   # simplest approach to changing $(DEPDIR) to its actual value in the
9870   # expansion.
9871   for file in `sed -n "
9872     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9873        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9874     # Make sure the directory exists.
9875     test -f "$dirpart/$file" && continue
9876     fdir=`$as_dirname -- "$file" ||
9877 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9878          X"$file" : 'X\(//\)[^/]' \| \
9879          X"$file" : 'X\(//\)$' \| \
9880          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9881 $as_echo X"$file" |
9882     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9883             s//\1/
9884             q
9885           }
9886           /^X\(\/\/\)[^/].*/{
9887             s//\1/
9888             q
9889           }
9890           /^X\(\/\/\)$/{
9891             s//\1/
9892             q
9893           }
9894           /^X\(\/\).*/{
9895             s//\1/
9896             q
9897           }
9898           s/.*/./; q'`
9899     { as_dir=$dirpart/$fdir
9900   case $as_dir in #(
9901   -*) as_dir=./$as_dir;;
9902   esac
9903   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9904     as_dirs=
9905     while :; do
9906       case $as_dir in #(
9907       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9908       *) as_qdir=$as_dir;;
9909       esac
9910       as_dirs="'$as_qdir' $as_dirs"
9911       as_dir=`$as_dirname -- "$as_dir" ||
9912 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9913          X"$as_dir" : 'X\(//\)[^/]' \| \
9914          X"$as_dir" : 'X\(//\)$' \| \
9915          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9916 $as_echo X"$as_dir" |
9917     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9918             s//\1/
9919             q
9920           }
9921           /^X\(\/\/\)[^/].*/{
9922             s//\1/
9923             q
9924           }
9925           /^X\(\/\/\)$/{
9926             s//\1/
9927             q
9928           }
9929           /^X\(\/\).*/{
9930             s//\1/
9931             q
9932           }
9933           s/.*/./; q'`
9934       test -d "$as_dir" && break
9935     done
9936     test -z "$as_dirs" || eval "mkdir $as_dirs"
9937   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9938 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
9939    { (exit 1); exit 1; }; }; }
9940     # echo "creating $dirpart/$file"
9941     echo '# dummy' > "$dirpart/$file"
9942   done
9943 done
9944  ;;
9945
9946   esac
9947 done # for ac_tag
9948
9949
9950 { (exit 0); exit 0; }
9951 _ACEOF
9952 chmod +x $CONFIG_STATUS
9953 ac_clean_files=$ac_clean_files_save
9954
9955 test $ac_write_fail = 0 ||
9956   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
9957 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
9958    { (exit 1); exit 1; }; }
9959
9960
9961 # configure is writing to config.log, and then calls config.status.
9962 # config.status does its own redirection, appending to config.log.
9963 # Unfortunately, on DOS this fails, as config.log is still kept open
9964 # by configure, so config.status won't be able to write to it; its
9965 # output is simply discarded.  So we exec the FD to /dev/null,
9966 # effectively closing config.log, so it can be properly (re)opened and
9967 # appended to by config.status.  When coming back to configure, we
9968 # need to make the FD available again.
9969 if test "$no_create" != yes; then
9970   ac_cs_success=:
9971   ac_config_status_args=
9972   test "$silent" = yes &&
9973     ac_config_status_args="$ac_config_status_args --quiet"
9974   exec 5>/dev/null
9975   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9976   exec 5>>config.log
9977   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9978   # would make configure fail if this is the last instruction.
9979   $ac_cs_success || { (exit 1); exit 1; }
9980 fi
9981 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9982   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9983 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9984 fi
9985
9986