2.8.8
[nbd.git] / configure
blob1af97f427f4b122c312305bc77ee792ca3483811
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for nbd 2.8.8.
5 # Report bugs to <wouter@debian.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 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 ## --------------------- ##
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 # Zsh 3.x and 4.x performs 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
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
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
52 rm -f conf$$.sh
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
63 # IFS
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
70 IFS=" "" $as_nl"
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89 as_myself=$0
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
104 # NLS nuisances.
105 for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 done
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
142 /^X\/\(\/\/\)$/{
143 s//\1/
146 /^X\/\(\/\).*/{
147 s//\1/
150 s/.*/./; q'`
152 # CDPATH.
153 $as_unset CDPATH
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
167 as_func_success () {
168 as_func_return 0
170 as_func_failure () {
171 as_func_return 1
173 as_func_ret_success () {
174 return 0
176 as_func_ret_failure () {
177 return 1
180 exitcode=0
181 if as_func_success; then
183 else
184 exitcode=1
185 echo as_func_success failed.
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 else
208 exitcode=1
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234 done
235 IFS=$as_save_IFS
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
279 (as_func_return () {
280 (exit $1)
282 as_func_success () {
283 as_func_return 0
285 as_func_failure () {
286 as_func_return 1
288 as_func_ret_success () {
289 return 0
291 as_func_ret_failure () {
292 return 1
295 exitcode=0
296 if as_func_success; then
298 else
299 exitcode=1
300 echo as_func_success failed.
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 else
323 exitcode=1
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335 _ASEOF
336 }; then
337 break
342 done
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
369 (exit \$1)
371 as_func_success () {
372 as_func_return 0
374 as_func_failure () {
375 as_func_return 1
377 as_func_ret_success () {
378 return 0
380 as_func_ret_failure () {
381 return 1
384 exitcode=0
385 if as_func_success; then
387 else
388 exitcode=1
389 echo as_func_success failed.
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 else
412 exitcode=1
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
448 :lineno
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
482 ECHO_N='-n';;
483 esac
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554 exec 7<&0 </dev/null 6>&1
556 # Name of the host.
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 # Initializations.
564 ac_default_prefix=/usr/local
565 ac_clean_files=
566 ac_config_libobj_dir=.
567 LIBOBJS=
568 cross_compiling=no
569 subdirs=
570 MFLAGS=
571 MAKEFLAGS=
572 SHELL=${CONFIG_SHELL-/bin/sh}
574 # Identity of this package.
575 PACKAGE_NAME='nbd'
576 PACKAGE_TARNAME='nbd'
577 PACKAGE_VERSION='2.8.8'
578 PACKAGE_STRING='nbd 2.8.8'
579 PACKAGE_BUGREPORT='wouter@debian.org'
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 # include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 # include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
617 ac_subst_vars='SHELL
618 PATH_SEPARATOR
619 PACKAGE_NAME
620 PACKAGE_TARNAME
621 PACKAGE_VERSION
622 PACKAGE_STRING
623 PACKAGE_BUGREPORT
624 exec_prefix
625 prefix
626 program_transform_name
627 bindir
628 sbindir
629 libexecdir
630 datarootdir
631 datadir
632 sysconfdir
633 sharedstatedir
634 localstatedir
635 includedir
636 oldincludedir
637 docdir
638 infodir
639 htmldir
640 dvidir
641 pdfdir
642 psdir
643 libdir
644 localedir
645 mandir
646 DEFS
647 ECHO_C
648 ECHO_N
649 ECHO_T
650 LIBS
651 build_alias
652 host_alias
653 target_alias
654 INSTALL_PROGRAM
655 INSTALL_SCRIPT
656 INSTALL_DATA
657 CYGPATH_W
658 PACKAGE
659 VERSION
660 ACLOCAL
661 AUTOCONF
662 AUTOMAKE
663 AUTOHEADER
664 MAKEINFO
665 install_sh
666 STRIP
667 INSTALL_STRIP_PROGRAM
668 mkdir_p
670 SET_MAKE
671 am__leading_dot
672 AMTAR
673 am__tar
674 am__untar
675 MAINTAINER_MODE_TRUE
676 MAINTAINER_MODE_FALSE
677 MAINT
679 CFLAGS
680 LDFLAGS
681 CPPFLAGS
682 ac_ct_CC
683 EXEEXT
684 OBJEXT
685 DEPDIR
686 am__include
687 am__quote
688 AMDEP_TRUE
689 AMDEP_FALSE
690 AMDEPBACKSLASH
691 CCDEPMODE
692 am__fastdepCC_TRUE
693 am__fastdepCC_FALSE
695 GREP
696 EGREP
697 PKG_CONFIG
698 GLIB_CFLAGS
699 GLIB_LIBS
700 GLIB_GENMARSHAL
701 GOBJECT_QUERY
702 GLIB_MKENUMS
703 sbin_PROGRAMS
704 man8_MANS
705 LIBOBJS
706 LTLIBOBJS'
707 ac_subst_files=''
708 ac_precious_vars='build_alias
709 host_alias
710 target_alias
712 CFLAGS
713 LDFLAGS
714 LIBS
715 CPPFLAGS
716 CPP'
719 # Initialize some variables set by options.
720 ac_init_help=
721 ac_init_version=false
722 # The variables have the same names as the options, with
723 # dashes changed to underlines.
724 cache_file=/dev/null
725 exec_prefix=NONE
726 no_create=
727 no_recursion=
728 prefix=NONE
729 program_prefix=NONE
730 program_suffix=NONE
731 program_transform_name=s,x,x,
732 silent=
733 site=
734 srcdir=
735 verbose=
736 x_includes=NONE
737 x_libraries=NONE
739 # Installation directory options.
740 # These are left unexpanded so users can "make install exec_prefix=/foo"
741 # and all the variables that are supposed to be based on exec_prefix
742 # by default will actually change.
743 # Use braces instead of parens because sh, perl, etc. also accept them.
744 # (The list follows the same order as the GNU Coding Standards.)
745 bindir='${exec_prefix}/bin'
746 sbindir='${exec_prefix}/sbin'
747 libexecdir='${exec_prefix}/libexec'
748 datarootdir='${prefix}/share'
749 datadir='${datarootdir}'
750 sysconfdir='${prefix}/etc'
751 sharedstatedir='${prefix}/com'
752 localstatedir='${prefix}/var'
753 includedir='${prefix}/include'
754 oldincludedir='/usr/include'
755 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
756 infodir='${datarootdir}/info'
757 htmldir='${docdir}'
758 dvidir='${docdir}'
759 pdfdir='${docdir}'
760 psdir='${docdir}'
761 libdir='${exec_prefix}/lib'
762 localedir='${datarootdir}/locale'
763 mandir='${datarootdir}/man'
765 ac_prev=
766 ac_dashdash=
767 for ac_option
769 # If the previous option needs an argument, assign it.
770 if test -n "$ac_prev"; then
771 eval $ac_prev=\$ac_option
772 ac_prev=
773 continue
776 case $ac_option in
777 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
778 *) ac_optarg=yes ;;
779 esac
781 # Accept the important Cygnus configure options, so we can diagnose typos.
783 case $ac_dashdash$ac_option in
785 ac_dashdash=yes ;;
787 -bindir | --bindir | --bindi | --bind | --bin | --bi)
788 ac_prev=bindir ;;
789 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
790 bindir=$ac_optarg ;;
792 -build | --build | --buil | --bui | --bu)
793 ac_prev=build_alias ;;
794 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
795 build_alias=$ac_optarg ;;
797 -cache-file | --cache-file | --cache-fil | --cache-fi \
798 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
799 ac_prev=cache_file ;;
800 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
801 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
802 cache_file=$ac_optarg ;;
804 --config-cache | -C)
805 cache_file=config.cache ;;
807 -datadir | --datadir | --datadi | --datad)
808 ac_prev=datadir ;;
809 -datadir=* | --datadir=* | --datadi=* | --datad=*)
810 datadir=$ac_optarg ;;
812 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
813 | --dataroo | --dataro | --datar)
814 ac_prev=datarootdir ;;
815 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
816 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
817 datarootdir=$ac_optarg ;;
819 -disable-* | --disable-*)
820 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
821 # Reject names that are not valid shell variable names.
822 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
823 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
824 { (exit 1); exit 1; }; }
825 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
826 eval enable_$ac_feature=no ;;
828 -docdir | --docdir | --docdi | --doc | --do)
829 ac_prev=docdir ;;
830 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
831 docdir=$ac_optarg ;;
833 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
834 ac_prev=dvidir ;;
835 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
836 dvidir=$ac_optarg ;;
838 -enable-* | --enable-*)
839 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
840 # Reject names that are not valid shell variable names.
841 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
842 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
843 { (exit 1); exit 1; }; }
844 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
845 eval enable_$ac_feature=\$ac_optarg ;;
847 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
848 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
849 | --exec | --exe | --ex)
850 ac_prev=exec_prefix ;;
851 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
852 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
853 | --exec=* | --exe=* | --ex=*)
854 exec_prefix=$ac_optarg ;;
856 -gas | --gas | --ga | --g)
857 # Obsolete; use --with-gas.
858 with_gas=yes ;;
860 -help | --help | --hel | --he | -h)
861 ac_init_help=long ;;
862 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
863 ac_init_help=recursive ;;
864 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
865 ac_init_help=short ;;
867 -host | --host | --hos | --ho)
868 ac_prev=host_alias ;;
869 -host=* | --host=* | --hos=* | --ho=*)
870 host_alias=$ac_optarg ;;
872 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
873 ac_prev=htmldir ;;
874 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
875 | --ht=*)
876 htmldir=$ac_optarg ;;
878 -includedir | --includedir | --includedi | --included | --include \
879 | --includ | --inclu | --incl | --inc)
880 ac_prev=includedir ;;
881 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
882 | --includ=* | --inclu=* | --incl=* | --inc=*)
883 includedir=$ac_optarg ;;
885 -infodir | --infodir | --infodi | --infod | --info | --inf)
886 ac_prev=infodir ;;
887 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
888 infodir=$ac_optarg ;;
890 -libdir | --libdir | --libdi | --libd)
891 ac_prev=libdir ;;
892 -libdir=* | --libdir=* | --libdi=* | --libd=*)
893 libdir=$ac_optarg ;;
895 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
896 | --libexe | --libex | --libe)
897 ac_prev=libexecdir ;;
898 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
899 | --libexe=* | --libex=* | --libe=*)
900 libexecdir=$ac_optarg ;;
902 -localedir | --localedir | --localedi | --localed | --locale)
903 ac_prev=localedir ;;
904 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
905 localedir=$ac_optarg ;;
907 -localstatedir | --localstatedir | --localstatedi | --localstated \
908 | --localstate | --localstat | --localsta | --localst | --locals)
909 ac_prev=localstatedir ;;
910 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
911 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
912 localstatedir=$ac_optarg ;;
914 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
915 ac_prev=mandir ;;
916 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
917 mandir=$ac_optarg ;;
919 -nfp | --nfp | --nf)
920 # Obsolete; use --without-fp.
921 with_fp=no ;;
923 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
924 | --no-cr | --no-c | -n)
925 no_create=yes ;;
927 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
928 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
929 no_recursion=yes ;;
931 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
932 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
933 | --oldin | --oldi | --old | --ol | --o)
934 ac_prev=oldincludedir ;;
935 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
936 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
937 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
938 oldincludedir=$ac_optarg ;;
940 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
941 ac_prev=prefix ;;
942 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
943 prefix=$ac_optarg ;;
945 -program-prefix | --program-prefix | --program-prefi | --program-pref \
946 | --program-pre | --program-pr | --program-p)
947 ac_prev=program_prefix ;;
948 -program-prefix=* | --program-prefix=* | --program-prefi=* \
949 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
950 program_prefix=$ac_optarg ;;
952 -program-suffix | --program-suffix | --program-suffi | --program-suff \
953 | --program-suf | --program-su | --program-s)
954 ac_prev=program_suffix ;;
955 -program-suffix=* | --program-suffix=* | --program-suffi=* \
956 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
957 program_suffix=$ac_optarg ;;
959 -program-transform-name | --program-transform-name \
960 | --program-transform-nam | --program-transform-na \
961 | --program-transform-n | --program-transform- \
962 | --program-transform | --program-transfor \
963 | --program-transfo | --program-transf \
964 | --program-trans | --program-tran \
965 | --progr-tra | --program-tr | --program-t)
966 ac_prev=program_transform_name ;;
967 -program-transform-name=* | --program-transform-name=* \
968 | --program-transform-nam=* | --program-transform-na=* \
969 | --program-transform-n=* | --program-transform-=* \
970 | --program-transform=* | --program-transfor=* \
971 | --program-transfo=* | --program-transf=* \
972 | --program-trans=* | --program-tran=* \
973 | --progr-tra=* | --program-tr=* | --program-t=*)
974 program_transform_name=$ac_optarg ;;
976 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
977 ac_prev=pdfdir ;;
978 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
979 pdfdir=$ac_optarg ;;
981 -psdir | --psdir | --psdi | --psd | --ps)
982 ac_prev=psdir ;;
983 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
984 psdir=$ac_optarg ;;
986 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
987 | -silent | --silent | --silen | --sile | --sil)
988 silent=yes ;;
990 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
991 ac_prev=sbindir ;;
992 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
993 | --sbi=* | --sb=*)
994 sbindir=$ac_optarg ;;
996 -sharedstatedir | --sharedstatedir | --sharedstatedi \
997 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
998 | --sharedst | --shareds | --shared | --share | --shar \
999 | --sha | --sh)
1000 ac_prev=sharedstatedir ;;
1001 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1002 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1003 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1004 | --sha=* | --sh=*)
1005 sharedstatedir=$ac_optarg ;;
1007 -site | --site | --sit)
1008 ac_prev=site ;;
1009 -site=* | --site=* | --sit=*)
1010 site=$ac_optarg ;;
1012 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1013 ac_prev=srcdir ;;
1014 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1015 srcdir=$ac_optarg ;;
1017 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1018 | --syscon | --sysco | --sysc | --sys | --sy)
1019 ac_prev=sysconfdir ;;
1020 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1021 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1022 sysconfdir=$ac_optarg ;;
1024 -target | --target | --targe | --targ | --tar | --ta | --t)
1025 ac_prev=target_alias ;;
1026 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1027 target_alias=$ac_optarg ;;
1029 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1030 verbose=yes ;;
1032 -version | --version | --versio | --versi | --vers | -V)
1033 ac_init_version=: ;;
1035 -with-* | --with-*)
1036 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1037 # Reject names that are not valid shell variable names.
1038 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1039 { echo "$as_me: error: invalid package name: $ac_package" >&2
1040 { (exit 1); exit 1; }; }
1041 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1042 eval with_$ac_package=\$ac_optarg ;;
1044 -without-* | --without-*)
1045 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1046 # Reject names that are not valid shell variable names.
1047 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1048 { echo "$as_me: error: invalid package name: $ac_package" >&2
1049 { (exit 1); exit 1; }; }
1050 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1051 eval with_$ac_package=no ;;
1053 --x)
1054 # Obsolete; use --with-x.
1055 with_x=yes ;;
1057 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1058 | --x-incl | --x-inc | --x-in | --x-i)
1059 ac_prev=x_includes ;;
1060 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1061 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1062 x_includes=$ac_optarg ;;
1064 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1065 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1066 ac_prev=x_libraries ;;
1067 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1068 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1069 x_libraries=$ac_optarg ;;
1071 -*) { echo "$as_me: error: unrecognized option: $ac_option
1072 Try \`$0 --help' for more information." >&2
1073 { (exit 1); exit 1; }; }
1076 *=*)
1077 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1080 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1081 { (exit 1); exit 1; }; }
1082 eval $ac_envvar=\$ac_optarg
1083 export $ac_envvar ;;
1086 # FIXME: should be removed in autoconf 3.0.
1087 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1088 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1089 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1090 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1093 esac
1094 done
1096 if test -n "$ac_prev"; then
1097 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1098 { echo "$as_me: error: missing argument to $ac_option" >&2
1099 { (exit 1); exit 1; }; }
1102 # Be sure to have absolute directory names.
1103 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1104 datadir sysconfdir sharedstatedir localstatedir includedir \
1105 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1106 libdir localedir mandir
1108 eval ac_val=\$$ac_var
1109 case $ac_val in
1110 [\\/$]* | ?:[\\/]* ) continue;;
1111 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1112 esac
1113 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1114 { (exit 1); exit 1; }; }
1115 done
1117 # There might be people who depend on the old broken behavior: `$host'
1118 # used to hold the argument of --host etc.
1119 # FIXME: To remove some day.
1120 build=$build_alias
1121 host=$host_alias
1122 target=$target_alias
1124 # FIXME: To remove some day.
1125 if test "x$host_alias" != x; then
1126 if test "x$build_alias" = x; then
1127 cross_compiling=maybe
1128 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1129 If a cross compiler is detected then cross compile mode will be used." >&2
1130 elif test "x$build_alias" != "x$host_alias"; then
1131 cross_compiling=yes
1135 ac_tool_prefix=
1136 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1138 test "$silent" = yes && exec 6>/dev/null
1141 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1142 ac_ls_di=`ls -di .` &&
1143 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1144 { echo "$as_me: error: Working directory cannot be determined" >&2
1145 { (exit 1); exit 1; }; }
1146 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1147 { echo "$as_me: error: pwd does not report name of working directory" >&2
1148 { (exit 1); exit 1; }; }
1151 # Find the source files, if location was not specified.
1152 if test -z "$srcdir"; then
1153 ac_srcdir_defaulted=yes
1154 # Try the directory containing this script, then the parent directory.
1155 ac_confdir=`$as_dirname -- "$0" ||
1156 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1157 X"$0" : 'X\(//\)[^/]' \| \
1158 X"$0" : 'X\(//\)$' \| \
1159 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1160 echo X"$0" |
1161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1162 s//\1/
1165 /^X\(\/\/\)[^/].*/{
1166 s//\1/
1169 /^X\(\/\/\)$/{
1170 s//\1/
1173 /^X\(\/\).*/{
1174 s//\1/
1177 s/.*/./; q'`
1178 srcdir=$ac_confdir
1179 if test ! -r "$srcdir/$ac_unique_file"; then
1180 srcdir=..
1182 else
1183 ac_srcdir_defaulted=no
1185 if test ! -r "$srcdir/$ac_unique_file"; then
1186 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1187 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1188 { (exit 1); exit 1; }; }
1190 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1191 ac_abs_confdir=`(
1192 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1193 { (exit 1); exit 1; }; }
1194 pwd)`
1195 # When building in place, set srcdir=.
1196 if test "$ac_abs_confdir" = "$ac_pwd"; then
1197 srcdir=.
1199 # Remove unnecessary trailing slashes from srcdir.
1200 # Double slashes in file names in object file debugging info
1201 # mess up M-x gdb in Emacs.
1202 case $srcdir in
1203 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1204 esac
1205 for ac_var in $ac_precious_vars; do
1206 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1207 eval ac_env_${ac_var}_value=\$${ac_var}
1208 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1209 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1210 done
1213 # Report the --help message.
1215 if test "$ac_init_help" = "long"; then
1216 # Omit some internal or obsolete options to make the list less imposing.
1217 # This message is too long to be a string in the A/UX 3.1 sh.
1218 cat <<_ACEOF
1219 \`configure' configures nbd 2.8.8 to adapt to many kinds of systems.
1221 Usage: $0 [OPTION]... [VAR=VALUE]...
1223 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1224 VAR=VALUE. See below for descriptions of some of the useful variables.
1226 Defaults for the options are specified in brackets.
1228 Configuration:
1229 -h, --help display this help and exit
1230 --help=short display options specific to this package
1231 --help=recursive display the short help of all the included packages
1232 -V, --version display version information and exit
1233 -q, --quiet, --silent do not print \`checking...' messages
1234 --cache-file=FILE cache test results in FILE [disabled]
1235 -C, --config-cache alias for \`--cache-file=config.cache'
1236 -n, --no-create do not create output files
1237 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1239 Installation directories:
1240 --prefix=PREFIX install architecture-independent files in PREFIX
1241 [$ac_default_prefix]
1242 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1243 [PREFIX]
1245 By default, \`make install' will install all the files in
1246 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1247 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1248 for instance \`--prefix=\$HOME'.
1250 For better control, use the options below.
1252 Fine tuning of the installation directories:
1253 --bindir=DIR user executables [EPREFIX/bin]
1254 --sbindir=DIR system admin executables [EPREFIX/sbin]
1255 --libexecdir=DIR program executables [EPREFIX/libexec]
1256 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1257 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1258 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1259 --libdir=DIR object code libraries [EPREFIX/lib]
1260 --includedir=DIR C header files [PREFIX/include]
1261 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1262 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1263 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1264 --infodir=DIR info documentation [DATAROOTDIR/info]
1265 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1266 --mandir=DIR man documentation [DATAROOTDIR/man]
1267 --docdir=DIR documentation root [DATAROOTDIR/doc/nbd]
1268 --htmldir=DIR html documentation [DOCDIR]
1269 --dvidir=DIR dvi documentation [DOCDIR]
1270 --pdfdir=DIR pdf documentation [DOCDIR]
1271 --psdir=DIR ps documentation [DOCDIR]
1272 _ACEOF
1274 cat <<\_ACEOF
1276 Program names:
1277 --program-prefix=PREFIX prepend PREFIX to installed program names
1278 --program-suffix=SUFFIX append SUFFIX to installed program names
1279 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1280 _ACEOF
1283 if test -n "$ac_init_help"; then
1284 case $ac_init_help in
1285 short | recursive ) echo "Configuration of nbd 2.8.8:";;
1286 esac
1287 cat <<\_ACEOF
1289 Optional Features:
1290 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1291 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1292 --enable-maintainer-mode enable make rules and dependencies not useful
1293 (and sometimes confusing) to the casual installer
1294 --disable-lfs Disable Large File Support (enabled by default)
1295 --disable-syslog Disable Syslog logging (enabled by default)
1296 --disable-dependency-tracking speeds up one-time build
1297 --enable-dependency-tracking do not reject slow dependency extractors
1298 --disable-glibtest do not try to compile and run a test GLIB program
1300 Some influential environment variables:
1301 CC C compiler command
1302 CFLAGS C compiler flags
1303 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1304 nonstandard directory <lib dir>
1305 LIBS libraries to pass to the linker, e.g. -l<library>
1306 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1307 you have headers in a nonstandard directory <include dir>
1308 CPP C preprocessor
1310 Use these variables to override the choices made by `configure' or to help
1311 it to find libraries and programs with nonstandard names/locations.
1313 Report bugs to <wouter@debian.org>.
1314 _ACEOF
1315 ac_status=$?
1318 if test "$ac_init_help" = "recursive"; then
1319 # If there are subdirs, report their specific --help.
1320 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1321 test -d "$ac_dir" || continue
1322 ac_builddir=.
1324 case "$ac_dir" in
1325 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1327 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1328 # A ".." for each directory in $ac_dir_suffix.
1329 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1330 case $ac_top_builddir_sub in
1331 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1332 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1333 esac ;;
1334 esac
1335 ac_abs_top_builddir=$ac_pwd
1336 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1337 # for backward compatibility:
1338 ac_top_builddir=$ac_top_build_prefix
1340 case $srcdir in
1341 .) # We are building in place.
1342 ac_srcdir=.
1343 ac_top_srcdir=$ac_top_builddir_sub
1344 ac_abs_top_srcdir=$ac_pwd ;;
1345 [\\/]* | ?:[\\/]* ) # Absolute name.
1346 ac_srcdir=$srcdir$ac_dir_suffix;
1347 ac_top_srcdir=$srcdir
1348 ac_abs_top_srcdir=$srcdir ;;
1349 *) # Relative name.
1350 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1351 ac_top_srcdir=$ac_top_build_prefix$srcdir
1352 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1353 esac
1354 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1356 cd "$ac_dir" || { ac_status=$?; continue; }
1357 # Check for guested configure.
1358 if test -f "$ac_srcdir/configure.gnu"; then
1359 echo &&
1360 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1361 elif test -f "$ac_srcdir/configure"; then
1362 echo &&
1363 $SHELL "$ac_srcdir/configure" --help=recursive
1364 else
1365 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1366 fi || ac_status=$?
1367 cd "$ac_pwd" || { ac_status=$?; break; }
1368 done
1371 test -n "$ac_init_help" && exit $ac_status
1372 if $ac_init_version; then
1373 cat <<\_ACEOF
1374 nbd configure 2.8.8
1375 generated by GNU Autoconf 2.61
1377 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1378 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1379 This configure script is free software; the Free Software Foundation
1380 gives unlimited permission to copy, distribute and modify it.
1381 _ACEOF
1382 exit
1384 cat >config.log <<_ACEOF
1385 This file contains any messages produced by compilers while
1386 running configure, to aid debugging if configure makes a mistake.
1388 It was created by nbd $as_me 2.8.8, which was
1389 generated by GNU Autoconf 2.61. Invocation command line was
1391 $ $0 $@
1393 _ACEOF
1394 exec 5>>config.log
1396 cat <<_ASUNAME
1397 ## --------- ##
1398 ## Platform. ##
1399 ## --------- ##
1401 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1402 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1403 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1404 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1405 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1407 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1408 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1410 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1411 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1412 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1413 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1414 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1415 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1416 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1418 _ASUNAME
1420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1421 for as_dir in $PATH
1423 IFS=$as_save_IFS
1424 test -z "$as_dir" && as_dir=.
1425 echo "PATH: $as_dir"
1426 done
1427 IFS=$as_save_IFS
1429 } >&5
1431 cat >&5 <<_ACEOF
1434 ## ----------- ##
1435 ## Core tests. ##
1436 ## ----------- ##
1438 _ACEOF
1441 # Keep a trace of the command line.
1442 # Strip out --no-create and --no-recursion so they do not pile up.
1443 # Strip out --silent because we don't want to record it for future runs.
1444 # Also quote any args containing shell meta-characters.
1445 # Make two passes to allow for proper duplicate-argument suppression.
1446 ac_configure_args=
1447 ac_configure_args0=
1448 ac_configure_args1=
1449 ac_must_keep_next=false
1450 for ac_pass in 1 2
1452 for ac_arg
1454 case $ac_arg in
1455 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1456 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1457 | -silent | --silent | --silen | --sile | --sil)
1458 continue ;;
1459 *\'*)
1460 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1461 esac
1462 case $ac_pass in
1463 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1465 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1466 if test $ac_must_keep_next = true; then
1467 ac_must_keep_next=false # Got value, back to normal.
1468 else
1469 case $ac_arg in
1470 *=* | --config-cache | -C | -disable-* | --disable-* \
1471 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1472 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1473 | -with-* | --with-* | -without-* | --without-* | --x)
1474 case "$ac_configure_args0 " in
1475 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1476 esac
1478 -* ) ac_must_keep_next=true ;;
1479 esac
1481 ac_configure_args="$ac_configure_args '$ac_arg'"
1483 esac
1484 done
1485 done
1486 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1487 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1489 # When interrupted or exit'd, cleanup temporary files, and complete
1490 # config.log. We remove comments because anyway the quotes in there
1491 # would cause problems or look ugly.
1492 # WARNING: Use '\'' to represent an apostrophe within the trap.
1493 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1494 trap 'exit_status=$?
1495 # Save into config.log some information that might help in debugging.
1497 echo
1499 cat <<\_ASBOX
1500 ## ---------------- ##
1501 ## Cache variables. ##
1502 ## ---------------- ##
1503 _ASBOX
1504 echo
1505 # The following way of writing the cache mishandles newlines in values,
1507 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1508 eval ac_val=\$$ac_var
1509 case $ac_val in #(
1510 *${as_nl}*)
1511 case $ac_var in #(
1512 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1513 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1514 esac
1515 case $ac_var in #(
1516 _ | IFS | as_nl) ;; #(
1517 *) $as_unset $ac_var ;;
1518 esac ;;
1519 esac
1520 done
1521 (set) 2>&1 |
1522 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1523 *${as_nl}ac_space=\ *)
1524 sed -n \
1525 "s/'\''/'\''\\\\'\'''\''/g;
1526 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1527 ;; #(
1529 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1531 esac |
1532 sort
1534 echo
1536 cat <<\_ASBOX
1537 ## ----------------- ##
1538 ## Output variables. ##
1539 ## ----------------- ##
1540 _ASBOX
1541 echo
1542 for ac_var in $ac_subst_vars
1544 eval ac_val=\$$ac_var
1545 case $ac_val in
1546 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1547 esac
1548 echo "$ac_var='\''$ac_val'\''"
1549 done | sort
1550 echo
1552 if test -n "$ac_subst_files"; then
1553 cat <<\_ASBOX
1554 ## ------------------- ##
1555 ## File substitutions. ##
1556 ## ------------------- ##
1557 _ASBOX
1558 echo
1559 for ac_var in $ac_subst_files
1561 eval ac_val=\$$ac_var
1562 case $ac_val in
1563 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1564 esac
1565 echo "$ac_var='\''$ac_val'\''"
1566 done | sort
1567 echo
1570 if test -s confdefs.h; then
1571 cat <<\_ASBOX
1572 ## ----------- ##
1573 ## confdefs.h. ##
1574 ## ----------- ##
1575 _ASBOX
1576 echo
1577 cat confdefs.h
1578 echo
1580 test "$ac_signal" != 0 &&
1581 echo "$as_me: caught signal $ac_signal"
1582 echo "$as_me: exit $exit_status"
1583 } >&5
1584 rm -f core *.core core.conftest.* &&
1585 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1586 exit $exit_status
1588 for ac_signal in 1 2 13 15; do
1589 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1590 done
1591 ac_signal=0
1593 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1594 rm -f -r conftest* confdefs.h
1596 # Predefined preprocessor variables.
1598 cat >>confdefs.h <<_ACEOF
1599 #define PACKAGE_NAME "$PACKAGE_NAME"
1600 _ACEOF
1603 cat >>confdefs.h <<_ACEOF
1604 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1605 _ACEOF
1608 cat >>confdefs.h <<_ACEOF
1609 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1610 _ACEOF
1613 cat >>confdefs.h <<_ACEOF
1614 #define PACKAGE_STRING "$PACKAGE_STRING"
1615 _ACEOF
1618 cat >>confdefs.h <<_ACEOF
1619 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1620 _ACEOF
1623 # Let the site file select an alternate cache file if it wants to.
1624 # Prefer explicitly selected file to automatically selected ones.
1625 if test -n "$CONFIG_SITE"; then
1626 set x "$CONFIG_SITE"
1627 elif test "x$prefix" != xNONE; then
1628 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1629 else
1630 set x "$ac_default_prefix/share/config.site" \
1631 "$ac_default_prefix/etc/config.site"
1633 shift
1634 for ac_site_file
1636 if test -r "$ac_site_file"; then
1637 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1638 echo "$as_me: loading site script $ac_site_file" >&6;}
1639 sed 's/^/| /' "$ac_site_file" >&5
1640 . "$ac_site_file"
1642 done
1644 if test -r "$cache_file"; then
1645 # Some versions of bash will fail to source /dev/null (special
1646 # files actually), so we avoid doing that.
1647 if test -f "$cache_file"; then
1648 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1649 echo "$as_me: loading cache $cache_file" >&6;}
1650 case $cache_file in
1651 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1652 *) . "./$cache_file";;
1653 esac
1655 else
1656 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1657 echo "$as_me: creating cache $cache_file" >&6;}
1658 >$cache_file
1661 # Check that the precious variables saved in the cache have kept the same
1662 # value.
1663 ac_cache_corrupted=false
1664 for ac_var in $ac_precious_vars; do
1665 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1666 eval ac_new_set=\$ac_env_${ac_var}_set
1667 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1668 eval ac_new_val=\$ac_env_${ac_var}_value
1669 case $ac_old_set,$ac_new_set in
1670 set,)
1671 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1672 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1673 ac_cache_corrupted=: ;;
1674 ,set)
1675 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1676 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1677 ac_cache_corrupted=: ;;
1678 ,);;
1680 if test "x$ac_old_val" != "x$ac_new_val"; then
1681 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1682 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1683 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1684 echo "$as_me: former value: $ac_old_val" >&2;}
1685 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1686 echo "$as_me: current value: $ac_new_val" >&2;}
1687 ac_cache_corrupted=:
1688 fi;;
1689 esac
1690 # Pass precious variables to config.status.
1691 if test "$ac_new_set" = set; then
1692 case $ac_new_val in
1693 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1694 *) ac_arg=$ac_var=$ac_new_val ;;
1695 esac
1696 case " $ac_configure_args " in
1697 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1698 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1699 esac
1701 done
1702 if $ac_cache_corrupted; then
1703 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1704 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1705 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1706 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1707 { (exit 1); exit 1; }; }
1734 ac_ext=c
1735 ac_cpp='$CPP $CPPFLAGS'
1736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1741 am__api_version="1.9"
1742 ac_aux_dir=
1743 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1744 if test -f "$ac_dir/install-sh"; then
1745 ac_aux_dir=$ac_dir
1746 ac_install_sh="$ac_aux_dir/install-sh -c"
1747 break
1748 elif test -f "$ac_dir/install.sh"; then
1749 ac_aux_dir=$ac_dir
1750 ac_install_sh="$ac_aux_dir/install.sh -c"
1751 break
1752 elif test -f "$ac_dir/shtool"; then
1753 ac_aux_dir=$ac_dir
1754 ac_install_sh="$ac_aux_dir/shtool install -c"
1755 break
1757 done
1758 if test -z "$ac_aux_dir"; then
1759 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1760 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1761 { (exit 1); exit 1; }; }
1764 # These three variables are undocumented and unsupported,
1765 # and are intended to be withdrawn in a future Autoconf release.
1766 # They can cause serious problems if a builder's source tree is in a directory
1767 # whose full name contains unusual characters.
1768 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1769 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1770 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1773 # Find a good install program. We prefer a C program (faster),
1774 # so one script is as good as another. But avoid the broken or
1775 # incompatible versions:
1776 # SysV /etc/install, /usr/sbin/install
1777 # SunOS /usr/etc/install
1778 # IRIX /sbin/install
1779 # AIX /bin/install
1780 # AmigaOS /C/install, which installs bootblocks on floppy discs
1781 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1782 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1783 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1784 # OS/2's system install, which has a completely different semantic
1785 # ./install, which can be erroneously created by make from ./install.sh.
1786 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1787 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1788 if test -z "$INSTALL"; then
1789 if test "${ac_cv_path_install+set}" = set; then
1790 echo $ECHO_N "(cached) $ECHO_C" >&6
1791 else
1792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1793 for as_dir in $PATH
1795 IFS=$as_save_IFS
1796 test -z "$as_dir" && as_dir=.
1797 # Account for people who put trailing slashes in PATH elements.
1798 case $as_dir/ in
1799 ./ | .// | /cC/* | \
1800 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1801 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1802 /usr/ucb/* ) ;;
1804 # OSF1 and SCO ODT 3.0 have their own names for install.
1805 # Don't use installbsd from OSF since it installs stuff as root
1806 # by default.
1807 for ac_prog in ginstall scoinst install; do
1808 for ac_exec_ext in '' $ac_executable_extensions; do
1809 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1810 if test $ac_prog = install &&
1811 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1812 # AIX install. It has an incompatible calling convention.
1814 elif test $ac_prog = install &&
1815 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1816 # program-specific install script used by HP pwplus--don't use.
1818 else
1819 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1820 break 3
1823 done
1824 done
1826 esac
1827 done
1828 IFS=$as_save_IFS
1832 if test "${ac_cv_path_install+set}" = set; then
1833 INSTALL=$ac_cv_path_install
1834 else
1835 # As a last resort, use the slow shell script. Don't cache a
1836 # value for INSTALL within a source directory, because that will
1837 # break other packages using the cache if that directory is
1838 # removed, or if the value is a relative name.
1839 INSTALL=$ac_install_sh
1842 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1843 echo "${ECHO_T}$INSTALL" >&6; }
1845 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1846 # It thinks the first close brace ends the variable substitution.
1847 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1849 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1851 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1853 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1854 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1855 # Just in case
1856 sleep 1
1857 echo timestamp > conftest.file
1858 # Do `set' in a subshell so we don't clobber the current shell's
1859 # arguments. Must try -L first in case configure is actually a
1860 # symlink; some systems play weird games with the mod time of symlinks
1861 # (eg FreeBSD returns the mod time of the symlink's containing
1862 # directory).
1863 if (
1864 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1865 if test "$*" = "X"; then
1866 # -L didn't work.
1867 set X `ls -t $srcdir/configure conftest.file`
1869 rm -f conftest.file
1870 if test "$*" != "X $srcdir/configure conftest.file" \
1871 && test "$*" != "X conftest.file $srcdir/configure"; then
1873 # If neither matched, then we have a broken ls. This can happen
1874 # if, for instance, CONFIG_SHELL is bash and it inherits a
1875 # broken ls alias from the environment. This has actually
1876 # happened. Such a system could not be considered "sane".
1877 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1878 alias in your environment" >&5
1879 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1880 alias in your environment" >&2;}
1881 { (exit 1); exit 1; }; }
1884 test "$2" = conftest.file
1886 then
1887 # Ok.
1889 else
1890 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1891 Check your system clock" >&5
1892 echo "$as_me: error: newly created file is older than distributed files!
1893 Check your system clock" >&2;}
1894 { (exit 1); exit 1; }; }
1896 { echo "$as_me:$LINENO: result: yes" >&5
1897 echo "${ECHO_T}yes" >&6; }
1898 test "$program_prefix" != NONE &&
1899 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1900 # Use a double $ so make ignores it.
1901 test "$program_suffix" != NONE &&
1902 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1903 # Double any \ or $. echo might interpret backslashes.
1904 # By default was `s,x,x', remove it if useless.
1905 cat <<\_ACEOF >conftest.sed
1906 s/[\\$]/&&/g;s/;s,x,x,$//
1907 _ACEOF
1908 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1909 rm -f conftest.sed
1911 # expand $ac_aux_dir to an absolute path
1912 am_aux_dir=`cd $ac_aux_dir && pwd`
1914 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1915 # Use eval to expand $SHELL
1916 if eval "$MISSING --run true"; then
1917 am_missing_run="$MISSING --run "
1918 else
1919 am_missing_run=
1920 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1921 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1924 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1925 # We used to keeping the `.' as first argument, in order to
1926 # allow $(mkdir_p) to be used without argument. As in
1927 # $(mkdir_p) $(somedir)
1928 # where $(somedir) is conditionally defined. However this is wrong
1929 # for two reasons:
1930 # 1. if the package is installed by a user who cannot write `.'
1931 # make install will fail,
1932 # 2. the above comment should most certainly read
1933 # $(mkdir_p) $(DESTDIR)$(somedir)
1934 # so it does not work when $(somedir) is undefined and
1935 # $(DESTDIR) is not.
1936 # To support the latter case, we have to write
1937 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1938 # so the `.' trick is pointless.
1939 mkdir_p='mkdir -p --'
1940 else
1941 # On NextStep and OpenStep, the `mkdir' command does not
1942 # recognize any option. It will interpret all options as
1943 # directories to create, and then abort because `.' already
1944 # exists.
1945 for d in ./-p ./--version;
1947 test -d $d && rmdir $d
1948 done
1949 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1950 if test -f "$ac_aux_dir/mkinstalldirs"; then
1951 mkdir_p='$(mkinstalldirs)'
1952 else
1953 mkdir_p='$(install_sh) -d'
1957 for ac_prog in gawk mawk nawk awk
1959 # Extract the first word of "$ac_prog", so it can be a program name with args.
1960 set dummy $ac_prog; ac_word=$2
1961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1963 if test "${ac_cv_prog_AWK+set}" = set; then
1964 echo $ECHO_N "(cached) $ECHO_C" >&6
1965 else
1966 if test -n "$AWK"; then
1967 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1968 else
1969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1970 for as_dir in $PATH
1972 IFS=$as_save_IFS
1973 test -z "$as_dir" && as_dir=.
1974 for ac_exec_ext in '' $ac_executable_extensions; do
1975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1976 ac_cv_prog_AWK="$ac_prog"
1977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1978 break 2
1980 done
1981 done
1982 IFS=$as_save_IFS
1986 AWK=$ac_cv_prog_AWK
1987 if test -n "$AWK"; then
1988 { echo "$as_me:$LINENO: result: $AWK" >&5
1989 echo "${ECHO_T}$AWK" >&6; }
1990 else
1991 { echo "$as_me:$LINENO: result: no" >&5
1992 echo "${ECHO_T}no" >&6; }
1996 test -n "$AWK" && break
1997 done
1999 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2000 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2001 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2002 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2003 echo $ECHO_N "(cached) $ECHO_C" >&6
2004 else
2005 cat >conftest.make <<\_ACEOF
2006 SHELL = /bin/sh
2007 all:
2008 @echo '@@@%%%=$(MAKE)=@@@%%%'
2009 _ACEOF
2010 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2011 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2012 *@@@%%%=?*=@@@%%%*)
2013 eval ac_cv_prog_make_${ac_make}_set=yes;;
2015 eval ac_cv_prog_make_${ac_make}_set=no;;
2016 esac
2017 rm -f conftest.make
2019 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2020 { echo "$as_me:$LINENO: result: yes" >&5
2021 echo "${ECHO_T}yes" >&6; }
2022 SET_MAKE=
2023 else
2024 { echo "$as_me:$LINENO: result: no" >&5
2025 echo "${ECHO_T}no" >&6; }
2026 SET_MAKE="MAKE=${MAKE-make}"
2029 rm -rf .tst 2>/dev/null
2030 mkdir .tst 2>/dev/null
2031 if test -d .tst; then
2032 am__leading_dot=.
2033 else
2034 am__leading_dot=_
2036 rmdir .tst 2>/dev/null
2038 # test to see if srcdir already configured
2039 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2040 test -f $srcdir/config.status; then
2041 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2042 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2043 { (exit 1); exit 1; }; }
2046 # test whether we have cygpath
2047 if test -z "$CYGPATH_W"; then
2048 if (cygpath --version) >/dev/null 2>/dev/null; then
2049 CYGPATH_W='cygpath -w'
2050 else
2051 CYGPATH_W=echo
2056 # Define the identity of the package.
2057 PACKAGE='nbd'
2058 VERSION='2.8.8'
2061 cat >>confdefs.h <<_ACEOF
2062 #define PACKAGE "$PACKAGE"
2063 _ACEOF
2066 cat >>confdefs.h <<_ACEOF
2067 #define VERSION "$VERSION"
2068 _ACEOF
2070 # Some tools Automake needs.
2072 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2075 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2078 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2081 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2084 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2086 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2088 # Installed binaries are usually stripped using `strip' when the user
2089 # run `make install-strip'. However `strip' might not be the right
2090 # tool to use in cross-compilation environments, therefore Automake
2091 # will honor the `STRIP' environment variable to overrule this program.
2092 if test "$cross_compiling" != no; then
2093 if test -n "$ac_tool_prefix"; then
2094 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2095 set dummy ${ac_tool_prefix}strip; ac_word=$2
2096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2098 if test "${ac_cv_prog_STRIP+set}" = set; then
2099 echo $ECHO_N "(cached) $ECHO_C" >&6
2100 else
2101 if test -n "$STRIP"; then
2102 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2103 else
2104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2105 for as_dir in $PATH
2107 IFS=$as_save_IFS
2108 test -z "$as_dir" && as_dir=.
2109 for ac_exec_ext in '' $ac_executable_extensions; do
2110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2111 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2113 break 2
2115 done
2116 done
2117 IFS=$as_save_IFS
2121 STRIP=$ac_cv_prog_STRIP
2122 if test -n "$STRIP"; then
2123 { echo "$as_me:$LINENO: result: $STRIP" >&5
2124 echo "${ECHO_T}$STRIP" >&6; }
2125 else
2126 { echo "$as_me:$LINENO: result: no" >&5
2127 echo "${ECHO_T}no" >&6; }
2132 if test -z "$ac_cv_prog_STRIP"; then
2133 ac_ct_STRIP=$STRIP
2134 # Extract the first word of "strip", so it can be a program name with args.
2135 set dummy strip; ac_word=$2
2136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2138 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2139 echo $ECHO_N "(cached) $ECHO_C" >&6
2140 else
2141 if test -n "$ac_ct_STRIP"; then
2142 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2143 else
2144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145 for as_dir in $PATH
2147 IFS=$as_save_IFS
2148 test -z "$as_dir" && as_dir=.
2149 for ac_exec_ext in '' $ac_executable_extensions; do
2150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2151 ac_cv_prog_ac_ct_STRIP="strip"
2152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2153 break 2
2155 done
2156 done
2157 IFS=$as_save_IFS
2161 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2162 if test -n "$ac_ct_STRIP"; then
2163 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2164 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2165 else
2166 { echo "$as_me:$LINENO: result: no" >&5
2167 echo "${ECHO_T}no" >&6; }
2170 if test "x$ac_ct_STRIP" = x; then
2171 STRIP=":"
2172 else
2173 case $cross_compiling:$ac_tool_warned in
2174 yes:)
2175 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2176 whose name does not start with the host triplet. If you think this
2177 configuration is useful to you, please write to autoconf@gnu.org." >&5
2178 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2179 whose name does not start with the host triplet. If you think this
2180 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2181 ac_tool_warned=yes ;;
2182 esac
2183 STRIP=$ac_ct_STRIP
2185 else
2186 STRIP="$ac_cv_prog_STRIP"
2190 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2192 # We need awk for the "check" target. The system "awk" is bad on
2193 # some platforms.
2194 # Always define AMTAR for backward compatibility.
2196 AMTAR=${AMTAR-"${am_missing_run}tar"}
2198 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2204 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2205 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2206 # Check whether --enable-maintainer-mode was given.
2207 if test "${enable_maintainer_mode+set}" = set; then
2208 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2209 else
2210 USE_MAINTAINER_MODE=no
2213 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2214 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2217 if test $USE_MAINTAINER_MODE = yes; then
2218 MAINTAINER_MODE_TRUE=
2219 MAINTAINER_MODE_FALSE='#'
2220 else
2221 MAINTAINER_MODE_TRUE='#'
2222 MAINTAINER_MODE_FALSE=
2225 MAINT=$MAINTAINER_MODE_TRUE
2229 # Check whether --enable-lfs was given.
2230 if test "${enable_lfs+set}" = set; then
2231 enableval=$enable_lfs;
2232 if test "x$enableval" = "xyes" ; then
2233 NBD_LFS=1
2234 else
2235 NBD_LFS=0
2238 else
2239 NBD_LFS=1
2243 NBD_LFS=1
2244 { echo "$as_me:$LINENO: checking whether Large File Support should be enabled" >&5
2245 echo $ECHO_N "checking whether Large File Support should be enabled... $ECHO_C" >&6; }
2246 if test $NBD_LFS -eq 1; then
2248 cat >>confdefs.h <<\_ACEOF
2249 #define NBD_LFS 1
2250 _ACEOF
2252 { echo "$as_me:$LINENO: result: yes" >&5
2253 echo "${ECHO_T}yes" >&6; }
2254 else
2255 cat >>confdefs.h <<\_ACEOF
2256 #define NBD_LFS 0
2257 _ACEOF
2259 { echo "$as_me:$LINENO: result: no" >&5
2260 echo "${ECHO_T}no" >&6; }
2263 # Check whether --enable-syslog was given.
2264 if test "${enable_syslog+set}" = set; then
2265 enableval=$enable_syslog;
2266 if test "x$enableval" = "xyes" ; then
2267 ISSERVER=1
2268 else
2269 ISSERVER=0
2272 else
2273 ISSERVER=1
2277 { echo "$as_me:$LINENO: checking whether syslog logging is requested" >&5
2278 echo $ECHO_N "checking whether syslog logging is requested... $ECHO_C" >&6; }
2279 if test $ISSERVER -eq 1; then
2281 cat >>confdefs.h <<\_ACEOF
2282 #define ISSERVER 1
2283 _ACEOF
2285 { echo "$as_me:$LINENO: result: yes" >&5
2286 echo "${ECHO_T}yes" >&6; }
2287 else
2288 { echo "$as_me:$LINENO: result: no" >&5
2289 echo "${ECHO_T}no" >&6; }
2292 ac_ext=c
2293 ac_cpp='$CPP $CPPFLAGS'
2294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2297 if test -n "$ac_tool_prefix"; then
2298 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2299 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2302 if test "${ac_cv_prog_CC+set}" = set; then
2303 echo $ECHO_N "(cached) $ECHO_C" >&6
2304 else
2305 if test -n "$CC"; then
2306 ac_cv_prog_CC="$CC" # Let the user override the test.
2307 else
2308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309 for as_dir in $PATH
2311 IFS=$as_save_IFS
2312 test -z "$as_dir" && as_dir=.
2313 for ac_exec_ext in '' $ac_executable_extensions; do
2314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2315 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2317 break 2
2319 done
2320 done
2321 IFS=$as_save_IFS
2325 CC=$ac_cv_prog_CC
2326 if test -n "$CC"; then
2327 { echo "$as_me:$LINENO: result: $CC" >&5
2328 echo "${ECHO_T}$CC" >&6; }
2329 else
2330 { echo "$as_me:$LINENO: result: no" >&5
2331 echo "${ECHO_T}no" >&6; }
2336 if test -z "$ac_cv_prog_CC"; then
2337 ac_ct_CC=$CC
2338 # Extract the first word of "gcc", so it can be a program name with args.
2339 set dummy gcc; ac_word=$2
2340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2342 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2343 echo $ECHO_N "(cached) $ECHO_C" >&6
2344 else
2345 if test -n "$ac_ct_CC"; then
2346 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2347 else
2348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2349 for as_dir in $PATH
2351 IFS=$as_save_IFS
2352 test -z "$as_dir" && as_dir=.
2353 for ac_exec_ext in '' $ac_executable_extensions; do
2354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2355 ac_cv_prog_ac_ct_CC="gcc"
2356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2357 break 2
2359 done
2360 done
2361 IFS=$as_save_IFS
2365 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2366 if test -n "$ac_ct_CC"; then
2367 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2368 echo "${ECHO_T}$ac_ct_CC" >&6; }
2369 else
2370 { echo "$as_me:$LINENO: result: no" >&5
2371 echo "${ECHO_T}no" >&6; }
2374 if test "x$ac_ct_CC" = x; then
2375 CC=""
2376 else
2377 case $cross_compiling:$ac_tool_warned in
2378 yes:)
2379 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2380 whose name does not start with the host triplet. If you think this
2381 configuration is useful to you, please write to autoconf@gnu.org." >&5
2382 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2383 whose name does not start with the host triplet. If you think this
2384 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2385 ac_tool_warned=yes ;;
2386 esac
2387 CC=$ac_ct_CC
2389 else
2390 CC="$ac_cv_prog_CC"
2393 if test -z "$CC"; then
2394 if test -n "$ac_tool_prefix"; then
2395 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2396 set dummy ${ac_tool_prefix}cc; ac_word=$2
2397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2399 if test "${ac_cv_prog_CC+set}" = set; then
2400 echo $ECHO_N "(cached) $ECHO_C" >&6
2401 else
2402 if test -n "$CC"; then
2403 ac_cv_prog_CC="$CC" # Let the user override the test.
2404 else
2405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2406 for as_dir in $PATH
2408 IFS=$as_save_IFS
2409 test -z "$as_dir" && as_dir=.
2410 for ac_exec_ext in '' $ac_executable_extensions; do
2411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2412 ac_cv_prog_CC="${ac_tool_prefix}cc"
2413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2414 break 2
2416 done
2417 done
2418 IFS=$as_save_IFS
2422 CC=$ac_cv_prog_CC
2423 if test -n "$CC"; then
2424 { echo "$as_me:$LINENO: result: $CC" >&5
2425 echo "${ECHO_T}$CC" >&6; }
2426 else
2427 { echo "$as_me:$LINENO: result: no" >&5
2428 echo "${ECHO_T}no" >&6; }
2434 if test -z "$CC"; then
2435 # Extract the first word of "cc", so it can be a program name with args.
2436 set dummy cc; ac_word=$2
2437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2439 if test "${ac_cv_prog_CC+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
2441 else
2442 if test -n "$CC"; then
2443 ac_cv_prog_CC="$CC" # Let the user override the test.
2444 else
2445 ac_prog_rejected=no
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447 for as_dir in $PATH
2449 IFS=$as_save_IFS
2450 test -z "$as_dir" && as_dir=.
2451 for ac_exec_ext in '' $ac_executable_extensions; do
2452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2453 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2454 ac_prog_rejected=yes
2455 continue
2457 ac_cv_prog_CC="cc"
2458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2459 break 2
2461 done
2462 done
2463 IFS=$as_save_IFS
2465 if test $ac_prog_rejected = yes; then
2466 # We found a bogon in the path, so make sure we never use it.
2467 set dummy $ac_cv_prog_CC
2468 shift
2469 if test $# != 0; then
2470 # We chose a different compiler from the bogus one.
2471 # However, it has the same basename, so the bogon will be chosen
2472 # first if we set CC to just the basename; use the full file name.
2473 shift
2474 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2479 CC=$ac_cv_prog_CC
2480 if test -n "$CC"; then
2481 { echo "$as_me:$LINENO: result: $CC" >&5
2482 echo "${ECHO_T}$CC" >&6; }
2483 else
2484 { echo "$as_me:$LINENO: result: no" >&5
2485 echo "${ECHO_T}no" >&6; }
2490 if test -z "$CC"; then
2491 if test -n "$ac_tool_prefix"; then
2492 for ac_prog in cl.exe
2494 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2495 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2498 if test "${ac_cv_prog_CC+set}" = set; then
2499 echo $ECHO_N "(cached) $ECHO_C" >&6
2500 else
2501 if test -n "$CC"; then
2502 ac_cv_prog_CC="$CC" # Let the user override the test.
2503 else
2504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505 for as_dir in $PATH
2507 IFS=$as_save_IFS
2508 test -z "$as_dir" && as_dir=.
2509 for ac_exec_ext in '' $ac_executable_extensions; do
2510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2511 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2513 break 2
2515 done
2516 done
2517 IFS=$as_save_IFS
2521 CC=$ac_cv_prog_CC
2522 if test -n "$CC"; then
2523 { echo "$as_me:$LINENO: result: $CC" >&5
2524 echo "${ECHO_T}$CC" >&6; }
2525 else
2526 { echo "$as_me:$LINENO: result: no" >&5
2527 echo "${ECHO_T}no" >&6; }
2531 test -n "$CC" && break
2532 done
2534 if test -z "$CC"; then
2535 ac_ct_CC=$CC
2536 for ac_prog in cl.exe
2538 # Extract the first word of "$ac_prog", so it can be a program name with args.
2539 set dummy $ac_prog; ac_word=$2
2540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2542 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2543 echo $ECHO_N "(cached) $ECHO_C" >&6
2544 else
2545 if test -n "$ac_ct_CC"; then
2546 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2547 else
2548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549 for as_dir in $PATH
2551 IFS=$as_save_IFS
2552 test -z "$as_dir" && as_dir=.
2553 for ac_exec_ext in '' $ac_executable_extensions; do
2554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2555 ac_cv_prog_ac_ct_CC="$ac_prog"
2556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2557 break 2
2559 done
2560 done
2561 IFS=$as_save_IFS
2565 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2566 if test -n "$ac_ct_CC"; then
2567 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2568 echo "${ECHO_T}$ac_ct_CC" >&6; }
2569 else
2570 { echo "$as_me:$LINENO: result: no" >&5
2571 echo "${ECHO_T}no" >&6; }
2575 test -n "$ac_ct_CC" && break
2576 done
2578 if test "x$ac_ct_CC" = x; then
2579 CC=""
2580 else
2581 case $cross_compiling:$ac_tool_warned in
2582 yes:)
2583 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2584 whose name does not start with the host triplet. If you think this
2585 configuration is useful to you, please write to autoconf@gnu.org." >&5
2586 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2587 whose name does not start with the host triplet. If you think this
2588 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2589 ac_tool_warned=yes ;;
2590 esac
2591 CC=$ac_ct_CC
2598 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2599 See \`config.log' for more details." >&5
2600 echo "$as_me: error: no acceptable C compiler found in \$PATH
2601 See \`config.log' for more details." >&2;}
2602 { (exit 1); exit 1; }; }
2604 # Provide some information about the compiler.
2605 echo "$as_me:$LINENO: checking for C compiler version" >&5
2606 ac_compiler=`set X $ac_compile; echo $2`
2607 { (ac_try="$ac_compiler --version >&5"
2608 case "(($ac_try" in
2609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2610 *) ac_try_echo=$ac_try;;
2611 esac
2612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2613 (eval "$ac_compiler --version >&5") 2>&5
2614 ac_status=$?
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); }
2617 { (ac_try="$ac_compiler -v >&5"
2618 case "(($ac_try" in
2619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620 *) ac_try_echo=$ac_try;;
2621 esac
2622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2623 (eval "$ac_compiler -v >&5") 2>&5
2624 ac_status=$?
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }
2627 { (ac_try="$ac_compiler -V >&5"
2628 case "(($ac_try" in
2629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2630 *) ac_try_echo=$ac_try;;
2631 esac
2632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2633 (eval "$ac_compiler -V >&5") 2>&5
2634 ac_status=$?
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); }
2638 cat >conftest.$ac_ext <<_ACEOF
2639 /* confdefs.h. */
2640 _ACEOF
2641 cat confdefs.h >>conftest.$ac_ext
2642 cat >>conftest.$ac_ext <<_ACEOF
2643 /* end confdefs.h. */
2646 main ()
2650 return 0;
2652 _ACEOF
2653 ac_clean_files_save=$ac_clean_files
2654 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2655 # Try to create an executable without -o first, disregard a.out.
2656 # It will help us diagnose broken compilers, and finding out an intuition
2657 # of exeext.
2658 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2659 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2660 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2662 # List of possible output files, starting from the most likely.
2663 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2664 # only as a last resort. b.out is created by i960 compilers.
2665 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2667 # The IRIX 6 linker writes into existing files which may not be
2668 # executable, retaining their permissions. Remove them first so a
2669 # subsequent execution test works.
2670 ac_rmfiles=
2671 for ac_file in $ac_files
2673 case $ac_file in
2674 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2675 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2676 esac
2677 done
2678 rm -f $ac_rmfiles
2680 if { (ac_try="$ac_link_default"
2681 case "(($ac_try" in
2682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2683 *) ac_try_echo=$ac_try;;
2684 esac
2685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2686 (eval "$ac_link_default") 2>&5
2687 ac_status=$?
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); }; then
2690 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2691 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2692 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2693 # so that the user can short-circuit this test for compilers unknown to
2694 # Autoconf.
2695 for ac_file in $ac_files ''
2697 test -f "$ac_file" || continue
2698 case $ac_file in
2699 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2701 [ab].out )
2702 # We found the default executable, but exeext='' is most
2703 # certainly right.
2704 break;;
2705 *.* )
2706 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2707 then :; else
2708 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2710 # We set ac_cv_exeext here because the later test for it is not
2711 # safe: cross compilers may not add the suffix if given an `-o'
2712 # argument, so we may need to know it at that point already.
2713 # Even if this section looks crufty: it has the advantage of
2714 # actually working.
2715 break;;
2717 break;;
2718 esac
2719 done
2720 test "$ac_cv_exeext" = no && ac_cv_exeext=
2722 else
2723 ac_file=''
2726 { echo "$as_me:$LINENO: result: $ac_file" >&5
2727 echo "${ECHO_T}$ac_file" >&6; }
2728 if test -z "$ac_file"; then
2729 echo "$as_me: failed program was:" >&5
2730 sed 's/^/| /' conftest.$ac_ext >&5
2732 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2733 See \`config.log' for more details." >&5
2734 echo "$as_me: error: C compiler cannot create executables
2735 See \`config.log' for more details." >&2;}
2736 { (exit 77); exit 77; }; }
2739 ac_exeext=$ac_cv_exeext
2741 # Check that the compiler produces executables we can run. If not, either
2742 # the compiler is broken, or we cross compile.
2743 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2744 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2745 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2746 # If not cross compiling, check that we can run a simple program.
2747 if test "$cross_compiling" != yes; then
2748 if { ac_try='./$ac_file'
2749 { (case "(($ac_try" in
2750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751 *) ac_try_echo=$ac_try;;
2752 esac
2753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2754 (eval "$ac_try") 2>&5
2755 ac_status=$?
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); }; }; then
2758 cross_compiling=no
2759 else
2760 if test "$cross_compiling" = maybe; then
2761 cross_compiling=yes
2762 else
2763 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2764 If you meant to cross compile, use \`--host'.
2765 See \`config.log' for more details." >&5
2766 echo "$as_me: error: cannot run C compiled programs.
2767 If you meant to cross compile, use \`--host'.
2768 See \`config.log' for more details." >&2;}
2769 { (exit 1); exit 1; }; }
2773 { echo "$as_me:$LINENO: result: yes" >&5
2774 echo "${ECHO_T}yes" >&6; }
2776 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2777 ac_clean_files=$ac_clean_files_save
2778 # Check that the compiler produces executables we can run. If not, either
2779 # the compiler is broken, or we cross compile.
2780 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2781 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2782 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2783 echo "${ECHO_T}$cross_compiling" >&6; }
2785 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2786 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2787 if { (ac_try="$ac_link"
2788 case "(($ac_try" in
2789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2790 *) ac_try_echo=$ac_try;;
2791 esac
2792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2793 (eval "$ac_link") 2>&5
2794 ac_status=$?
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); }; then
2797 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2798 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2799 # work properly (i.e., refer to `conftest.exe'), while it won't with
2800 # `rm'.
2801 for ac_file in conftest.exe conftest conftest.*; do
2802 test -f "$ac_file" || continue
2803 case $ac_file in
2804 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2805 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2806 break;;
2807 * ) break;;
2808 esac
2809 done
2810 else
2811 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2812 See \`config.log' for more details." >&5
2813 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2814 See \`config.log' for more details." >&2;}
2815 { (exit 1); exit 1; }; }
2818 rm -f conftest$ac_cv_exeext
2819 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2820 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2822 rm -f conftest.$ac_ext
2823 EXEEXT=$ac_cv_exeext
2824 ac_exeext=$EXEEXT
2825 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2826 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2827 if test "${ac_cv_objext+set}" = set; then
2828 echo $ECHO_N "(cached) $ECHO_C" >&6
2829 else
2830 cat >conftest.$ac_ext <<_ACEOF
2831 /* confdefs.h. */
2832 _ACEOF
2833 cat confdefs.h >>conftest.$ac_ext
2834 cat >>conftest.$ac_ext <<_ACEOF
2835 /* end confdefs.h. */
2838 main ()
2842 return 0;
2844 _ACEOF
2845 rm -f conftest.o conftest.obj
2846 if { (ac_try="$ac_compile"
2847 case "(($ac_try" in
2848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2849 *) ac_try_echo=$ac_try;;
2850 esac
2851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2852 (eval "$ac_compile") 2>&5
2853 ac_status=$?
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); }; then
2856 for ac_file in conftest.o conftest.obj conftest.*; do
2857 test -f "$ac_file" || continue;
2858 case $ac_file in
2859 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2860 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2861 break;;
2862 esac
2863 done
2864 else
2865 echo "$as_me: failed program was:" >&5
2866 sed 's/^/| /' conftest.$ac_ext >&5
2868 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2869 See \`config.log' for more details." >&5
2870 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2871 See \`config.log' for more details." >&2;}
2872 { (exit 1); exit 1; }; }
2875 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2877 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2878 echo "${ECHO_T}$ac_cv_objext" >&6; }
2879 OBJEXT=$ac_cv_objext
2880 ac_objext=$OBJEXT
2881 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2882 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2883 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2884 echo $ECHO_N "(cached) $ECHO_C" >&6
2885 else
2886 cat >conftest.$ac_ext <<_ACEOF
2887 /* confdefs.h. */
2888 _ACEOF
2889 cat confdefs.h >>conftest.$ac_ext
2890 cat >>conftest.$ac_ext <<_ACEOF
2891 /* end confdefs.h. */
2894 main ()
2896 #ifndef __GNUC__
2897 choke me
2898 #endif
2901 return 0;
2903 _ACEOF
2904 rm -f conftest.$ac_objext
2905 if { (ac_try="$ac_compile"
2906 case "(($ac_try" in
2907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908 *) ac_try_echo=$ac_try;;
2909 esac
2910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2911 (eval "$ac_compile") 2>conftest.er1
2912 ac_status=$?
2913 grep -v '^ *+' conftest.er1 >conftest.err
2914 rm -f conftest.er1
2915 cat conftest.err >&5
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); } && {
2918 test -z "$ac_c_werror_flag" ||
2919 test ! -s conftest.err
2920 } && test -s conftest.$ac_objext; then
2921 ac_compiler_gnu=yes
2922 else
2923 echo "$as_me: failed program was:" >&5
2924 sed 's/^/| /' conftest.$ac_ext >&5
2926 ac_compiler_gnu=no
2929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2930 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2933 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2934 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2935 GCC=`test $ac_compiler_gnu = yes && echo yes`
2936 ac_test_CFLAGS=${CFLAGS+set}
2937 ac_save_CFLAGS=$CFLAGS
2938 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2939 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2940 if test "${ac_cv_prog_cc_g+set}" = set; then
2941 echo $ECHO_N "(cached) $ECHO_C" >&6
2942 else
2943 ac_save_c_werror_flag=$ac_c_werror_flag
2944 ac_c_werror_flag=yes
2945 ac_cv_prog_cc_g=no
2946 CFLAGS="-g"
2947 cat >conftest.$ac_ext <<_ACEOF
2948 /* confdefs.h. */
2949 _ACEOF
2950 cat confdefs.h >>conftest.$ac_ext
2951 cat >>conftest.$ac_ext <<_ACEOF
2952 /* end confdefs.h. */
2955 main ()
2959 return 0;
2961 _ACEOF
2962 rm -f conftest.$ac_objext
2963 if { (ac_try="$ac_compile"
2964 case "(($ac_try" in
2965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966 *) ac_try_echo=$ac_try;;
2967 esac
2968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2969 (eval "$ac_compile") 2>conftest.er1
2970 ac_status=$?
2971 grep -v '^ *+' conftest.er1 >conftest.err
2972 rm -f conftest.er1
2973 cat conftest.err >&5
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); } && {
2976 test -z "$ac_c_werror_flag" ||
2977 test ! -s conftest.err
2978 } && test -s conftest.$ac_objext; then
2979 ac_cv_prog_cc_g=yes
2980 else
2981 echo "$as_me: failed program was:" >&5
2982 sed 's/^/| /' conftest.$ac_ext >&5
2984 CFLAGS=""
2985 cat >conftest.$ac_ext <<_ACEOF
2986 /* confdefs.h. */
2987 _ACEOF
2988 cat confdefs.h >>conftest.$ac_ext
2989 cat >>conftest.$ac_ext <<_ACEOF
2990 /* end confdefs.h. */
2993 main ()
2997 return 0;
2999 _ACEOF
3000 rm -f conftest.$ac_objext
3001 if { (ac_try="$ac_compile"
3002 case "(($ac_try" in
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3005 esac
3006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007 (eval "$ac_compile") 2>conftest.er1
3008 ac_status=$?
3009 grep -v '^ *+' conftest.er1 >conftest.err
3010 rm -f conftest.er1
3011 cat conftest.err >&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); } && {
3014 test -z "$ac_c_werror_flag" ||
3015 test ! -s conftest.err
3016 } && test -s conftest.$ac_objext; then
3018 else
3019 echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.$ac_ext >&5
3022 ac_c_werror_flag=$ac_save_c_werror_flag
3023 CFLAGS="-g"
3024 cat >conftest.$ac_ext <<_ACEOF
3025 /* confdefs.h. */
3026 _ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h. */
3032 main ()
3036 return 0;
3038 _ACEOF
3039 rm -f conftest.$ac_objext
3040 if { (ac_try="$ac_compile"
3041 case "(($ac_try" in
3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043 *) ac_try_echo=$ac_try;;
3044 esac
3045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3046 (eval "$ac_compile") 2>conftest.er1
3047 ac_status=$?
3048 grep -v '^ *+' conftest.er1 >conftest.err
3049 rm -f conftest.er1
3050 cat conftest.err >&5
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); } && {
3053 test -z "$ac_c_werror_flag" ||
3054 test ! -s conftest.err
3055 } && test -s conftest.$ac_objext; then
3056 ac_cv_prog_cc_g=yes
3057 else
3058 echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.$ac_ext >&5
3064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3071 ac_c_werror_flag=$ac_save_c_werror_flag
3073 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3074 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3075 if test "$ac_test_CFLAGS" = set; then
3076 CFLAGS=$ac_save_CFLAGS
3077 elif test $ac_cv_prog_cc_g = yes; then
3078 if test "$GCC" = yes; then
3079 CFLAGS="-g -O2"
3080 else
3081 CFLAGS="-g"
3083 else
3084 if test "$GCC" = yes; then
3085 CFLAGS="-O2"
3086 else
3087 CFLAGS=
3090 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3091 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3092 if test "${ac_cv_prog_cc_c89+set}" = set; then
3093 echo $ECHO_N "(cached) $ECHO_C" >&6
3094 else
3095 ac_cv_prog_cc_c89=no
3096 ac_save_CC=$CC
3097 cat >conftest.$ac_ext <<_ACEOF
3098 /* confdefs.h. */
3099 _ACEOF
3100 cat confdefs.h >>conftest.$ac_ext
3101 cat >>conftest.$ac_ext <<_ACEOF
3102 /* end confdefs.h. */
3103 #include <stdarg.h>
3104 #include <stdio.h>
3105 #include <sys/types.h>
3106 #include <sys/stat.h>
3107 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3108 struct buf { int x; };
3109 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3110 static char *e (p, i)
3111 char **p;
3112 int i;
3114 return p[i];
3116 static char *f (char * (*g) (char **, int), char **p, ...)
3118 char *s;
3119 va_list v;
3120 va_start (v,p);
3121 s = g (p, va_arg (v,int));
3122 va_end (v);
3123 return s;
3126 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3127 function prototypes and stuff, but not '\xHH' hex character constants.
3128 These don't provoke an error unfortunately, instead are silently treated
3129 as 'x'. The following induces an error, until -std is added to get
3130 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3131 array size at least. It's necessary to write '\x00'==0 to get something
3132 that's true only with -std. */
3133 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3135 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3136 inside strings and character constants. */
3137 #define FOO(x) 'x'
3138 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3140 int test (int i, double x);
3141 struct s1 {int (*f) (int a);};
3142 struct s2 {int (*f) (double a);};
3143 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3144 int argc;
3145 char **argv;
3147 main ()
3149 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3151 return 0;
3153 _ACEOF
3154 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3155 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3157 CC="$ac_save_CC $ac_arg"
3158 rm -f conftest.$ac_objext
3159 if { (ac_try="$ac_compile"
3160 case "(($ac_try" in
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3163 esac
3164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165 (eval "$ac_compile") 2>conftest.er1
3166 ac_status=$?
3167 grep -v '^ *+' conftest.er1 >conftest.err
3168 rm -f conftest.er1
3169 cat conftest.err >&5
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); } && {
3172 test -z "$ac_c_werror_flag" ||
3173 test ! -s conftest.err
3174 } && test -s conftest.$ac_objext; then
3175 ac_cv_prog_cc_c89=$ac_arg
3176 else
3177 echo "$as_me: failed program was:" >&5
3178 sed 's/^/| /' conftest.$ac_ext >&5
3183 rm -f core conftest.err conftest.$ac_objext
3184 test "x$ac_cv_prog_cc_c89" != "xno" && break
3185 done
3186 rm -f conftest.$ac_ext
3187 CC=$ac_save_CC
3190 # AC_CACHE_VAL
3191 case "x$ac_cv_prog_cc_c89" in
3193 { echo "$as_me:$LINENO: result: none needed" >&5
3194 echo "${ECHO_T}none needed" >&6; } ;;
3195 xno)
3196 { echo "$as_me:$LINENO: result: unsupported" >&5
3197 echo "${ECHO_T}unsupported" >&6; } ;;
3199 CC="$CC $ac_cv_prog_cc_c89"
3200 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3201 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3202 esac
3205 ac_ext=c
3206 ac_cpp='$CPP $CPPFLAGS'
3207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3210 DEPDIR="${am__leading_dot}deps"
3212 ac_config_commands="$ac_config_commands depfiles"
3215 am_make=${MAKE-make}
3216 cat > confinc << 'END'
3217 am__doit:
3218 @echo done
3219 .PHONY: am__doit
3221 # If we don't find an include directive, just comment out the code.
3222 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3223 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3224 am__include="#"
3225 am__quote=
3226 _am_result=none
3227 # First try GNU make style include.
3228 echo "include confinc" > confmf
3229 # We grep out `Entering directory' and `Leaving directory'
3230 # messages which can occur if `w' ends up in MAKEFLAGS.
3231 # In particular we don't look at `^make:' because GNU make might
3232 # be invoked under some other name (usually "gmake"), in which
3233 # case it prints its new name instead of `make'.
3234 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3235 am__include=include
3236 am__quote=
3237 _am_result=GNU
3239 # Now try BSD make style include.
3240 if test "$am__include" = "#"; then
3241 echo '.include "confinc"' > confmf
3242 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3243 am__include=.include
3244 am__quote="\""
3245 _am_result=BSD
3250 { echo "$as_me:$LINENO: result: $_am_result" >&5
3251 echo "${ECHO_T}$_am_result" >&6; }
3252 rm -f confinc confmf
3254 # Check whether --enable-dependency-tracking was given.
3255 if test "${enable_dependency_tracking+set}" = set; then
3256 enableval=$enable_dependency_tracking;
3259 if test "x$enable_dependency_tracking" != xno; then
3260 am_depcomp="$ac_aux_dir/depcomp"
3261 AMDEPBACKSLASH='\'
3265 if test "x$enable_dependency_tracking" != xno; then
3266 AMDEP_TRUE=
3267 AMDEP_FALSE='#'
3268 else
3269 AMDEP_TRUE='#'
3270 AMDEP_FALSE=
3276 depcc="$CC" am_compiler_list=
3278 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3279 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3280 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
3282 else
3283 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3284 # We make a subdir and do the tests there. Otherwise we can end up
3285 # making bogus files that we don't know about and never remove. For
3286 # instance it was reported that on HP-UX the gcc test will end up
3287 # making a dummy file named `D' -- because `-MD' means `put the output
3288 # in D'.
3289 mkdir conftest.dir
3290 # Copy depcomp to subdir because otherwise we won't find it if we're
3291 # using a relative directory.
3292 cp "$am_depcomp" conftest.dir
3293 cd conftest.dir
3294 # We will build objects and dependencies in a subdirectory because
3295 # it helps to detect inapplicable dependency modes. For instance
3296 # both Tru64's cc and ICC support -MD to output dependencies as a
3297 # side effect of compilation, but ICC will put the dependencies in
3298 # the current directory while Tru64 will put them in the object
3299 # directory.
3300 mkdir sub
3302 am_cv_CC_dependencies_compiler_type=none
3303 if test "$am_compiler_list" = ""; then
3304 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3306 for depmode in $am_compiler_list; do
3307 # Setup a source with many dependencies, because some compilers
3308 # like to wrap large dependency lists on column 80 (with \), and
3309 # we should not choose a depcomp mode which is confused by this.
3311 # We need to recreate these files for each test, as the compiler may
3312 # overwrite some of them when testing with obscure command lines.
3313 # This happens at least with the AIX C compiler.
3314 : > sub/conftest.c
3315 for i in 1 2 3 4 5 6; do
3316 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3317 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3318 # Solaris 8's {/usr,}/bin/sh.
3319 touch sub/conftst$i.h
3320 done
3321 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3323 case $depmode in
3324 nosideeffect)
3325 # after this tag, mechanisms are not by side-effect, so they'll
3326 # only be used when explicitly requested
3327 if test "x$enable_dependency_tracking" = xyes; then
3328 continue
3329 else
3330 break
3333 none) break ;;
3334 esac
3335 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3336 # mode. It turns out that the SunPro C++ compiler does not properly
3337 # handle `-M -o', and we need to detect this.
3338 if depmode=$depmode \
3339 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3340 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3341 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3342 >/dev/null 2>conftest.err &&
3343 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3344 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3345 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3346 # icc doesn't choke on unknown options, it will just issue warnings
3347 # or remarks (even with -Werror). So we grep stderr for any message
3348 # that says an option was ignored or not supported.
3349 # When given -MP, icc 7.0 and 7.1 complain thusly:
3350 # icc: Command line warning: ignoring option '-M'; no argument required
3351 # The diagnosis changed in icc 8.0:
3352 # icc: Command line remark: option '-MP' not supported
3353 if (grep 'ignoring option' conftest.err ||
3354 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3355 am_cv_CC_dependencies_compiler_type=$depmode
3356 break
3359 done
3361 cd ..
3362 rm -rf conftest.dir
3363 else
3364 am_cv_CC_dependencies_compiler_type=none
3368 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3369 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3370 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3375 test "x$enable_dependency_tracking" != xno \
3376 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3377 am__fastdepCC_TRUE=
3378 am__fastdepCC_FALSE='#'
3379 else
3380 am__fastdepCC_TRUE='#'
3381 am__fastdepCC_FALSE=
3385 ac_ext=c
3386 ac_cpp='$CPP $CPPFLAGS'
3387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3390 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3391 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3392 # On Suns, sometimes $CPP names a directory.
3393 if test -n "$CPP" && test -d "$CPP"; then
3394 CPP=
3396 if test -z "$CPP"; then
3397 if test "${ac_cv_prog_CPP+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3399 else
3400 # Double quotes because CPP needs to be expanded
3401 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3403 ac_preproc_ok=false
3404 for ac_c_preproc_warn_flag in '' yes
3406 # Use a header file that comes with gcc, so configuring glibc
3407 # with a fresh cross-compiler works.
3408 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3409 # <limits.h> exists even on freestanding compilers.
3410 # On the NeXT, cc -E runs the code through the compiler's parser,
3411 # not just through cpp. "Syntax error" is here to catch this case.
3412 cat >conftest.$ac_ext <<_ACEOF
3413 /* confdefs.h. */
3414 _ACEOF
3415 cat confdefs.h >>conftest.$ac_ext
3416 cat >>conftest.$ac_ext <<_ACEOF
3417 /* end confdefs.h. */
3418 #ifdef __STDC__
3419 # include <limits.h>
3420 #else
3421 # include <assert.h>
3422 #endif
3423 Syntax error
3424 _ACEOF
3425 if { (ac_try="$ac_cpp conftest.$ac_ext"
3426 case "(($ac_try" in
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3429 esac
3430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3432 ac_status=$?
3433 grep -v '^ *+' conftest.er1 >conftest.err
3434 rm -f conftest.er1
3435 cat conftest.err >&5
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); } >/dev/null && {
3438 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3439 test ! -s conftest.err
3440 }; then
3442 else
3443 echo "$as_me: failed program was:" >&5
3444 sed 's/^/| /' conftest.$ac_ext >&5
3446 # Broken: fails on valid input.
3447 continue
3450 rm -f conftest.err conftest.$ac_ext
3452 # OK, works on sane cases. Now check whether nonexistent headers
3453 # can be detected and how.
3454 cat >conftest.$ac_ext <<_ACEOF
3455 /* confdefs.h. */
3456 _ACEOF
3457 cat confdefs.h >>conftest.$ac_ext
3458 cat >>conftest.$ac_ext <<_ACEOF
3459 /* end confdefs.h. */
3460 #include <ac_nonexistent.h>
3461 _ACEOF
3462 if { (ac_try="$ac_cpp conftest.$ac_ext"
3463 case "(($ac_try" in
3464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3465 *) ac_try_echo=$ac_try;;
3466 esac
3467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3468 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3469 ac_status=$?
3470 grep -v '^ *+' conftest.er1 >conftest.err
3471 rm -f conftest.er1
3472 cat conftest.err >&5
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); } >/dev/null && {
3475 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3476 test ! -s conftest.err
3477 }; then
3478 # Broken: success on invalid input.
3479 continue
3480 else
3481 echo "$as_me: failed program was:" >&5
3482 sed 's/^/| /' conftest.$ac_ext >&5
3484 # Passes both tests.
3485 ac_preproc_ok=:
3486 break
3489 rm -f conftest.err conftest.$ac_ext
3491 done
3492 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3493 rm -f conftest.err conftest.$ac_ext
3494 if $ac_preproc_ok; then
3495 break
3498 done
3499 ac_cv_prog_CPP=$CPP
3502 CPP=$ac_cv_prog_CPP
3503 else
3504 ac_cv_prog_CPP=$CPP
3506 { echo "$as_me:$LINENO: result: $CPP" >&5
3507 echo "${ECHO_T}$CPP" >&6; }
3508 ac_preproc_ok=false
3509 for ac_c_preproc_warn_flag in '' yes
3511 # Use a header file that comes with gcc, so configuring glibc
3512 # with a fresh cross-compiler works.
3513 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3514 # <limits.h> exists even on freestanding compilers.
3515 # On the NeXT, cc -E runs the code through the compiler's parser,
3516 # not just through cpp. "Syntax error" is here to catch this case.
3517 cat >conftest.$ac_ext <<_ACEOF
3518 /* confdefs.h. */
3519 _ACEOF
3520 cat confdefs.h >>conftest.$ac_ext
3521 cat >>conftest.$ac_ext <<_ACEOF
3522 /* end confdefs.h. */
3523 #ifdef __STDC__
3524 # include <limits.h>
3525 #else
3526 # include <assert.h>
3527 #endif
3528 Syntax error
3529 _ACEOF
3530 if { (ac_try="$ac_cpp conftest.$ac_ext"
3531 case "(($ac_try" in
3532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533 *) ac_try_echo=$ac_try;;
3534 esac
3535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3537 ac_status=$?
3538 grep -v '^ *+' conftest.er1 >conftest.err
3539 rm -f conftest.er1
3540 cat conftest.err >&5
3541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542 (exit $ac_status); } >/dev/null && {
3543 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3544 test ! -s conftest.err
3545 }; then
3547 else
3548 echo "$as_me: failed program was:" >&5
3549 sed 's/^/| /' conftest.$ac_ext >&5
3551 # Broken: fails on valid input.
3552 continue
3555 rm -f conftest.err conftest.$ac_ext
3557 # OK, works on sane cases. Now check whether nonexistent headers
3558 # can be detected and how.
3559 cat >conftest.$ac_ext <<_ACEOF
3560 /* confdefs.h. */
3561 _ACEOF
3562 cat confdefs.h >>conftest.$ac_ext
3563 cat >>conftest.$ac_ext <<_ACEOF
3564 /* end confdefs.h. */
3565 #include <ac_nonexistent.h>
3566 _ACEOF
3567 if { (ac_try="$ac_cpp conftest.$ac_ext"
3568 case "(($ac_try" in
3569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570 *) ac_try_echo=$ac_try;;
3571 esac
3572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3574 ac_status=$?
3575 grep -v '^ *+' conftest.er1 >conftest.err
3576 rm -f conftest.er1
3577 cat conftest.err >&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); } >/dev/null && {
3580 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3581 test ! -s conftest.err
3582 }; then
3583 # Broken: success on invalid input.
3584 continue
3585 else
3586 echo "$as_me: failed program was:" >&5
3587 sed 's/^/| /' conftest.$ac_ext >&5
3589 # Passes both tests.
3590 ac_preproc_ok=:
3591 break
3594 rm -f conftest.err conftest.$ac_ext
3596 done
3597 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3598 rm -f conftest.err conftest.$ac_ext
3599 if $ac_preproc_ok; then
3601 else
3602 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3603 See \`config.log' for more details." >&5
3604 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3605 See \`config.log' for more details." >&2;}
3606 { (exit 1); exit 1; }; }
3609 ac_ext=c
3610 ac_cpp='$CPP $CPPFLAGS'
3611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3615 # Find a good install program. We prefer a C program (faster),
3616 # so one script is as good as another. But avoid the broken or
3617 # incompatible versions:
3618 # SysV /etc/install, /usr/sbin/install
3619 # SunOS /usr/etc/install
3620 # IRIX /sbin/install
3621 # AIX /bin/install
3622 # AmigaOS /C/install, which installs bootblocks on floppy discs
3623 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3624 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3625 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3626 # OS/2's system install, which has a completely different semantic
3627 # ./install, which can be erroneously created by make from ./install.sh.
3628 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3629 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3630 if test -z "$INSTALL"; then
3631 if test "${ac_cv_path_install+set}" = set; then
3632 echo $ECHO_N "(cached) $ECHO_C" >&6
3633 else
3634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635 for as_dir in $PATH
3637 IFS=$as_save_IFS
3638 test -z "$as_dir" && as_dir=.
3639 # Account for people who put trailing slashes in PATH elements.
3640 case $as_dir/ in
3641 ./ | .// | /cC/* | \
3642 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3643 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3644 /usr/ucb/* ) ;;
3646 # OSF1 and SCO ODT 3.0 have their own names for install.
3647 # Don't use installbsd from OSF since it installs stuff as root
3648 # by default.
3649 for ac_prog in ginstall scoinst install; do
3650 for ac_exec_ext in '' $ac_executable_extensions; do
3651 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3652 if test $ac_prog = install &&
3653 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3654 # AIX install. It has an incompatible calling convention.
3656 elif test $ac_prog = install &&
3657 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3658 # program-specific install script used by HP pwplus--don't use.
3660 else
3661 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3662 break 3
3665 done
3666 done
3668 esac
3669 done
3670 IFS=$as_save_IFS
3674 if test "${ac_cv_path_install+set}" = set; then
3675 INSTALL=$ac_cv_path_install
3676 else
3677 # As a last resort, use the slow shell script. Don't cache a
3678 # value for INSTALL within a source directory, because that will
3679 # break other packages using the cache if that directory is
3680 # removed, or if the value is a relative name.
3681 INSTALL=$ac_install_sh
3684 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3685 echo "${ECHO_T}$INSTALL" >&6; }
3687 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3688 # It thinks the first close brace ends the variable substitution.
3689 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3691 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3693 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3697 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3698 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3699 if test "${ac_cv_path_GREP+set}" = set; then
3700 echo $ECHO_N "(cached) $ECHO_C" >&6
3701 else
3702 # Extract the first word of "grep ggrep" to use in msg output
3703 if test -z "$GREP"; then
3704 set dummy grep ggrep; ac_prog_name=$2
3705 if test "${ac_cv_path_GREP+set}" = set; then
3706 echo $ECHO_N "(cached) $ECHO_C" >&6
3707 else
3708 ac_path_GREP_found=false
3709 # Loop through the user's path and test for each of PROGNAME-LIST
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3713 IFS=$as_save_IFS
3714 test -z "$as_dir" && as_dir=.
3715 for ac_prog in grep ggrep; do
3716 for ac_exec_ext in '' $ac_executable_extensions; do
3717 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3718 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3719 # Check for GNU ac_path_GREP and select it if it is found.
3720 # Check for GNU $ac_path_GREP
3721 case `"$ac_path_GREP" --version 2>&1` in
3722 *GNU*)
3723 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3725 ac_count=0
3726 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3727 while :
3729 cat "conftest.in" "conftest.in" >"conftest.tmp"
3730 mv "conftest.tmp" "conftest.in"
3731 cp "conftest.in" "conftest.nl"
3732 echo 'GREP' >> "conftest.nl"
3733 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3734 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3735 ac_count=`expr $ac_count + 1`
3736 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3737 # Best one so far, save it but keep looking for a better one
3738 ac_cv_path_GREP="$ac_path_GREP"
3739 ac_path_GREP_max=$ac_count
3741 # 10*(2^10) chars as input seems more than enough
3742 test $ac_count -gt 10 && break
3743 done
3744 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3745 esac
3748 $ac_path_GREP_found && break 3
3749 done
3750 done
3752 done
3753 IFS=$as_save_IFS
3758 GREP="$ac_cv_path_GREP"
3759 if test -z "$GREP"; then
3760 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3761 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3762 { (exit 1); exit 1; }; }
3765 else
3766 ac_cv_path_GREP=$GREP
3771 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3772 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3773 GREP="$ac_cv_path_GREP"
3776 { echo "$as_me:$LINENO: checking for egrep" >&5
3777 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3778 if test "${ac_cv_path_EGREP+set}" = set; then
3779 echo $ECHO_N "(cached) $ECHO_C" >&6
3780 else
3781 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3782 then ac_cv_path_EGREP="$GREP -E"
3783 else
3784 # Extract the first word of "egrep" to use in msg output
3785 if test -z "$EGREP"; then
3786 set dummy egrep; ac_prog_name=$2
3787 if test "${ac_cv_path_EGREP+set}" = set; then
3788 echo $ECHO_N "(cached) $ECHO_C" >&6
3789 else
3790 ac_path_EGREP_found=false
3791 # Loop through the user's path and test for each of PROGNAME-LIST
3792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3793 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3795 IFS=$as_save_IFS
3796 test -z "$as_dir" && as_dir=.
3797 for ac_prog in egrep; do
3798 for ac_exec_ext in '' $ac_executable_extensions; do
3799 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3800 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3801 # Check for GNU ac_path_EGREP and select it if it is found.
3802 # Check for GNU $ac_path_EGREP
3803 case `"$ac_path_EGREP" --version 2>&1` in
3804 *GNU*)
3805 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3807 ac_count=0
3808 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3809 while :
3811 cat "conftest.in" "conftest.in" >"conftest.tmp"
3812 mv "conftest.tmp" "conftest.in"
3813 cp "conftest.in" "conftest.nl"
3814 echo 'EGREP' >> "conftest.nl"
3815 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3816 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3817 ac_count=`expr $ac_count + 1`
3818 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3819 # Best one so far, save it but keep looking for a better one
3820 ac_cv_path_EGREP="$ac_path_EGREP"
3821 ac_path_EGREP_max=$ac_count
3823 # 10*(2^10) chars as input seems more than enough
3824 test $ac_count -gt 10 && break
3825 done
3826 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3827 esac
3830 $ac_path_EGREP_found && break 3
3831 done
3832 done
3834 done
3835 IFS=$as_save_IFS
3840 EGREP="$ac_cv_path_EGREP"
3841 if test -z "$EGREP"; then
3842 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3843 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3844 { (exit 1); exit 1; }; }
3847 else
3848 ac_cv_path_EGREP=$EGREP
3854 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3855 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3856 EGREP="$ac_cv_path_EGREP"
3859 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3860 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3861 if test "${ac_cv_header_stdc+set}" = set; then
3862 echo $ECHO_N "(cached) $ECHO_C" >&6
3863 else
3864 cat >conftest.$ac_ext <<_ACEOF
3865 /* confdefs.h. */
3866 _ACEOF
3867 cat confdefs.h >>conftest.$ac_ext
3868 cat >>conftest.$ac_ext <<_ACEOF
3869 /* end confdefs.h. */
3870 #include <stdlib.h>
3871 #include <stdarg.h>
3872 #include <string.h>
3873 #include <float.h>
3876 main ()
3880 return 0;
3882 _ACEOF
3883 rm -f conftest.$ac_objext
3884 if { (ac_try="$ac_compile"
3885 case "(($ac_try" in
3886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3887 *) ac_try_echo=$ac_try;;
3888 esac
3889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3890 (eval "$ac_compile") 2>conftest.er1
3891 ac_status=$?
3892 grep -v '^ *+' conftest.er1 >conftest.err
3893 rm -f conftest.er1
3894 cat conftest.err >&5
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); } && {
3897 test -z "$ac_c_werror_flag" ||
3898 test ! -s conftest.err
3899 } && test -s conftest.$ac_objext; then
3900 ac_cv_header_stdc=yes
3901 else
3902 echo "$as_me: failed program was:" >&5
3903 sed 's/^/| /' conftest.$ac_ext >&5
3905 ac_cv_header_stdc=no
3908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3910 if test $ac_cv_header_stdc = yes; then
3911 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3912 cat >conftest.$ac_ext <<_ACEOF
3913 /* confdefs.h. */
3914 _ACEOF
3915 cat confdefs.h >>conftest.$ac_ext
3916 cat >>conftest.$ac_ext <<_ACEOF
3917 /* end confdefs.h. */
3918 #include <string.h>
3920 _ACEOF
3921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3922 $EGREP "memchr" >/dev/null 2>&1; then
3924 else
3925 ac_cv_header_stdc=no
3927 rm -f conftest*
3931 if test $ac_cv_header_stdc = yes; then
3932 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3933 cat >conftest.$ac_ext <<_ACEOF
3934 /* confdefs.h. */
3935 _ACEOF
3936 cat confdefs.h >>conftest.$ac_ext
3937 cat >>conftest.$ac_ext <<_ACEOF
3938 /* end confdefs.h. */
3939 #include <stdlib.h>
3941 _ACEOF
3942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3943 $EGREP "free" >/dev/null 2>&1; then
3945 else
3946 ac_cv_header_stdc=no
3948 rm -f conftest*
3952 if test $ac_cv_header_stdc = yes; then
3953 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3954 if test "$cross_compiling" = yes; then
3956 else
3957 cat >conftest.$ac_ext <<_ACEOF
3958 /* confdefs.h. */
3959 _ACEOF
3960 cat confdefs.h >>conftest.$ac_ext
3961 cat >>conftest.$ac_ext <<_ACEOF
3962 /* end confdefs.h. */
3963 #include <ctype.h>
3964 #include <stdlib.h>
3965 #if ((' ' & 0x0FF) == 0x020)
3966 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3967 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3968 #else
3969 # define ISLOWER(c) \
3970 (('a' <= (c) && (c) <= 'i') \
3971 || ('j' <= (c) && (c) <= 'r') \
3972 || ('s' <= (c) && (c) <= 'z'))
3973 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3974 #endif
3976 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3978 main ()
3980 int i;
3981 for (i = 0; i < 256; i++)
3982 if (XOR (islower (i), ISLOWER (i))
3983 || toupper (i) != TOUPPER (i))
3984 return 2;
3985 return 0;
3987 _ACEOF
3988 rm -f conftest$ac_exeext
3989 if { (ac_try="$ac_link"
3990 case "(($ac_try" in
3991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3992 *) ac_try_echo=$ac_try;;
3993 esac
3994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3995 (eval "$ac_link") 2>&5
3996 ac_status=$?
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3999 { (case "(($ac_try" in
4000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4001 *) ac_try_echo=$ac_try;;
4002 esac
4003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4004 (eval "$ac_try") 2>&5
4005 ac_status=$?
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); }; }; then
4009 else
4010 echo "$as_me: program exited with status $ac_status" >&5
4011 echo "$as_me: failed program was:" >&5
4012 sed 's/^/| /' conftest.$ac_ext >&5
4014 ( exit $ac_status )
4015 ac_cv_header_stdc=no
4017 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4023 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4024 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4025 if test $ac_cv_header_stdc = yes; then
4027 cat >>confdefs.h <<\_ACEOF
4028 #define STDC_HEADERS 1
4029 _ACEOF
4033 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4043 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4044 inttypes.h stdint.h unistd.h
4046 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4047 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4051 else
4052 cat >conftest.$ac_ext <<_ACEOF
4053 /* confdefs.h. */
4054 _ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4058 $ac_includes_default
4060 #include <$ac_header>
4061 _ACEOF
4062 rm -f conftest.$ac_objext
4063 if { (ac_try="$ac_compile"
4064 case "(($ac_try" in
4065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4066 *) ac_try_echo=$ac_try;;
4067 esac
4068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4069 (eval "$ac_compile") 2>conftest.er1
4070 ac_status=$?
4071 grep -v '^ *+' conftest.er1 >conftest.err
4072 rm -f conftest.er1
4073 cat conftest.err >&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); } && {
4076 test -z "$ac_c_werror_flag" ||
4077 test ! -s conftest.err
4078 } && test -s conftest.$ac_objext; then
4079 eval "$as_ac_Header=yes"
4080 else
4081 echo "$as_me: failed program was:" >&5
4082 sed 's/^/| /' conftest.$ac_ext >&5
4084 eval "$as_ac_Header=no"
4087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4089 ac_res=`eval echo '${'$as_ac_Header'}'`
4090 { echo "$as_me:$LINENO: result: $ac_res" >&5
4091 echo "${ECHO_T}$ac_res" >&6; }
4092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4093 cat >>confdefs.h <<_ACEOF
4094 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4095 _ACEOF
4099 done
4102 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4103 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4104 if test "${ac_cv_c_bigendian+set}" = set; then
4105 echo $ECHO_N "(cached) $ECHO_C" >&6
4106 else
4107 # See if sys/param.h defines the BYTE_ORDER macro.
4108 cat >conftest.$ac_ext <<_ACEOF
4109 /* confdefs.h. */
4110 _ACEOF
4111 cat confdefs.h >>conftest.$ac_ext
4112 cat >>conftest.$ac_ext <<_ACEOF
4113 /* end confdefs.h. */
4114 #include <sys/types.h>
4115 #include <sys/param.h>
4118 main ()
4120 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4121 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4122 bogus endian macros
4123 #endif
4126 return 0;
4128 _ACEOF
4129 rm -f conftest.$ac_objext
4130 if { (ac_try="$ac_compile"
4131 case "(($ac_try" in
4132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4133 *) ac_try_echo=$ac_try;;
4134 esac
4135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4136 (eval "$ac_compile") 2>conftest.er1
4137 ac_status=$?
4138 grep -v '^ *+' conftest.er1 >conftest.err
4139 rm -f conftest.er1
4140 cat conftest.err >&5
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); } && {
4143 test -z "$ac_c_werror_flag" ||
4144 test ! -s conftest.err
4145 } && test -s conftest.$ac_objext; then
4146 # It does; now see whether it defined to BIG_ENDIAN or not.
4147 cat >conftest.$ac_ext <<_ACEOF
4148 /* confdefs.h. */
4149 _ACEOF
4150 cat confdefs.h >>conftest.$ac_ext
4151 cat >>conftest.$ac_ext <<_ACEOF
4152 /* end confdefs.h. */
4153 #include <sys/types.h>
4154 #include <sys/param.h>
4157 main ()
4159 #if BYTE_ORDER != BIG_ENDIAN
4160 not big endian
4161 #endif
4164 return 0;
4166 _ACEOF
4167 rm -f conftest.$ac_objext
4168 if { (ac_try="$ac_compile"
4169 case "(($ac_try" in
4170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171 *) ac_try_echo=$ac_try;;
4172 esac
4173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4174 (eval "$ac_compile") 2>conftest.er1
4175 ac_status=$?
4176 grep -v '^ *+' conftest.er1 >conftest.err
4177 rm -f conftest.er1
4178 cat conftest.err >&5
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); } && {
4181 test -z "$ac_c_werror_flag" ||
4182 test ! -s conftest.err
4183 } && test -s conftest.$ac_objext; then
4184 ac_cv_c_bigendian=yes
4185 else
4186 echo "$as_me: failed program was:" >&5
4187 sed 's/^/| /' conftest.$ac_ext >&5
4189 ac_cv_c_bigendian=no
4192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4193 else
4194 echo "$as_me: failed program was:" >&5
4195 sed 's/^/| /' conftest.$ac_ext >&5
4197 # It does not; compile a test program.
4198 if test "$cross_compiling" = yes; then
4199 # try to guess the endianness by grepping values into an object file
4200 ac_cv_c_bigendian=unknown
4201 cat >conftest.$ac_ext <<_ACEOF
4202 /* confdefs.h. */
4203 _ACEOF
4204 cat confdefs.h >>conftest.$ac_ext
4205 cat >>conftest.$ac_ext <<_ACEOF
4206 /* end confdefs.h. */
4207 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4208 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4209 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4210 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4211 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4212 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4214 main ()
4216 _ascii (); _ebcdic ();
4218 return 0;
4220 _ACEOF
4221 rm -f conftest.$ac_objext
4222 if { (ac_try="$ac_compile"
4223 case "(($ac_try" in
4224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4225 *) ac_try_echo=$ac_try;;
4226 esac
4227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4228 (eval "$ac_compile") 2>conftest.er1
4229 ac_status=$?
4230 grep -v '^ *+' conftest.er1 >conftest.err
4231 rm -f conftest.er1
4232 cat conftest.err >&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); } && {
4235 test -z "$ac_c_werror_flag" ||
4236 test ! -s conftest.err
4237 } && test -s conftest.$ac_objext; then
4238 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4239 ac_cv_c_bigendian=yes
4241 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4242 if test "$ac_cv_c_bigendian" = unknown; then
4243 ac_cv_c_bigendian=no
4244 else
4245 # finding both strings is unlikely to happen, but who knows?
4246 ac_cv_c_bigendian=unknown
4249 else
4250 echo "$as_me: failed program was:" >&5
4251 sed 's/^/| /' conftest.$ac_ext >&5
4256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4257 else
4258 cat >conftest.$ac_ext <<_ACEOF
4259 /* confdefs.h. */
4260 _ACEOF
4261 cat confdefs.h >>conftest.$ac_ext
4262 cat >>conftest.$ac_ext <<_ACEOF
4263 /* end confdefs.h. */
4264 $ac_includes_default
4266 main ()
4269 /* Are we little or big endian? From Harbison&Steele. */
4270 union
4272 long int l;
4273 char c[sizeof (long int)];
4274 } u;
4275 u.l = 1;
4276 return u.c[sizeof (long int) - 1] == 1;
4279 return 0;
4281 _ACEOF
4282 rm -f conftest$ac_exeext
4283 if { (ac_try="$ac_link"
4284 case "(($ac_try" in
4285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286 *) ac_try_echo=$ac_try;;
4287 esac
4288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4289 (eval "$ac_link") 2>&5
4290 ac_status=$?
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4293 { (case "(($ac_try" in
4294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4295 *) ac_try_echo=$ac_try;;
4296 esac
4297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4298 (eval "$ac_try") 2>&5
4299 ac_status=$?
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); }; }; then
4302 ac_cv_c_bigendian=no
4303 else
4304 echo "$as_me: program exited with status $ac_status" >&5
4305 echo "$as_me: failed program was:" >&5
4306 sed 's/^/| /' conftest.$ac_ext >&5
4308 ( exit $ac_status )
4309 ac_cv_c_bigendian=yes
4311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4319 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4320 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4321 case $ac_cv_c_bigendian in
4322 yes)
4324 cat >>confdefs.h <<\_ACEOF
4325 #define WORDS_BIGENDIAN 1
4326 _ACEOF
4331 { { echo "$as_me:$LINENO: error: unknown endianness
4332 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4333 echo "$as_me: error: unknown endianness
4334 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4335 { (exit 1); exit 1; }; } ;;
4336 esac
4338 { echo "$as_me:$LINENO: checking for inline" >&5
4339 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
4340 if test "${ac_cv_c_inline+set}" = set; then
4341 echo $ECHO_N "(cached) $ECHO_C" >&6
4342 else
4343 ac_cv_c_inline=no
4344 for ac_kw in inline __inline__ __inline; do
4345 cat >conftest.$ac_ext <<_ACEOF
4346 /* confdefs.h. */
4347 _ACEOF
4348 cat confdefs.h >>conftest.$ac_ext
4349 cat >>conftest.$ac_ext <<_ACEOF
4350 /* end confdefs.h. */
4351 #ifndef __cplusplus
4352 typedef int foo_t;
4353 static $ac_kw foo_t static_foo () {return 0; }
4354 $ac_kw foo_t foo () {return 0; }
4355 #endif
4357 _ACEOF
4358 rm -f conftest.$ac_objext
4359 if { (ac_try="$ac_compile"
4360 case "(($ac_try" in
4361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4362 *) ac_try_echo=$ac_try;;
4363 esac
4364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4365 (eval "$ac_compile") 2>conftest.er1
4366 ac_status=$?
4367 grep -v '^ *+' conftest.er1 >conftest.err
4368 rm -f conftest.er1
4369 cat conftest.err >&5
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); } && {
4372 test -z "$ac_c_werror_flag" ||
4373 test ! -s conftest.err
4374 } && test -s conftest.$ac_objext; then
4375 ac_cv_c_inline=$ac_kw
4376 else
4377 echo "$as_me: failed program was:" >&5
4378 sed 's/^/| /' conftest.$ac_ext >&5
4383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4384 test "$ac_cv_c_inline" != no && break
4385 done
4388 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4389 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
4392 case $ac_cv_c_inline in
4393 inline | yes) ;;
4395 case $ac_cv_c_inline in
4396 no) ac_val=;;
4397 *) ac_val=$ac_cv_c_inline;;
4398 esac
4399 cat >>confdefs.h <<_ACEOF
4400 #ifndef __cplusplus
4401 #define inline $ac_val
4402 #endif
4403 _ACEOF
4405 esac
4407 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4408 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4409 if test "${ac_cv_c_const+set}" = set; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4411 else
4412 cat >conftest.$ac_ext <<_ACEOF
4413 /* confdefs.h. */
4414 _ACEOF
4415 cat confdefs.h >>conftest.$ac_ext
4416 cat >>conftest.$ac_ext <<_ACEOF
4417 /* end confdefs.h. */
4420 main ()
4422 /* FIXME: Include the comments suggested by Paul. */
4423 #ifndef __cplusplus
4424 /* Ultrix mips cc rejects this. */
4425 typedef int charset[2];
4426 const charset cs;
4427 /* SunOS 4.1.1 cc rejects this. */
4428 char const *const *pcpcc;
4429 char **ppc;
4430 /* NEC SVR4.0.2 mips cc rejects this. */
4431 struct point {int x, y;};
4432 static struct point const zero = {0,0};
4433 /* AIX XL C 1.02.0.0 rejects this.
4434 It does not let you subtract one const X* pointer from another in
4435 an arm of an if-expression whose if-part is not a constant
4436 expression */
4437 const char *g = "string";
4438 pcpcc = &g + (g ? g-g : 0);
4439 /* HPUX 7.0 cc rejects these. */
4440 ++pcpcc;
4441 ppc = (char**) pcpcc;
4442 pcpcc = (char const *const *) ppc;
4443 { /* SCO 3.2v4 cc rejects this. */
4444 char *t;
4445 char const *s = 0 ? (char *) 0 : (char const *) 0;
4447 *t++ = 0;
4448 if (s) return 0;
4450 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4451 int x[] = {25, 17};
4452 const int *foo = &x[0];
4453 ++foo;
4455 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4456 typedef const int *iptr;
4457 iptr p = 0;
4458 ++p;
4460 { /* AIX XL C 1.02.0.0 rejects this saying
4461 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4462 struct s { int j; const int *ap[3]; };
4463 struct s *b; b->j = 5;
4465 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4466 const int foo = 10;
4467 if (!foo) return 0;
4469 return !cs[0] && !zero.x;
4470 #endif
4473 return 0;
4475 _ACEOF
4476 rm -f conftest.$ac_objext
4477 if { (ac_try="$ac_compile"
4478 case "(($ac_try" in
4479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4480 *) ac_try_echo=$ac_try;;
4481 esac
4482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4483 (eval "$ac_compile") 2>conftest.er1
4484 ac_status=$?
4485 grep -v '^ *+' conftest.er1 >conftest.err
4486 rm -f conftest.er1
4487 cat conftest.err >&5
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); } && {
4490 test -z "$ac_c_werror_flag" ||
4491 test ! -s conftest.err
4492 } && test -s conftest.$ac_objext; then
4493 ac_cv_c_const=yes
4494 else
4495 echo "$as_me: failed program was:" >&5
4496 sed 's/^/| /' conftest.$ac_ext >&5
4498 ac_cv_c_const=no
4501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4503 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4504 echo "${ECHO_T}$ac_cv_c_const" >&6; }
4505 if test $ac_cv_c_const = no; then
4507 cat >>confdefs.h <<\_ACEOF
4508 #define const
4509 _ACEOF
4513 { echo "$as_me:$LINENO: checking for unsigned short int" >&5
4514 echo $ECHO_N "checking for unsigned short int... $ECHO_C" >&6; }
4515 if test "${ac_cv_type_unsigned_short_int+set}" = set; then
4516 echo $ECHO_N "(cached) $ECHO_C" >&6
4517 else
4518 cat >conftest.$ac_ext <<_ACEOF
4519 /* confdefs.h. */
4520 _ACEOF
4521 cat confdefs.h >>conftest.$ac_ext
4522 cat >>conftest.$ac_ext <<_ACEOF
4523 /* end confdefs.h. */
4524 $ac_includes_default
4525 typedef unsigned short int ac__type_new_;
4527 main ()
4529 if ((ac__type_new_ *) 0)
4530 return 0;
4531 if (sizeof (ac__type_new_))
4532 return 0;
4534 return 0;
4536 _ACEOF
4537 rm -f conftest.$ac_objext
4538 if { (ac_try="$ac_compile"
4539 case "(($ac_try" in
4540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4541 *) ac_try_echo=$ac_try;;
4542 esac
4543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4544 (eval "$ac_compile") 2>conftest.er1
4545 ac_status=$?
4546 grep -v '^ *+' conftest.er1 >conftest.err
4547 rm -f conftest.er1
4548 cat conftest.err >&5
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); } && {
4551 test -z "$ac_c_werror_flag" ||
4552 test ! -s conftest.err
4553 } && test -s conftest.$ac_objext; then
4554 ac_cv_type_unsigned_short_int=yes
4555 else
4556 echo "$as_me: failed program was:" >&5
4557 sed 's/^/| /' conftest.$ac_ext >&5
4559 ac_cv_type_unsigned_short_int=no
4562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4564 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short_int" >&5
4565 echo "${ECHO_T}$ac_cv_type_unsigned_short_int" >&6; }
4567 # The cast to long int works around a bug in the HP C Compiler
4568 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4569 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4570 # This bug is HP SR number 8606223364.
4571 { echo "$as_me:$LINENO: checking size of unsigned short int" >&5
4572 echo $ECHO_N "checking size of unsigned short int... $ECHO_C" >&6; }
4573 if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
4574 echo $ECHO_N "(cached) $ECHO_C" >&6
4575 else
4576 if test "$cross_compiling" = yes; then
4577 # Depending upon the size, compute the lo and hi bounds.
4578 cat >conftest.$ac_ext <<_ACEOF
4579 /* confdefs.h. */
4580 _ACEOF
4581 cat confdefs.h >>conftest.$ac_ext
4582 cat >>conftest.$ac_ext <<_ACEOF
4583 /* end confdefs.h. */
4584 $ac_includes_default
4585 typedef unsigned short int ac__type_sizeof_;
4587 main ()
4589 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4590 test_array [0] = 0
4593 return 0;
4595 _ACEOF
4596 rm -f conftest.$ac_objext
4597 if { (ac_try="$ac_compile"
4598 case "(($ac_try" in
4599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4600 *) ac_try_echo=$ac_try;;
4601 esac
4602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4603 (eval "$ac_compile") 2>conftest.er1
4604 ac_status=$?
4605 grep -v '^ *+' conftest.er1 >conftest.err
4606 rm -f conftest.er1
4607 cat conftest.err >&5
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); } && {
4610 test -z "$ac_c_werror_flag" ||
4611 test ! -s conftest.err
4612 } && test -s conftest.$ac_objext; then
4613 ac_lo=0 ac_mid=0
4614 while :; do
4615 cat >conftest.$ac_ext <<_ACEOF
4616 /* confdefs.h. */
4617 _ACEOF
4618 cat confdefs.h >>conftest.$ac_ext
4619 cat >>conftest.$ac_ext <<_ACEOF
4620 /* end confdefs.h. */
4621 $ac_includes_default
4622 typedef unsigned short int ac__type_sizeof_;
4624 main ()
4626 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4627 test_array [0] = 0
4630 return 0;
4632 _ACEOF
4633 rm -f conftest.$ac_objext
4634 if { (ac_try="$ac_compile"
4635 case "(($ac_try" in
4636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4637 *) ac_try_echo=$ac_try;;
4638 esac
4639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4640 (eval "$ac_compile") 2>conftest.er1
4641 ac_status=$?
4642 grep -v '^ *+' conftest.er1 >conftest.err
4643 rm -f conftest.er1
4644 cat conftest.err >&5
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); } && {
4647 test -z "$ac_c_werror_flag" ||
4648 test ! -s conftest.err
4649 } && test -s conftest.$ac_objext; then
4650 ac_hi=$ac_mid; break
4651 else
4652 echo "$as_me: failed program was:" >&5
4653 sed 's/^/| /' conftest.$ac_ext >&5
4655 ac_lo=`expr $ac_mid + 1`
4656 if test $ac_lo -le $ac_mid; then
4657 ac_lo= ac_hi=
4658 break
4660 ac_mid=`expr 2 '*' $ac_mid + 1`
4663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4664 done
4665 else
4666 echo "$as_me: failed program was:" >&5
4667 sed 's/^/| /' conftest.$ac_ext >&5
4669 cat >conftest.$ac_ext <<_ACEOF
4670 /* confdefs.h. */
4671 _ACEOF
4672 cat confdefs.h >>conftest.$ac_ext
4673 cat >>conftest.$ac_ext <<_ACEOF
4674 /* end confdefs.h. */
4675 $ac_includes_default
4676 typedef unsigned short int ac__type_sizeof_;
4678 main ()
4680 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4681 test_array [0] = 0
4684 return 0;
4686 _ACEOF
4687 rm -f conftest.$ac_objext
4688 if { (ac_try="$ac_compile"
4689 case "(($ac_try" in
4690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4691 *) ac_try_echo=$ac_try;;
4692 esac
4693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4694 (eval "$ac_compile") 2>conftest.er1
4695 ac_status=$?
4696 grep -v '^ *+' conftest.er1 >conftest.err
4697 rm -f conftest.er1
4698 cat conftest.err >&5
4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); } && {
4701 test -z "$ac_c_werror_flag" ||
4702 test ! -s conftest.err
4703 } && test -s conftest.$ac_objext; then
4704 ac_hi=-1 ac_mid=-1
4705 while :; do
4706 cat >conftest.$ac_ext <<_ACEOF
4707 /* confdefs.h. */
4708 _ACEOF
4709 cat confdefs.h >>conftest.$ac_ext
4710 cat >>conftest.$ac_ext <<_ACEOF
4711 /* end confdefs.h. */
4712 $ac_includes_default
4713 typedef unsigned short int ac__type_sizeof_;
4715 main ()
4717 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4718 test_array [0] = 0
4721 return 0;
4723 _ACEOF
4724 rm -f conftest.$ac_objext
4725 if { (ac_try="$ac_compile"
4726 case "(($ac_try" in
4727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4728 *) ac_try_echo=$ac_try;;
4729 esac
4730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4731 (eval "$ac_compile") 2>conftest.er1
4732 ac_status=$?
4733 grep -v '^ *+' conftest.er1 >conftest.err
4734 rm -f conftest.er1
4735 cat conftest.err >&5
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); } && {
4738 test -z "$ac_c_werror_flag" ||
4739 test ! -s conftest.err
4740 } && test -s conftest.$ac_objext; then
4741 ac_lo=$ac_mid; break
4742 else
4743 echo "$as_me: failed program was:" >&5
4744 sed 's/^/| /' conftest.$ac_ext >&5
4746 ac_hi=`expr '(' $ac_mid ')' - 1`
4747 if test $ac_mid -le $ac_hi; then
4748 ac_lo= ac_hi=
4749 break
4751 ac_mid=`expr 2 '*' $ac_mid`
4754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4755 done
4756 else
4757 echo "$as_me: failed program was:" >&5
4758 sed 's/^/| /' conftest.$ac_ext >&5
4760 ac_lo= ac_hi=
4763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4767 # Binary search between lo and hi bounds.
4768 while test "x$ac_lo" != "x$ac_hi"; do
4769 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4770 cat >conftest.$ac_ext <<_ACEOF
4771 /* confdefs.h. */
4772 _ACEOF
4773 cat confdefs.h >>conftest.$ac_ext
4774 cat >>conftest.$ac_ext <<_ACEOF
4775 /* end confdefs.h. */
4776 $ac_includes_default
4777 typedef unsigned short int ac__type_sizeof_;
4779 main ()
4781 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4782 test_array [0] = 0
4785 return 0;
4787 _ACEOF
4788 rm -f conftest.$ac_objext
4789 if { (ac_try="$ac_compile"
4790 case "(($ac_try" in
4791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4792 *) ac_try_echo=$ac_try;;
4793 esac
4794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4795 (eval "$ac_compile") 2>conftest.er1
4796 ac_status=$?
4797 grep -v '^ *+' conftest.er1 >conftest.err
4798 rm -f conftest.er1
4799 cat conftest.err >&5
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); } && {
4802 test -z "$ac_c_werror_flag" ||
4803 test ! -s conftest.err
4804 } && test -s conftest.$ac_objext; then
4805 ac_hi=$ac_mid
4806 else
4807 echo "$as_me: failed program was:" >&5
4808 sed 's/^/| /' conftest.$ac_ext >&5
4810 ac_lo=`expr '(' $ac_mid ')' + 1`
4813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4814 done
4815 case $ac_lo in
4816 ?*) ac_cv_sizeof_unsigned_short_int=$ac_lo;;
4817 '') if test "$ac_cv_type_unsigned_short_int" = yes; then
4818 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short int)
4819 See \`config.log' for more details." >&5
4820 echo "$as_me: error: cannot compute sizeof (unsigned short int)
4821 See \`config.log' for more details." >&2;}
4822 { (exit 77); exit 77; }; }
4823 else
4824 ac_cv_sizeof_unsigned_short_int=0
4825 fi ;;
4826 esac
4827 else
4828 cat >conftest.$ac_ext <<_ACEOF
4829 /* confdefs.h. */
4830 _ACEOF
4831 cat confdefs.h >>conftest.$ac_ext
4832 cat >>conftest.$ac_ext <<_ACEOF
4833 /* end confdefs.h. */
4834 $ac_includes_default
4835 typedef unsigned short int ac__type_sizeof_;
4836 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
4837 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
4838 #include <stdio.h>
4839 #include <stdlib.h>
4841 main ()
4844 FILE *f = fopen ("conftest.val", "w");
4845 if (! f)
4846 return 1;
4847 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
4849 long int i = longval ();
4850 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4851 return 1;
4852 fprintf (f, "%ld\n", i);
4854 else
4856 unsigned long int i = ulongval ();
4857 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4858 return 1;
4859 fprintf (f, "%lu\n", i);
4861 return ferror (f) || fclose (f) != 0;
4864 return 0;
4866 _ACEOF
4867 rm -f conftest$ac_exeext
4868 if { (ac_try="$ac_link"
4869 case "(($ac_try" in
4870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4871 *) ac_try_echo=$ac_try;;
4872 esac
4873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4874 (eval "$ac_link") 2>&5
4875 ac_status=$?
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4878 { (case "(($ac_try" in
4879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4880 *) ac_try_echo=$ac_try;;
4881 esac
4882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4883 (eval "$ac_try") 2>&5
4884 ac_status=$?
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); }; }; then
4887 ac_cv_sizeof_unsigned_short_int=`cat conftest.val`
4888 else
4889 echo "$as_me: program exited with status $ac_status" >&5
4890 echo "$as_me: failed program was:" >&5
4891 sed 's/^/| /' conftest.$ac_ext >&5
4893 ( exit $ac_status )
4894 if test "$ac_cv_type_unsigned_short_int" = yes; then
4895 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short int)
4896 See \`config.log' for more details." >&5
4897 echo "$as_me: error: cannot compute sizeof (unsigned short int)
4898 See \`config.log' for more details." >&2;}
4899 { (exit 77); exit 77; }; }
4900 else
4901 ac_cv_sizeof_unsigned_short_int=0
4904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4906 rm -f conftest.val
4908 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
4909 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6; }
4913 cat >>confdefs.h <<_ACEOF
4914 #define SIZEOF_UNSIGNED_SHORT_INT $ac_cv_sizeof_unsigned_short_int
4915 _ACEOF
4918 { echo "$as_me:$LINENO: checking for unsigned int" >&5
4919 echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6; }
4920 if test "${ac_cv_type_unsigned_int+set}" = set; then
4921 echo $ECHO_N "(cached) $ECHO_C" >&6
4922 else
4923 cat >conftest.$ac_ext <<_ACEOF
4924 /* confdefs.h. */
4925 _ACEOF
4926 cat confdefs.h >>conftest.$ac_ext
4927 cat >>conftest.$ac_ext <<_ACEOF
4928 /* end confdefs.h. */
4929 $ac_includes_default
4930 typedef unsigned int ac__type_new_;
4932 main ()
4934 if ((ac__type_new_ *) 0)
4935 return 0;
4936 if (sizeof (ac__type_new_))
4937 return 0;
4939 return 0;
4941 _ACEOF
4942 rm -f conftest.$ac_objext
4943 if { (ac_try="$ac_compile"
4944 case "(($ac_try" in
4945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4946 *) ac_try_echo=$ac_try;;
4947 esac
4948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4949 (eval "$ac_compile") 2>conftest.er1
4950 ac_status=$?
4951 grep -v '^ *+' conftest.er1 >conftest.err
4952 rm -f conftest.er1
4953 cat conftest.err >&5
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); } && {
4956 test -z "$ac_c_werror_flag" ||
4957 test ! -s conftest.err
4958 } && test -s conftest.$ac_objext; then
4959 ac_cv_type_unsigned_int=yes
4960 else
4961 echo "$as_me: failed program was:" >&5
4962 sed 's/^/| /' conftest.$ac_ext >&5
4964 ac_cv_type_unsigned_int=no
4967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4969 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
4970 echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6; }
4972 # The cast to long int works around a bug in the HP C Compiler
4973 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4974 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4975 # This bug is HP SR number 8606223364.
4976 { echo "$as_me:$LINENO: checking size of unsigned int" >&5
4977 echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6; }
4978 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
4979 echo $ECHO_N "(cached) $ECHO_C" >&6
4980 else
4981 if test "$cross_compiling" = yes; then
4982 # Depending upon the size, compute the lo and hi bounds.
4983 cat >conftest.$ac_ext <<_ACEOF
4984 /* confdefs.h. */
4985 _ACEOF
4986 cat confdefs.h >>conftest.$ac_ext
4987 cat >>conftest.$ac_ext <<_ACEOF
4988 /* end confdefs.h. */
4989 $ac_includes_default
4990 typedef unsigned int ac__type_sizeof_;
4992 main ()
4994 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4995 test_array [0] = 0
4998 return 0;
5000 _ACEOF
5001 rm -f conftest.$ac_objext
5002 if { (ac_try="$ac_compile"
5003 case "(($ac_try" in
5004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5005 *) ac_try_echo=$ac_try;;
5006 esac
5007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5008 (eval "$ac_compile") 2>conftest.er1
5009 ac_status=$?
5010 grep -v '^ *+' conftest.er1 >conftest.err
5011 rm -f conftest.er1
5012 cat conftest.err >&5
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); } && {
5015 test -z "$ac_c_werror_flag" ||
5016 test ! -s conftest.err
5017 } && test -s conftest.$ac_objext; then
5018 ac_lo=0 ac_mid=0
5019 while :; do
5020 cat >conftest.$ac_ext <<_ACEOF
5021 /* confdefs.h. */
5022 _ACEOF
5023 cat confdefs.h >>conftest.$ac_ext
5024 cat >>conftest.$ac_ext <<_ACEOF
5025 /* end confdefs.h. */
5026 $ac_includes_default
5027 typedef unsigned int ac__type_sizeof_;
5029 main ()
5031 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5032 test_array [0] = 0
5035 return 0;
5037 _ACEOF
5038 rm -f conftest.$ac_objext
5039 if { (ac_try="$ac_compile"
5040 case "(($ac_try" in
5041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5042 *) ac_try_echo=$ac_try;;
5043 esac
5044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5045 (eval "$ac_compile") 2>conftest.er1
5046 ac_status=$?
5047 grep -v '^ *+' conftest.er1 >conftest.err
5048 rm -f conftest.er1
5049 cat conftest.err >&5
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); } && {
5052 test -z "$ac_c_werror_flag" ||
5053 test ! -s conftest.err
5054 } && test -s conftest.$ac_objext; then
5055 ac_hi=$ac_mid; break
5056 else
5057 echo "$as_me: failed program was:" >&5
5058 sed 's/^/| /' conftest.$ac_ext >&5
5060 ac_lo=`expr $ac_mid + 1`
5061 if test $ac_lo -le $ac_mid; then
5062 ac_lo= ac_hi=
5063 break
5065 ac_mid=`expr 2 '*' $ac_mid + 1`
5068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5069 done
5070 else
5071 echo "$as_me: failed program was:" >&5
5072 sed 's/^/| /' conftest.$ac_ext >&5
5074 cat >conftest.$ac_ext <<_ACEOF
5075 /* confdefs.h. */
5076 _ACEOF
5077 cat confdefs.h >>conftest.$ac_ext
5078 cat >>conftest.$ac_ext <<_ACEOF
5079 /* end confdefs.h. */
5080 $ac_includes_default
5081 typedef unsigned int ac__type_sizeof_;
5083 main ()
5085 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5086 test_array [0] = 0
5089 return 0;
5091 _ACEOF
5092 rm -f conftest.$ac_objext
5093 if { (ac_try="$ac_compile"
5094 case "(($ac_try" in
5095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5096 *) ac_try_echo=$ac_try;;
5097 esac
5098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5099 (eval "$ac_compile") 2>conftest.er1
5100 ac_status=$?
5101 grep -v '^ *+' conftest.er1 >conftest.err
5102 rm -f conftest.er1
5103 cat conftest.err >&5
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); } && {
5106 test -z "$ac_c_werror_flag" ||
5107 test ! -s conftest.err
5108 } && test -s conftest.$ac_objext; then
5109 ac_hi=-1 ac_mid=-1
5110 while :; do
5111 cat >conftest.$ac_ext <<_ACEOF
5112 /* confdefs.h. */
5113 _ACEOF
5114 cat confdefs.h >>conftest.$ac_ext
5115 cat >>conftest.$ac_ext <<_ACEOF
5116 /* end confdefs.h. */
5117 $ac_includes_default
5118 typedef unsigned int ac__type_sizeof_;
5120 main ()
5122 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5123 test_array [0] = 0
5126 return 0;
5128 _ACEOF
5129 rm -f conftest.$ac_objext
5130 if { (ac_try="$ac_compile"
5131 case "(($ac_try" in
5132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5133 *) ac_try_echo=$ac_try;;
5134 esac
5135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5136 (eval "$ac_compile") 2>conftest.er1
5137 ac_status=$?
5138 grep -v '^ *+' conftest.er1 >conftest.err
5139 rm -f conftest.er1
5140 cat conftest.err >&5
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); } && {
5143 test -z "$ac_c_werror_flag" ||
5144 test ! -s conftest.err
5145 } && test -s conftest.$ac_objext; then
5146 ac_lo=$ac_mid; break
5147 else
5148 echo "$as_me: failed program was:" >&5
5149 sed 's/^/| /' conftest.$ac_ext >&5
5151 ac_hi=`expr '(' $ac_mid ')' - 1`
5152 if test $ac_mid -le $ac_hi; then
5153 ac_lo= ac_hi=
5154 break
5156 ac_mid=`expr 2 '*' $ac_mid`
5159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5160 done
5161 else
5162 echo "$as_me: failed program was:" >&5
5163 sed 's/^/| /' conftest.$ac_ext >&5
5165 ac_lo= ac_hi=
5168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5172 # Binary search between lo and hi bounds.
5173 while test "x$ac_lo" != "x$ac_hi"; do
5174 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5175 cat >conftest.$ac_ext <<_ACEOF
5176 /* confdefs.h. */
5177 _ACEOF
5178 cat confdefs.h >>conftest.$ac_ext
5179 cat >>conftest.$ac_ext <<_ACEOF
5180 /* end confdefs.h. */
5181 $ac_includes_default
5182 typedef unsigned int ac__type_sizeof_;
5184 main ()
5186 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5187 test_array [0] = 0
5190 return 0;
5192 _ACEOF
5193 rm -f conftest.$ac_objext
5194 if { (ac_try="$ac_compile"
5195 case "(($ac_try" in
5196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5197 *) ac_try_echo=$ac_try;;
5198 esac
5199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5200 (eval "$ac_compile") 2>conftest.er1
5201 ac_status=$?
5202 grep -v '^ *+' conftest.er1 >conftest.err
5203 rm -f conftest.er1
5204 cat conftest.err >&5
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); } && {
5207 test -z "$ac_c_werror_flag" ||
5208 test ! -s conftest.err
5209 } && test -s conftest.$ac_objext; then
5210 ac_hi=$ac_mid
5211 else
5212 echo "$as_me: failed program was:" >&5
5213 sed 's/^/| /' conftest.$ac_ext >&5
5215 ac_lo=`expr '(' $ac_mid ')' + 1`
5218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5219 done
5220 case $ac_lo in
5221 ?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
5222 '') if test "$ac_cv_type_unsigned_int" = yes; then
5223 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
5224 See \`config.log' for more details." >&5
5225 echo "$as_me: error: cannot compute sizeof (unsigned int)
5226 See \`config.log' for more details." >&2;}
5227 { (exit 77); exit 77; }; }
5228 else
5229 ac_cv_sizeof_unsigned_int=0
5230 fi ;;
5231 esac
5232 else
5233 cat >conftest.$ac_ext <<_ACEOF
5234 /* confdefs.h. */
5235 _ACEOF
5236 cat confdefs.h >>conftest.$ac_ext
5237 cat >>conftest.$ac_ext <<_ACEOF
5238 /* end confdefs.h. */
5239 $ac_includes_default
5240 typedef unsigned int ac__type_sizeof_;
5241 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5242 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5243 #include <stdio.h>
5244 #include <stdlib.h>
5246 main ()
5249 FILE *f = fopen ("conftest.val", "w");
5250 if (! f)
5251 return 1;
5252 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5254 long int i = longval ();
5255 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5256 return 1;
5257 fprintf (f, "%ld\n", i);
5259 else
5261 unsigned long int i = ulongval ();
5262 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5263 return 1;
5264 fprintf (f, "%lu\n", i);
5266 return ferror (f) || fclose (f) != 0;
5269 return 0;
5271 _ACEOF
5272 rm -f conftest$ac_exeext
5273 if { (ac_try="$ac_link"
5274 case "(($ac_try" in
5275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5276 *) ac_try_echo=$ac_try;;
5277 esac
5278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5279 (eval "$ac_link") 2>&5
5280 ac_status=$?
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5283 { (case "(($ac_try" in
5284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5285 *) ac_try_echo=$ac_try;;
5286 esac
5287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5288 (eval "$ac_try") 2>&5
5289 ac_status=$?
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); }; }; then
5292 ac_cv_sizeof_unsigned_int=`cat conftest.val`
5293 else
5294 echo "$as_me: program exited with status $ac_status" >&5
5295 echo "$as_me: failed program was:" >&5
5296 sed 's/^/| /' conftest.$ac_ext >&5
5298 ( exit $ac_status )
5299 if test "$ac_cv_type_unsigned_int" = yes; then
5300 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
5301 See \`config.log' for more details." >&5
5302 echo "$as_me: error: cannot compute sizeof (unsigned int)
5303 See \`config.log' for more details." >&2;}
5304 { (exit 77); exit 77; }; }
5305 else
5306 ac_cv_sizeof_unsigned_int=0
5309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5311 rm -f conftest.val
5313 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
5314 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
5318 cat >>confdefs.h <<_ACEOF
5319 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
5320 _ACEOF
5323 { echo "$as_me:$LINENO: checking for unsigned long int" >&5
5324 echo $ECHO_N "checking for unsigned long int... $ECHO_C" >&6; }
5325 if test "${ac_cv_type_unsigned_long_int+set}" = set; then
5326 echo $ECHO_N "(cached) $ECHO_C" >&6
5327 else
5328 cat >conftest.$ac_ext <<_ACEOF
5329 /* confdefs.h. */
5330 _ACEOF
5331 cat confdefs.h >>conftest.$ac_ext
5332 cat >>conftest.$ac_ext <<_ACEOF
5333 /* end confdefs.h. */
5334 $ac_includes_default
5335 typedef unsigned long int ac__type_new_;
5337 main ()
5339 if ((ac__type_new_ *) 0)
5340 return 0;
5341 if (sizeof (ac__type_new_))
5342 return 0;
5344 return 0;
5346 _ACEOF
5347 rm -f conftest.$ac_objext
5348 if { (ac_try="$ac_compile"
5349 case "(($ac_try" in
5350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5351 *) ac_try_echo=$ac_try;;
5352 esac
5353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5354 (eval "$ac_compile") 2>conftest.er1
5355 ac_status=$?
5356 grep -v '^ *+' conftest.er1 >conftest.err
5357 rm -f conftest.er1
5358 cat conftest.err >&5
5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 (exit $ac_status); } && {
5361 test -z "$ac_c_werror_flag" ||
5362 test ! -s conftest.err
5363 } && test -s conftest.$ac_objext; then
5364 ac_cv_type_unsigned_long_int=yes
5365 else
5366 echo "$as_me: failed program was:" >&5
5367 sed 's/^/| /' conftest.$ac_ext >&5
5369 ac_cv_type_unsigned_long_int=no
5372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5374 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_int" >&5
5375 echo "${ECHO_T}$ac_cv_type_unsigned_long_int" >&6; }
5377 # The cast to long int works around a bug in the HP C Compiler
5378 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5379 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5380 # This bug is HP SR number 8606223364.
5381 { echo "$as_me:$LINENO: checking size of unsigned long int" >&5
5382 echo $ECHO_N "checking size of unsigned long int... $ECHO_C" >&6; }
5383 if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
5384 echo $ECHO_N "(cached) $ECHO_C" >&6
5385 else
5386 if test "$cross_compiling" = yes; then
5387 # Depending upon the size, compute the lo and hi bounds.
5388 cat >conftest.$ac_ext <<_ACEOF
5389 /* confdefs.h. */
5390 _ACEOF
5391 cat confdefs.h >>conftest.$ac_ext
5392 cat >>conftest.$ac_ext <<_ACEOF
5393 /* end confdefs.h. */
5394 $ac_includes_default
5395 typedef unsigned long int ac__type_sizeof_;
5397 main ()
5399 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5400 test_array [0] = 0
5403 return 0;
5405 _ACEOF
5406 rm -f conftest.$ac_objext
5407 if { (ac_try="$ac_compile"
5408 case "(($ac_try" in
5409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5410 *) ac_try_echo=$ac_try;;
5411 esac
5412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5413 (eval "$ac_compile") 2>conftest.er1
5414 ac_status=$?
5415 grep -v '^ *+' conftest.er1 >conftest.err
5416 rm -f conftest.er1
5417 cat conftest.err >&5
5418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419 (exit $ac_status); } && {
5420 test -z "$ac_c_werror_flag" ||
5421 test ! -s conftest.err
5422 } && test -s conftest.$ac_objext; then
5423 ac_lo=0 ac_mid=0
5424 while :; do
5425 cat >conftest.$ac_ext <<_ACEOF
5426 /* confdefs.h. */
5427 _ACEOF
5428 cat confdefs.h >>conftest.$ac_ext
5429 cat >>conftest.$ac_ext <<_ACEOF
5430 /* end confdefs.h. */
5431 $ac_includes_default
5432 typedef unsigned long int ac__type_sizeof_;
5434 main ()
5436 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5437 test_array [0] = 0
5440 return 0;
5442 _ACEOF
5443 rm -f conftest.$ac_objext
5444 if { (ac_try="$ac_compile"
5445 case "(($ac_try" in
5446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5447 *) ac_try_echo=$ac_try;;
5448 esac
5449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5450 (eval "$ac_compile") 2>conftest.er1
5451 ac_status=$?
5452 grep -v '^ *+' conftest.er1 >conftest.err
5453 rm -f conftest.er1
5454 cat conftest.err >&5
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); } && {
5457 test -z "$ac_c_werror_flag" ||
5458 test ! -s conftest.err
5459 } && test -s conftest.$ac_objext; then
5460 ac_hi=$ac_mid; break
5461 else
5462 echo "$as_me: failed program was:" >&5
5463 sed 's/^/| /' conftest.$ac_ext >&5
5465 ac_lo=`expr $ac_mid + 1`
5466 if test $ac_lo -le $ac_mid; then
5467 ac_lo= ac_hi=
5468 break
5470 ac_mid=`expr 2 '*' $ac_mid + 1`
5473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5474 done
5475 else
5476 echo "$as_me: failed program was:" >&5
5477 sed 's/^/| /' conftest.$ac_ext >&5
5479 cat >conftest.$ac_ext <<_ACEOF
5480 /* confdefs.h. */
5481 _ACEOF
5482 cat confdefs.h >>conftest.$ac_ext
5483 cat >>conftest.$ac_ext <<_ACEOF
5484 /* end confdefs.h. */
5485 $ac_includes_default
5486 typedef unsigned long int ac__type_sizeof_;
5488 main ()
5490 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5491 test_array [0] = 0
5494 return 0;
5496 _ACEOF
5497 rm -f conftest.$ac_objext
5498 if { (ac_try="$ac_compile"
5499 case "(($ac_try" in
5500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5501 *) ac_try_echo=$ac_try;;
5502 esac
5503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5504 (eval "$ac_compile") 2>conftest.er1
5505 ac_status=$?
5506 grep -v '^ *+' conftest.er1 >conftest.err
5507 rm -f conftest.er1
5508 cat conftest.err >&5
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); } && {
5511 test -z "$ac_c_werror_flag" ||
5512 test ! -s conftest.err
5513 } && test -s conftest.$ac_objext; then
5514 ac_hi=-1 ac_mid=-1
5515 while :; do
5516 cat >conftest.$ac_ext <<_ACEOF
5517 /* confdefs.h. */
5518 _ACEOF
5519 cat confdefs.h >>conftest.$ac_ext
5520 cat >>conftest.$ac_ext <<_ACEOF
5521 /* end confdefs.h. */
5522 $ac_includes_default
5523 typedef unsigned long int ac__type_sizeof_;
5525 main ()
5527 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5528 test_array [0] = 0
5531 return 0;
5533 _ACEOF
5534 rm -f conftest.$ac_objext
5535 if { (ac_try="$ac_compile"
5536 case "(($ac_try" in
5537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5538 *) ac_try_echo=$ac_try;;
5539 esac
5540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5541 (eval "$ac_compile") 2>conftest.er1
5542 ac_status=$?
5543 grep -v '^ *+' conftest.er1 >conftest.err
5544 rm -f conftest.er1
5545 cat conftest.err >&5
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); } && {
5548 test -z "$ac_c_werror_flag" ||
5549 test ! -s conftest.err
5550 } && test -s conftest.$ac_objext; then
5551 ac_lo=$ac_mid; break
5552 else
5553 echo "$as_me: failed program was:" >&5
5554 sed 's/^/| /' conftest.$ac_ext >&5
5556 ac_hi=`expr '(' $ac_mid ')' - 1`
5557 if test $ac_mid -le $ac_hi; then
5558 ac_lo= ac_hi=
5559 break
5561 ac_mid=`expr 2 '*' $ac_mid`
5564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5565 done
5566 else
5567 echo "$as_me: failed program was:" >&5
5568 sed 's/^/| /' conftest.$ac_ext >&5
5570 ac_lo= ac_hi=
5573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5577 # Binary search between lo and hi bounds.
5578 while test "x$ac_lo" != "x$ac_hi"; do
5579 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5580 cat >conftest.$ac_ext <<_ACEOF
5581 /* confdefs.h. */
5582 _ACEOF
5583 cat confdefs.h >>conftest.$ac_ext
5584 cat >>conftest.$ac_ext <<_ACEOF
5585 /* end confdefs.h. */
5586 $ac_includes_default
5587 typedef unsigned long int ac__type_sizeof_;
5589 main ()
5591 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5592 test_array [0] = 0
5595 return 0;
5597 _ACEOF
5598 rm -f conftest.$ac_objext
5599 if { (ac_try="$ac_compile"
5600 case "(($ac_try" in
5601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5602 *) ac_try_echo=$ac_try;;
5603 esac
5604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5605 (eval "$ac_compile") 2>conftest.er1
5606 ac_status=$?
5607 grep -v '^ *+' conftest.er1 >conftest.err
5608 rm -f conftest.er1
5609 cat conftest.err >&5
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); } && {
5612 test -z "$ac_c_werror_flag" ||
5613 test ! -s conftest.err
5614 } && test -s conftest.$ac_objext; then
5615 ac_hi=$ac_mid
5616 else
5617 echo "$as_me: failed program was:" >&5
5618 sed 's/^/| /' conftest.$ac_ext >&5
5620 ac_lo=`expr '(' $ac_mid ')' + 1`
5623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5624 done
5625 case $ac_lo in
5626 ?*) ac_cv_sizeof_unsigned_long_int=$ac_lo;;
5627 '') if test "$ac_cv_type_unsigned_long_int" = yes; then
5628 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long int)
5629 See \`config.log' for more details." >&5
5630 echo "$as_me: error: cannot compute sizeof (unsigned long int)
5631 See \`config.log' for more details." >&2;}
5632 { (exit 77); exit 77; }; }
5633 else
5634 ac_cv_sizeof_unsigned_long_int=0
5635 fi ;;
5636 esac
5637 else
5638 cat >conftest.$ac_ext <<_ACEOF
5639 /* confdefs.h. */
5640 _ACEOF
5641 cat confdefs.h >>conftest.$ac_ext
5642 cat >>conftest.$ac_ext <<_ACEOF
5643 /* end confdefs.h. */
5644 $ac_includes_default
5645 typedef unsigned long int ac__type_sizeof_;
5646 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5647 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5648 #include <stdio.h>
5649 #include <stdlib.h>
5651 main ()
5654 FILE *f = fopen ("conftest.val", "w");
5655 if (! f)
5656 return 1;
5657 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5659 long int i = longval ();
5660 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5661 return 1;
5662 fprintf (f, "%ld\n", i);
5664 else
5666 unsigned long int i = ulongval ();
5667 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5668 return 1;
5669 fprintf (f, "%lu\n", i);
5671 return ferror (f) || fclose (f) != 0;
5674 return 0;
5676 _ACEOF
5677 rm -f conftest$ac_exeext
5678 if { (ac_try="$ac_link"
5679 case "(($ac_try" in
5680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5681 *) ac_try_echo=$ac_try;;
5682 esac
5683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5684 (eval "$ac_link") 2>&5
5685 ac_status=$?
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5688 { (case "(($ac_try" in
5689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5690 *) ac_try_echo=$ac_try;;
5691 esac
5692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5693 (eval "$ac_try") 2>&5
5694 ac_status=$?
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); }; }; then
5697 ac_cv_sizeof_unsigned_long_int=`cat conftest.val`
5698 else
5699 echo "$as_me: program exited with status $ac_status" >&5
5700 echo "$as_me: failed program was:" >&5
5701 sed 's/^/| /' conftest.$ac_ext >&5
5703 ( exit $ac_status )
5704 if test "$ac_cv_type_unsigned_long_int" = yes; then
5705 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long int)
5706 See \`config.log' for more details." >&5
5707 echo "$as_me: error: cannot compute sizeof (unsigned long int)
5708 See \`config.log' for more details." >&2;}
5709 { (exit 77); exit 77; }; }
5710 else
5711 ac_cv_sizeof_unsigned_long_int=0
5714 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5716 rm -f conftest.val
5718 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
5719 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6; }
5723 cat >>confdefs.h <<_ACEOF
5724 #define SIZEOF_UNSIGNED_LONG_INT $ac_cv_sizeof_unsigned_long_int
5725 _ACEOF
5728 { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
5729 echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
5730 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
5731 echo $ECHO_N "(cached) $ECHO_C" >&6
5732 else
5733 cat >conftest.$ac_ext <<_ACEOF
5734 /* confdefs.h. */
5735 _ACEOF
5736 cat confdefs.h >>conftest.$ac_ext
5737 cat >>conftest.$ac_ext <<_ACEOF
5738 /* end confdefs.h. */
5739 $ac_includes_default
5740 typedef unsigned long long int ac__type_new_;
5742 main ()
5744 if ((ac__type_new_ *) 0)
5745 return 0;
5746 if (sizeof (ac__type_new_))
5747 return 0;
5749 return 0;
5751 _ACEOF
5752 rm -f conftest.$ac_objext
5753 if { (ac_try="$ac_compile"
5754 case "(($ac_try" in
5755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5756 *) ac_try_echo=$ac_try;;
5757 esac
5758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5759 (eval "$ac_compile") 2>conftest.er1
5760 ac_status=$?
5761 grep -v '^ *+' conftest.er1 >conftest.err
5762 rm -f conftest.er1
5763 cat conftest.err >&5
5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); } && {
5766 test -z "$ac_c_werror_flag" ||
5767 test ! -s conftest.err
5768 } && test -s conftest.$ac_objext; then
5769 ac_cv_type_unsigned_long_long_int=yes
5770 else
5771 echo "$as_me: failed program was:" >&5
5772 sed 's/^/| /' conftest.$ac_ext >&5
5774 ac_cv_type_unsigned_long_long_int=no
5777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5779 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
5780 echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
5782 # The cast to long int works around a bug in the HP C Compiler
5783 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5784 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5785 # This bug is HP SR number 8606223364.
5786 { echo "$as_me:$LINENO: checking size of unsigned long long int" >&5
5787 echo $ECHO_N "checking size of unsigned long long int... $ECHO_C" >&6; }
5788 if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5790 else
5791 if test "$cross_compiling" = yes; then
5792 # Depending upon the size, compute the lo and hi bounds.
5793 cat >conftest.$ac_ext <<_ACEOF
5794 /* confdefs.h. */
5795 _ACEOF
5796 cat confdefs.h >>conftest.$ac_ext
5797 cat >>conftest.$ac_ext <<_ACEOF
5798 /* end confdefs.h. */
5799 $ac_includes_default
5800 typedef unsigned long long int ac__type_sizeof_;
5802 main ()
5804 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5805 test_array [0] = 0
5808 return 0;
5810 _ACEOF
5811 rm -f conftest.$ac_objext
5812 if { (ac_try="$ac_compile"
5813 case "(($ac_try" in
5814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5815 *) ac_try_echo=$ac_try;;
5816 esac
5817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5818 (eval "$ac_compile") 2>conftest.er1
5819 ac_status=$?
5820 grep -v '^ *+' conftest.er1 >conftest.err
5821 rm -f conftest.er1
5822 cat conftest.err >&5
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); } && {
5825 test -z "$ac_c_werror_flag" ||
5826 test ! -s conftest.err
5827 } && test -s conftest.$ac_objext; then
5828 ac_lo=0 ac_mid=0
5829 while :; do
5830 cat >conftest.$ac_ext <<_ACEOF
5831 /* confdefs.h. */
5832 _ACEOF
5833 cat confdefs.h >>conftest.$ac_ext
5834 cat >>conftest.$ac_ext <<_ACEOF
5835 /* end confdefs.h. */
5836 $ac_includes_default
5837 typedef unsigned long long int ac__type_sizeof_;
5839 main ()
5841 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5842 test_array [0] = 0
5845 return 0;
5847 _ACEOF
5848 rm -f conftest.$ac_objext
5849 if { (ac_try="$ac_compile"
5850 case "(($ac_try" in
5851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5852 *) ac_try_echo=$ac_try;;
5853 esac
5854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5855 (eval "$ac_compile") 2>conftest.er1
5856 ac_status=$?
5857 grep -v '^ *+' conftest.er1 >conftest.err
5858 rm -f conftest.er1
5859 cat conftest.err >&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); } && {
5862 test -z "$ac_c_werror_flag" ||
5863 test ! -s conftest.err
5864 } && test -s conftest.$ac_objext; then
5865 ac_hi=$ac_mid; break
5866 else
5867 echo "$as_me: failed program was:" >&5
5868 sed 's/^/| /' conftest.$ac_ext >&5
5870 ac_lo=`expr $ac_mid + 1`
5871 if test $ac_lo -le $ac_mid; then
5872 ac_lo= ac_hi=
5873 break
5875 ac_mid=`expr 2 '*' $ac_mid + 1`
5878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5879 done
5880 else
5881 echo "$as_me: failed program was:" >&5
5882 sed 's/^/| /' conftest.$ac_ext >&5
5884 cat >conftest.$ac_ext <<_ACEOF
5885 /* confdefs.h. */
5886 _ACEOF
5887 cat confdefs.h >>conftest.$ac_ext
5888 cat >>conftest.$ac_ext <<_ACEOF
5889 /* end confdefs.h. */
5890 $ac_includes_default
5891 typedef unsigned long long int ac__type_sizeof_;
5893 main ()
5895 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5896 test_array [0] = 0
5899 return 0;
5901 _ACEOF
5902 rm -f conftest.$ac_objext
5903 if { (ac_try="$ac_compile"
5904 case "(($ac_try" in
5905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5906 *) ac_try_echo=$ac_try;;
5907 esac
5908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5909 (eval "$ac_compile") 2>conftest.er1
5910 ac_status=$?
5911 grep -v '^ *+' conftest.er1 >conftest.err
5912 rm -f conftest.er1
5913 cat conftest.err >&5
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); } && {
5916 test -z "$ac_c_werror_flag" ||
5917 test ! -s conftest.err
5918 } && test -s conftest.$ac_objext; then
5919 ac_hi=-1 ac_mid=-1
5920 while :; do
5921 cat >conftest.$ac_ext <<_ACEOF
5922 /* confdefs.h. */
5923 _ACEOF
5924 cat confdefs.h >>conftest.$ac_ext
5925 cat >>conftest.$ac_ext <<_ACEOF
5926 /* end confdefs.h. */
5927 $ac_includes_default
5928 typedef unsigned long long int ac__type_sizeof_;
5930 main ()
5932 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5933 test_array [0] = 0
5936 return 0;
5938 _ACEOF
5939 rm -f conftest.$ac_objext
5940 if { (ac_try="$ac_compile"
5941 case "(($ac_try" in
5942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5943 *) ac_try_echo=$ac_try;;
5944 esac
5945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5946 (eval "$ac_compile") 2>conftest.er1
5947 ac_status=$?
5948 grep -v '^ *+' conftest.er1 >conftest.err
5949 rm -f conftest.er1
5950 cat conftest.err >&5
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); } && {
5953 test -z "$ac_c_werror_flag" ||
5954 test ! -s conftest.err
5955 } && test -s conftest.$ac_objext; then
5956 ac_lo=$ac_mid; break
5957 else
5958 echo "$as_me: failed program was:" >&5
5959 sed 's/^/| /' conftest.$ac_ext >&5
5961 ac_hi=`expr '(' $ac_mid ')' - 1`
5962 if test $ac_mid -le $ac_hi; then
5963 ac_lo= ac_hi=
5964 break
5966 ac_mid=`expr 2 '*' $ac_mid`
5969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5970 done
5971 else
5972 echo "$as_me: failed program was:" >&5
5973 sed 's/^/| /' conftest.$ac_ext >&5
5975 ac_lo= ac_hi=
5978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5982 # Binary search between lo and hi bounds.
5983 while test "x$ac_lo" != "x$ac_hi"; do
5984 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5985 cat >conftest.$ac_ext <<_ACEOF
5986 /* confdefs.h. */
5987 _ACEOF
5988 cat confdefs.h >>conftest.$ac_ext
5989 cat >>conftest.$ac_ext <<_ACEOF
5990 /* end confdefs.h. */
5991 $ac_includes_default
5992 typedef unsigned long long int ac__type_sizeof_;
5994 main ()
5996 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5997 test_array [0] = 0
6000 return 0;
6002 _ACEOF
6003 rm -f conftest.$ac_objext
6004 if { (ac_try="$ac_compile"
6005 case "(($ac_try" in
6006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6007 *) ac_try_echo=$ac_try;;
6008 esac
6009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6010 (eval "$ac_compile") 2>conftest.er1
6011 ac_status=$?
6012 grep -v '^ *+' conftest.er1 >conftest.err
6013 rm -f conftest.er1
6014 cat conftest.err >&5
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); } && {
6017 test -z "$ac_c_werror_flag" ||
6018 test ! -s conftest.err
6019 } && test -s conftest.$ac_objext; then
6020 ac_hi=$ac_mid
6021 else
6022 echo "$as_me: failed program was:" >&5
6023 sed 's/^/| /' conftest.$ac_ext >&5
6025 ac_lo=`expr '(' $ac_mid ')' + 1`
6028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6029 done
6030 case $ac_lo in
6031 ?*) ac_cv_sizeof_unsigned_long_long_int=$ac_lo;;
6032 '') if test "$ac_cv_type_unsigned_long_long_int" = yes; then
6033 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long int)
6034 See \`config.log' for more details." >&5
6035 echo "$as_me: error: cannot compute sizeof (unsigned long long int)
6036 See \`config.log' for more details." >&2;}
6037 { (exit 77); exit 77; }; }
6038 else
6039 ac_cv_sizeof_unsigned_long_long_int=0
6040 fi ;;
6041 esac
6042 else
6043 cat >conftest.$ac_ext <<_ACEOF
6044 /* confdefs.h. */
6045 _ACEOF
6046 cat confdefs.h >>conftest.$ac_ext
6047 cat >>conftest.$ac_ext <<_ACEOF
6048 /* end confdefs.h. */
6049 $ac_includes_default
6050 typedef unsigned long long int ac__type_sizeof_;
6051 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6052 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6053 #include <stdio.h>
6054 #include <stdlib.h>
6056 main ()
6059 FILE *f = fopen ("conftest.val", "w");
6060 if (! f)
6061 return 1;
6062 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6064 long int i = longval ();
6065 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6066 return 1;
6067 fprintf (f, "%ld\n", i);
6069 else
6071 unsigned long int i = ulongval ();
6072 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6073 return 1;
6074 fprintf (f, "%lu\n", i);
6076 return ferror (f) || fclose (f) != 0;
6079 return 0;
6081 _ACEOF
6082 rm -f conftest$ac_exeext
6083 if { (ac_try="$ac_link"
6084 case "(($ac_try" in
6085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6086 *) ac_try_echo=$ac_try;;
6087 esac
6088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6089 (eval "$ac_link") 2>&5
6090 ac_status=$?
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6093 { (case "(($ac_try" in
6094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6095 *) ac_try_echo=$ac_try;;
6096 esac
6097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6098 (eval "$ac_try") 2>&5
6099 ac_status=$?
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); }; }; then
6102 ac_cv_sizeof_unsigned_long_long_int=`cat conftest.val`
6103 else
6104 echo "$as_me: program exited with status $ac_status" >&5
6105 echo "$as_me: failed program was:" >&5
6106 sed 's/^/| /' conftest.$ac_ext >&5
6108 ( exit $ac_status )
6109 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
6110 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long int)
6111 See \`config.log' for more details." >&5
6112 echo "$as_me: error: cannot compute sizeof (unsigned long long int)
6113 See \`config.log' for more details." >&2;}
6114 { (exit 77); exit 77; }; }
6115 else
6116 ac_cv_sizeof_unsigned_long_long_int=0
6119 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6121 rm -f conftest.val
6123 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
6124 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long_int" >&6; }
6128 cat >>confdefs.h <<_ACEOF
6129 #define SIZEOF_UNSIGNED_LONG_LONG_INT $ac_cv_sizeof_unsigned_long_long_int
6130 _ACEOF
6141 for ac_func in llseek alarm gethostbyname inet_ntoa memset socket strerror strstr
6143 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6144 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6145 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6146 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6147 echo $ECHO_N "(cached) $ECHO_C" >&6
6148 else
6149 cat >conftest.$ac_ext <<_ACEOF
6150 /* confdefs.h. */
6151 _ACEOF
6152 cat confdefs.h >>conftest.$ac_ext
6153 cat >>conftest.$ac_ext <<_ACEOF
6154 /* end confdefs.h. */
6155 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6157 #define $ac_func innocuous_$ac_func
6159 /* System header to define __stub macros and hopefully few prototypes,
6160 which can conflict with char $ac_func (); below.
6161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6162 <limits.h> exists even on freestanding compilers. */
6164 #ifdef __STDC__
6165 # include <limits.h>
6166 #else
6167 # include <assert.h>
6168 #endif
6170 #undef $ac_func
6172 /* Override any GCC internal prototype to avoid an error.
6173 Use char because int might match the return type of a GCC
6174 builtin and then its argument prototype would still apply. */
6175 #ifdef __cplusplus
6176 extern "C"
6177 #endif
6178 char $ac_func ();
6179 /* The GNU C library defines this for functions which it implements
6180 to always fail with ENOSYS. Some functions are actually named
6181 something starting with __ and the normal name is an alias. */
6182 #if defined __stub_$ac_func || defined __stub___$ac_func
6183 choke me
6184 #endif
6187 main ()
6189 return $ac_func ();
6191 return 0;
6193 _ACEOF
6194 rm -f conftest.$ac_objext conftest$ac_exeext
6195 if { (ac_try="$ac_link"
6196 case "(($ac_try" in
6197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6198 *) ac_try_echo=$ac_try;;
6199 esac
6200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6201 (eval "$ac_link") 2>conftest.er1
6202 ac_status=$?
6203 grep -v '^ *+' conftest.er1 >conftest.err
6204 rm -f conftest.er1
6205 cat conftest.err >&5
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); } && {
6208 test -z "$ac_c_werror_flag" ||
6209 test ! -s conftest.err
6210 } && test -s conftest$ac_exeext &&
6211 $as_test_x conftest$ac_exeext; then
6212 eval "$as_ac_var=yes"
6213 else
6214 echo "$as_me: failed program was:" >&5
6215 sed 's/^/| /' conftest.$ac_ext >&5
6217 eval "$as_ac_var=no"
6220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6221 conftest$ac_exeext conftest.$ac_ext
6223 ac_res=`eval echo '${'$as_ac_var'}'`
6224 { echo "$as_me:$LINENO: result: $ac_res" >&5
6225 echo "${ECHO_T}$ac_res" >&6; }
6226 if test `eval echo '${'$as_ac_var'}'` = yes; then
6227 cat >>confdefs.h <<_ACEOF
6228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6229 _ACEOF
6232 done
6234 { echo "$as_me:$LINENO: checking for pid_t" >&5
6235 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6236 if test "${ac_cv_type_pid_t+set}" = set; then
6237 echo $ECHO_N "(cached) $ECHO_C" >&6
6238 else
6239 cat >conftest.$ac_ext <<_ACEOF
6240 /* confdefs.h. */
6241 _ACEOF
6242 cat confdefs.h >>conftest.$ac_ext
6243 cat >>conftest.$ac_ext <<_ACEOF
6244 /* end confdefs.h. */
6245 $ac_includes_default
6246 typedef pid_t ac__type_new_;
6248 main ()
6250 if ((ac__type_new_ *) 0)
6251 return 0;
6252 if (sizeof (ac__type_new_))
6253 return 0;
6255 return 0;
6257 _ACEOF
6258 rm -f conftest.$ac_objext
6259 if { (ac_try="$ac_compile"
6260 case "(($ac_try" in
6261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6262 *) ac_try_echo=$ac_try;;
6263 esac
6264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6265 (eval "$ac_compile") 2>conftest.er1
6266 ac_status=$?
6267 grep -v '^ *+' conftest.er1 >conftest.err
6268 rm -f conftest.er1
6269 cat conftest.err >&5
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); } && {
6272 test -z "$ac_c_werror_flag" ||
6273 test ! -s conftest.err
6274 } && test -s conftest.$ac_objext; then
6275 ac_cv_type_pid_t=yes
6276 else
6277 echo "$as_me: failed program was:" >&5
6278 sed 's/^/| /' conftest.$ac_ext >&5
6280 ac_cv_type_pid_t=no
6283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6285 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6286 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6287 if test $ac_cv_type_pid_t = yes; then
6289 else
6291 cat >>confdefs.h <<_ACEOF
6292 #define pid_t int
6293 _ACEOF
6298 for ac_header in vfork.h
6300 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6302 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6305 echo $ECHO_N "(cached) $ECHO_C" >&6
6307 ac_res=`eval echo '${'$as_ac_Header'}'`
6308 { echo "$as_me:$LINENO: result: $ac_res" >&5
6309 echo "${ECHO_T}$ac_res" >&6; }
6310 else
6311 # Is the header compilable?
6312 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6313 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6314 cat >conftest.$ac_ext <<_ACEOF
6315 /* confdefs.h. */
6316 _ACEOF
6317 cat confdefs.h >>conftest.$ac_ext
6318 cat >>conftest.$ac_ext <<_ACEOF
6319 /* end confdefs.h. */
6320 $ac_includes_default
6321 #include <$ac_header>
6322 _ACEOF
6323 rm -f conftest.$ac_objext
6324 if { (ac_try="$ac_compile"
6325 case "(($ac_try" in
6326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6327 *) ac_try_echo=$ac_try;;
6328 esac
6329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6330 (eval "$ac_compile") 2>conftest.er1
6331 ac_status=$?
6332 grep -v '^ *+' conftest.er1 >conftest.err
6333 rm -f conftest.er1
6334 cat conftest.err >&5
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); } && {
6337 test -z "$ac_c_werror_flag" ||
6338 test ! -s conftest.err
6339 } && test -s conftest.$ac_objext; then
6340 ac_header_compiler=yes
6341 else
6342 echo "$as_me: failed program was:" >&5
6343 sed 's/^/| /' conftest.$ac_ext >&5
6345 ac_header_compiler=no
6348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6349 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6350 echo "${ECHO_T}$ac_header_compiler" >&6; }
6352 # Is the header present?
6353 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6354 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6355 cat >conftest.$ac_ext <<_ACEOF
6356 /* confdefs.h. */
6357 _ACEOF
6358 cat confdefs.h >>conftest.$ac_ext
6359 cat >>conftest.$ac_ext <<_ACEOF
6360 /* end confdefs.h. */
6361 #include <$ac_header>
6362 _ACEOF
6363 if { (ac_try="$ac_cpp conftest.$ac_ext"
6364 case "(($ac_try" in
6365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6366 *) ac_try_echo=$ac_try;;
6367 esac
6368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6369 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6370 ac_status=$?
6371 grep -v '^ *+' conftest.er1 >conftest.err
6372 rm -f conftest.er1
6373 cat conftest.err >&5
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); } >/dev/null && {
6376 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6377 test ! -s conftest.err
6378 }; then
6379 ac_header_preproc=yes
6380 else
6381 echo "$as_me: failed program was:" >&5
6382 sed 's/^/| /' conftest.$ac_ext >&5
6384 ac_header_preproc=no
6387 rm -f conftest.err conftest.$ac_ext
6388 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6389 echo "${ECHO_T}$ac_header_preproc" >&6; }
6391 # So? What about this header?
6392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6393 yes:no: )
6394 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6395 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6397 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6398 ac_header_preproc=yes
6400 no:yes:* )
6401 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6402 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6403 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6404 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6405 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6406 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6407 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6408 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6410 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6411 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6412 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6413 ( cat <<\_ASBOX
6414 ## -------------------------------- ##
6415 ## Report this to wouter@debian.org ##
6416 ## -------------------------------- ##
6417 _ASBOX
6418 ) | sed "s/^/$as_me: WARNING: /" >&2
6420 esac
6421 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6424 echo $ECHO_N "(cached) $ECHO_C" >&6
6425 else
6426 eval "$as_ac_Header=\$ac_header_preproc"
6428 ac_res=`eval echo '${'$as_ac_Header'}'`
6429 { echo "$as_me:$LINENO: result: $ac_res" >&5
6430 echo "${ECHO_T}$ac_res" >&6; }
6433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6434 cat >>confdefs.h <<_ACEOF
6435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6436 _ACEOF
6440 done
6444 for ac_func in fork vfork
6446 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6447 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6448 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6449 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6450 echo $ECHO_N "(cached) $ECHO_C" >&6
6451 else
6452 cat >conftest.$ac_ext <<_ACEOF
6453 /* confdefs.h. */
6454 _ACEOF
6455 cat confdefs.h >>conftest.$ac_ext
6456 cat >>conftest.$ac_ext <<_ACEOF
6457 /* end confdefs.h. */
6458 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6459 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6460 #define $ac_func innocuous_$ac_func
6462 /* System header to define __stub macros and hopefully few prototypes,
6463 which can conflict with char $ac_func (); below.
6464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6465 <limits.h> exists even on freestanding compilers. */
6467 #ifdef __STDC__
6468 # include <limits.h>
6469 #else
6470 # include <assert.h>
6471 #endif
6473 #undef $ac_func
6475 /* Override any GCC internal prototype to avoid an error.
6476 Use char because int might match the return type of a GCC
6477 builtin and then its argument prototype would still apply. */
6478 #ifdef __cplusplus
6479 extern "C"
6480 #endif
6481 char $ac_func ();
6482 /* The GNU C library defines this for functions which it implements
6483 to always fail with ENOSYS. Some functions are actually named
6484 something starting with __ and the normal name is an alias. */
6485 #if defined __stub_$ac_func || defined __stub___$ac_func
6486 choke me
6487 #endif
6490 main ()
6492 return $ac_func ();
6494 return 0;
6496 _ACEOF
6497 rm -f conftest.$ac_objext conftest$ac_exeext
6498 if { (ac_try="$ac_link"
6499 case "(($ac_try" in
6500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6501 *) ac_try_echo=$ac_try;;
6502 esac
6503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6504 (eval "$ac_link") 2>conftest.er1
6505 ac_status=$?
6506 grep -v '^ *+' conftest.er1 >conftest.err
6507 rm -f conftest.er1
6508 cat conftest.err >&5
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); } && {
6511 test -z "$ac_c_werror_flag" ||
6512 test ! -s conftest.err
6513 } && test -s conftest$ac_exeext &&
6514 $as_test_x conftest$ac_exeext; then
6515 eval "$as_ac_var=yes"
6516 else
6517 echo "$as_me: failed program was:" >&5
6518 sed 's/^/| /' conftest.$ac_ext >&5
6520 eval "$as_ac_var=no"
6523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6524 conftest$ac_exeext conftest.$ac_ext
6526 ac_res=`eval echo '${'$as_ac_var'}'`
6527 { echo "$as_me:$LINENO: result: $ac_res" >&5
6528 echo "${ECHO_T}$ac_res" >&6; }
6529 if test `eval echo '${'$as_ac_var'}'` = yes; then
6530 cat >>confdefs.h <<_ACEOF
6531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6532 _ACEOF
6535 done
6537 if test "x$ac_cv_func_fork" = xyes; then
6538 { echo "$as_me:$LINENO: checking for working fork" >&5
6539 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
6540 if test "${ac_cv_func_fork_works+set}" = set; then
6541 echo $ECHO_N "(cached) $ECHO_C" >&6
6542 else
6543 if test "$cross_compiling" = yes; then
6544 ac_cv_func_fork_works=cross
6545 else
6546 cat >conftest.$ac_ext <<_ACEOF
6547 /* confdefs.h. */
6548 _ACEOF
6549 cat confdefs.h >>conftest.$ac_ext
6550 cat >>conftest.$ac_ext <<_ACEOF
6551 /* end confdefs.h. */
6552 $ac_includes_default
6554 main ()
6557 /* By Ruediger Kuhlmann. */
6558 return fork () < 0;
6561 return 0;
6563 _ACEOF
6564 rm -f conftest$ac_exeext
6565 if { (ac_try="$ac_link"
6566 case "(($ac_try" in
6567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6568 *) ac_try_echo=$ac_try;;
6569 esac
6570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6571 (eval "$ac_link") 2>&5
6572 ac_status=$?
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6575 { (case "(($ac_try" in
6576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6577 *) ac_try_echo=$ac_try;;
6578 esac
6579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6580 (eval "$ac_try") 2>&5
6581 ac_status=$?
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); }; }; then
6584 ac_cv_func_fork_works=yes
6585 else
6586 echo "$as_me: program exited with status $ac_status" >&5
6587 echo "$as_me: failed program was:" >&5
6588 sed 's/^/| /' conftest.$ac_ext >&5
6590 ( exit $ac_status )
6591 ac_cv_func_fork_works=no
6593 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6598 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
6599 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
6601 else
6602 ac_cv_func_fork_works=$ac_cv_func_fork
6604 if test "x$ac_cv_func_fork_works" = xcross; then
6605 case $host in
6606 *-*-amigaos* | *-*-msdosdjgpp*)
6607 # Override, as these systems have only a dummy fork() stub
6608 ac_cv_func_fork_works=no
6611 ac_cv_func_fork_works=yes
6613 esac
6614 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6615 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6617 ac_cv_func_vfork_works=$ac_cv_func_vfork
6618 if test "x$ac_cv_func_vfork" = xyes; then
6619 { echo "$as_me:$LINENO: checking for working vfork" >&5
6620 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
6621 if test "${ac_cv_func_vfork_works+set}" = set; then
6622 echo $ECHO_N "(cached) $ECHO_C" >&6
6623 else
6624 if test "$cross_compiling" = yes; then
6625 ac_cv_func_vfork_works=cross
6626 else
6627 cat >conftest.$ac_ext <<_ACEOF
6628 /* confdefs.h. */
6629 _ACEOF
6630 cat confdefs.h >>conftest.$ac_ext
6631 cat >>conftest.$ac_ext <<_ACEOF
6632 /* end confdefs.h. */
6633 /* Thanks to Paul Eggert for this test. */
6634 $ac_includes_default
6635 #include <sys/wait.h>
6636 #ifdef HAVE_VFORK_H
6637 # include <vfork.h>
6638 #endif
6639 /* On some sparc systems, changes by the child to local and incoming
6640 argument registers are propagated back to the parent. The compiler
6641 is told about this with #include <vfork.h>, but some compilers
6642 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6643 static variable whose address is put into a register that is
6644 clobbered by the vfork. */
6645 static void
6646 #ifdef __cplusplus
6647 sparc_address_test (int arg)
6648 # else
6649 sparc_address_test (arg) int arg;
6650 #endif
6652 static pid_t child;
6653 if (!child) {
6654 child = vfork ();
6655 if (child < 0) {
6656 perror ("vfork");
6657 _exit(2);
6659 if (!child) {
6660 arg = getpid();
6661 write(-1, "", 0);
6662 _exit (arg);
6668 main ()
6670 pid_t parent = getpid ();
6671 pid_t child;
6673 sparc_address_test (0);
6675 child = vfork ();
6677 if (child == 0) {
6678 /* Here is another test for sparc vfork register problems. This
6679 test uses lots of local variables, at least as many local
6680 variables as main has allocated so far including compiler
6681 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6682 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6683 reuse the register of parent for one of the local variables,
6684 since it will think that parent can't possibly be used any more
6685 in this routine. Assigning to the local variable will thus
6686 munge parent in the parent process. */
6687 pid_t
6688 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6689 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6690 /* Convince the compiler that p..p7 are live; otherwise, it might
6691 use the same hardware register for all 8 local variables. */
6692 if (p != p1 || p != p2 || p != p3 || p != p4
6693 || p != p5 || p != p6 || p != p7)
6694 _exit(1);
6696 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6697 from child file descriptors. If the child closes a descriptor
6698 before it execs or exits, this munges the parent's descriptor
6699 as well. Test for this by closing stdout in the child. */
6700 _exit(close(fileno(stdout)) != 0);
6701 } else {
6702 int status;
6703 struct stat st;
6705 while (wait(&status) != child)
6707 return (
6708 /* Was there some problem with vforking? */
6709 child < 0
6711 /* Did the child fail? (This shouldn't happen.) */
6712 || status
6714 /* Did the vfork/compiler bug occur? */
6715 || parent != getpid()
6717 /* Did the file descriptor bug occur? */
6718 || fstat(fileno(stdout), &st) != 0
6722 _ACEOF
6723 rm -f conftest$ac_exeext
6724 if { (ac_try="$ac_link"
6725 case "(($ac_try" in
6726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6727 *) ac_try_echo=$ac_try;;
6728 esac
6729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6730 (eval "$ac_link") 2>&5
6731 ac_status=$?
6732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6734 { (case "(($ac_try" in
6735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6736 *) ac_try_echo=$ac_try;;
6737 esac
6738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6739 (eval "$ac_try") 2>&5
6740 ac_status=$?
6741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742 (exit $ac_status); }; }; then
6743 ac_cv_func_vfork_works=yes
6744 else
6745 echo "$as_me: program exited with status $ac_status" >&5
6746 echo "$as_me: failed program was:" >&5
6747 sed 's/^/| /' conftest.$ac_ext >&5
6749 ( exit $ac_status )
6750 ac_cv_func_vfork_works=no
6752 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6757 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
6758 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
6761 if test "x$ac_cv_func_fork_works" = xcross; then
6762 ac_cv_func_vfork_works=$ac_cv_func_vfork
6763 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6764 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
6767 if test "x$ac_cv_func_vfork_works" = xyes; then
6769 cat >>confdefs.h <<\_ACEOF
6770 #define HAVE_WORKING_VFORK 1
6771 _ACEOF
6773 else
6775 cat >>confdefs.h <<\_ACEOF
6776 #define vfork fork
6777 _ACEOF
6780 if test "x$ac_cv_func_fork_works" = xyes; then
6782 cat >>confdefs.h <<\_ACEOF
6783 #define HAVE_WORKING_FORK 1
6784 _ACEOF
6788 { echo "$as_me:$LINENO: checking for function prototypes" >&5
6789 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
6790 if test "$ac_cv_prog_cc_c89" != no; then
6791 { echo "$as_me:$LINENO: result: yes" >&5
6792 echo "${ECHO_T}yes" >&6; }
6794 cat >>confdefs.h <<\_ACEOF
6795 #define PROTOTYPES 1
6796 _ACEOF
6799 cat >>confdefs.h <<\_ACEOF
6800 #define __PROTOTYPES 1
6801 _ACEOF
6803 else
6804 { echo "$as_me:$LINENO: result: no" >&5
6805 echo "${ECHO_T}no" >&6; }
6808 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
6809 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
6810 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
6811 echo $ECHO_N "(cached) $ECHO_C" >&6
6812 else
6813 ac_cv_func_setvbuf_reversed=no
6814 cat >conftest.$ac_ext <<_ACEOF
6815 /* confdefs.h. */
6816 _ACEOF
6817 cat confdefs.h >>conftest.$ac_ext
6818 cat >>conftest.$ac_ext <<_ACEOF
6819 /* end confdefs.h. */
6820 #include <stdio.h>
6821 # ifdef PROTOTYPES
6822 int (setvbuf) (FILE *, int, char *, size_t);
6823 # endif
6825 main ()
6827 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
6829 return 0;
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6839 (eval "$ac_link") 2>conftest.er1
6840 ac_status=$?
6841 grep -v '^ *+' conftest.er1 >conftest.err
6842 rm -f conftest.er1
6843 cat conftest.err >&5
6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845 (exit $ac_status); } && {
6846 test -z "$ac_c_werror_flag" ||
6847 test ! -s conftest.err
6848 } && test -s conftest$ac_exeext &&
6849 $as_test_x conftest$ac_exeext; then
6850 cat >conftest.$ac_ext <<_ACEOF
6851 /* confdefs.h. */
6852 _ACEOF
6853 cat confdefs.h >>conftest.$ac_ext
6854 cat >>conftest.$ac_ext <<_ACEOF
6855 /* end confdefs.h. */
6856 #include <stdio.h>
6857 # ifdef PROTOTYPES
6858 int (setvbuf) (FILE *, int, char *, size_t);
6859 # endif
6861 main ()
6863 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
6865 return 0;
6867 _ACEOF
6868 rm -f conftest.$ac_objext conftest$ac_exeext
6869 if { (ac_try="$ac_link"
6870 case "(($ac_try" in
6871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6872 *) ac_try_echo=$ac_try;;
6873 esac
6874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6875 (eval "$ac_link") 2>conftest.er1
6876 ac_status=$?
6877 grep -v '^ *+' conftest.er1 >conftest.err
6878 rm -f conftest.er1
6879 cat conftest.err >&5
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); } && {
6882 test -z "$ac_c_werror_flag" ||
6883 test ! -s conftest.err
6884 } && test -s conftest$ac_exeext &&
6885 $as_test_x conftest$ac_exeext; then
6886 # It compiles and links either way, so it must not be declared
6887 # with a prototype and most likely this is a K&R C compiler.
6888 # Try running it.
6889 if test "$cross_compiling" = yes; then
6890 : # Assume setvbuf is not reversed when cross-compiling.
6891 else
6892 cat >conftest.$ac_ext <<_ACEOF
6893 /* confdefs.h. */
6894 _ACEOF
6895 cat confdefs.h >>conftest.$ac_ext
6896 cat >>conftest.$ac_ext <<_ACEOF
6897 /* end confdefs.h. */
6898 $ac_includes_default
6900 main ()
6902 /* This call has the arguments reversed.
6903 A reversed system may check and see that the address of buf
6904 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
6905 char buf;
6906 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
6907 return 1;
6908 putchar ('\r');
6909 return 0; /* Non-reversed systems SEGV here. */
6911 return 0;
6913 _ACEOF
6914 rm -f conftest$ac_exeext
6915 if { (ac_try="$ac_link"
6916 case "(($ac_try" in
6917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6918 *) ac_try_echo=$ac_try;;
6919 esac
6920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6921 (eval "$ac_link") 2>&5
6922 ac_status=$?
6923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6925 { (case "(($ac_try" in
6926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6927 *) ac_try_echo=$ac_try;;
6928 esac
6929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6930 (eval "$ac_try") 2>&5
6931 ac_status=$?
6932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933 (exit $ac_status); }; }; then
6934 ac_cv_func_setvbuf_reversed=yes
6935 else
6936 echo "$as_me: program exited with status $ac_status" >&5
6937 echo "$as_me: failed program was:" >&5
6938 sed 's/^/| /' conftest.$ac_ext >&5
6941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6945 ac_cv_func_setvbuf_reversed=yes
6946 else
6947 echo "$as_me: failed program was:" >&5
6948 sed 's/^/| /' conftest.$ac_ext >&5
6953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6954 conftest$ac_exeext conftest.$ac_ext
6955 else
6956 echo "$as_me: failed program was:" >&5
6957 sed 's/^/| /' conftest.$ac_ext >&5
6962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6963 conftest$ac_exeext conftest.$ac_ext
6965 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
6966 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
6967 if test $ac_cv_func_setvbuf_reversed = yes; then
6969 cat >>confdefs.h <<\_ACEOF
6970 #define SETVBUF_REVERSED 1
6971 _ACEOF
6975 { echo "$as_me:$LINENO: checking whether client should be built" >&5
6976 echo $ECHO_N "checking whether client should be built... $ECHO_C" >&6; }
6977 case "`uname`" in
6978 *Linux*) sbin_PROGRAMS=nbd-client
6979 man8_MANS=nbd-client.8
6980 { echo "$as_me:$LINENO: result: yes" >&5
6981 echo "${ECHO_T}yes" >&6; }
6983 *) { echo "$as_me:$LINENO: result: no" >&5
6984 echo "${ECHO_T}no" >&6; } ;;
6985 esac
6986 { echo "$as_me:$LINENO: checking where to find a working nbd.h" >&5
6987 echo $ECHO_N "checking where to find a working nbd.h... $ECHO_C" >&6; }
6988 cat >conftest.$ac_ext <<_ACEOF
6989 /* confdefs.h. */
6990 _ACEOF
6991 cat confdefs.h >>conftest.$ac_ext
6992 cat >>conftest.$ac_ext <<_ACEOF
6993 /* end confdefs.h. */
6994 #define u32 int
6995 #define u64 int
6996 #define __be32 int
6997 #define __be64 int
6998 #include "nbd.h"
7001 main ()
7003 int foo=NBD_CMD_DISC
7005 return 0;
7007 _ACEOF
7008 rm -f conftest.$ac_objext
7009 if { (ac_try="$ac_compile"
7010 case "(($ac_try" in
7011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7012 *) ac_try_echo=$ac_try;;
7013 esac
7014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7015 (eval "$ac_compile") 2>conftest.er1
7016 ac_status=$?
7017 grep -v '^ *+' conftest.er1 >conftest.err
7018 rm -f conftest.er1
7019 cat conftest.err >&5
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); } && {
7022 test -z "$ac_c_werror_flag" ||
7023 test ! -s conftest.err
7024 } && test -s conftest.$ac_objext; then
7026 cat >>confdefs.h <<\_ACEOF
7027 #define NBD_H_LOCAL 1
7028 _ACEOF
7030 NBD_H='"nbd.h"'
7031 else
7032 echo "$as_me: failed program was:" >&5
7033 sed 's/^/| /' conftest.$ac_ext >&5
7035 cat >conftest.$ac_ext <<_ACEOF
7036 /* confdefs.h. */
7037 _ACEOF
7038 cat confdefs.h >>conftest.$ac_ext
7039 cat >>conftest.$ac_ext <<_ACEOF
7040 /* end confdefs.h. */
7041 #define u32 int
7042 #define u64 int
7043 #define __be32 int
7044 #define __be64 int
7045 #include <linux/nbd.h>
7048 main ()
7050 int foo=NBD_CMD_DISC
7052 return 0;
7054 _ACEOF
7055 rm -f conftest.$ac_objext
7056 if { (ac_try="$ac_compile"
7057 case "(($ac_try" in
7058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7059 *) ac_try_echo=$ac_try;;
7060 esac
7061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7062 (eval "$ac_compile") 2>conftest.er1
7063 ac_status=$?
7064 grep -v '^ *+' conftest.er1 >conftest.err
7065 rm -f conftest.er1
7066 cat conftest.err >&5
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); } && {
7069 test -z "$ac_c_werror_flag" ||
7070 test ! -s conftest.err
7071 } && test -s conftest.$ac_objext; then
7073 cat >>confdefs.h <<\_ACEOF
7074 #define NBD_H_LINUX 1
7075 _ACEOF
7076 NBD_H='<linux/nbd.h>'
7077 else
7078 echo "$as_me: failed program was:" >&5
7079 sed 's/^/| /' conftest.$ac_ext >&5
7081 { { echo "$as_me:$LINENO: error: Could not find an nbd.h from kernel 2.6 or above." >&5
7082 echo "$as_me: error: Could not find an nbd.h from kernel 2.6 or above." >&2;}
7083 { (exit 1); exit 1; }; }
7087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7092 if test -f nbd.h
7093 then
7094 if test $NBD_H = '<linux/nbd.h>'
7095 then
7096 { 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
7097 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;}
7100 { echo "$as_me:$LINENO: result: $NBD_H" >&5
7101 echo "${ECHO_T}$NBD_H" >&6; }
7103 for ac_header in sys/mount.h
7105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7106 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7109 echo $ECHO_N "(cached) $ECHO_C" >&6
7110 else
7111 cat >conftest.$ac_ext <<_ACEOF
7112 /* confdefs.h. */
7113 _ACEOF
7114 cat confdefs.h >>conftest.$ac_ext
7115 cat >>conftest.$ac_ext <<_ACEOF
7116 /* end confdefs.h. */
7117 #include <sys/param.h>
7120 #include <$ac_header>
7121 _ACEOF
7122 rm -f conftest.$ac_objext
7123 if { (ac_try="$ac_compile"
7124 case "(($ac_try" in
7125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7126 *) ac_try_echo=$ac_try;;
7127 esac
7128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7129 (eval "$ac_compile") 2>conftest.er1
7130 ac_status=$?
7131 grep -v '^ *+' conftest.er1 >conftest.err
7132 rm -f conftest.er1
7133 cat conftest.err >&5
7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); } && {
7136 test -z "$ac_c_werror_flag" ||
7137 test ! -s conftest.err
7138 } && test -s conftest.$ac_objext; then
7139 eval "$as_ac_Header=yes"
7140 else
7141 echo "$as_me: failed program was:" >&5
7142 sed 's/^/| /' conftest.$ac_ext >&5
7144 eval "$as_ac_Header=no"
7147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7149 ac_res=`eval echo '${'$as_ac_Header'}'`
7150 { echo "$as_me:$LINENO: result: $ac_res" >&5
7151 echo "${ECHO_T}$ac_res" >&6; }
7152 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7153 cat >>confdefs.h <<_ACEOF
7154 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7155 _ACEOF
7159 done
7168 for ac_header in arpa/inet.h fcntl.h netdb.h netinet/in.h sys/ioctl.h sys/socket.h syslog.h
7170 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7172 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7175 echo $ECHO_N "(cached) $ECHO_C" >&6
7177 ac_res=`eval echo '${'$as_ac_Header'}'`
7178 { echo "$as_me:$LINENO: result: $ac_res" >&5
7179 echo "${ECHO_T}$ac_res" >&6; }
7180 else
7181 # Is the header compilable?
7182 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7183 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7184 cat >conftest.$ac_ext <<_ACEOF
7185 /* confdefs.h. */
7186 _ACEOF
7187 cat confdefs.h >>conftest.$ac_ext
7188 cat >>conftest.$ac_ext <<_ACEOF
7189 /* end confdefs.h. */
7190 $ac_includes_default
7191 #include <$ac_header>
7192 _ACEOF
7193 rm -f conftest.$ac_objext
7194 if { (ac_try="$ac_compile"
7195 case "(($ac_try" in
7196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7197 *) ac_try_echo=$ac_try;;
7198 esac
7199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7200 (eval "$ac_compile") 2>conftest.er1
7201 ac_status=$?
7202 grep -v '^ *+' conftest.er1 >conftest.err
7203 rm -f conftest.er1
7204 cat conftest.err >&5
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); } && {
7207 test -z "$ac_c_werror_flag" ||
7208 test ! -s conftest.err
7209 } && test -s conftest.$ac_objext; then
7210 ac_header_compiler=yes
7211 else
7212 echo "$as_me: failed program was:" >&5
7213 sed 's/^/| /' conftest.$ac_ext >&5
7215 ac_header_compiler=no
7218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7219 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7220 echo "${ECHO_T}$ac_header_compiler" >&6; }
7222 # Is the header present?
7223 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7224 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7225 cat >conftest.$ac_ext <<_ACEOF
7226 /* confdefs.h. */
7227 _ACEOF
7228 cat confdefs.h >>conftest.$ac_ext
7229 cat >>conftest.$ac_ext <<_ACEOF
7230 /* end confdefs.h. */
7231 #include <$ac_header>
7232 _ACEOF
7233 if { (ac_try="$ac_cpp conftest.$ac_ext"
7234 case "(($ac_try" in
7235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7236 *) ac_try_echo=$ac_try;;
7237 esac
7238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7240 ac_status=$?
7241 grep -v '^ *+' conftest.er1 >conftest.err
7242 rm -f conftest.er1
7243 cat conftest.err >&5
7244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245 (exit $ac_status); } >/dev/null && {
7246 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7247 test ! -s conftest.err
7248 }; then
7249 ac_header_preproc=yes
7250 else
7251 echo "$as_me: failed program was:" >&5
7252 sed 's/^/| /' conftest.$ac_ext >&5
7254 ac_header_preproc=no
7257 rm -f conftest.err conftest.$ac_ext
7258 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7259 echo "${ECHO_T}$ac_header_preproc" >&6; }
7261 # So? What about this header?
7262 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7263 yes:no: )
7264 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7265 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7267 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7268 ac_header_preproc=yes
7270 no:yes:* )
7271 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7272 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7273 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7274 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7275 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7276 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7277 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7278 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7280 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7281 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7282 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7283 ( cat <<\_ASBOX
7284 ## -------------------------------- ##
7285 ## Report this to wouter@debian.org ##
7286 ## -------------------------------- ##
7287 _ASBOX
7288 ) | sed "s/^/$as_me: WARNING: /" >&2
7290 esac
7291 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7294 echo $ECHO_N "(cached) $ECHO_C" >&6
7295 else
7296 eval "$as_ac_Header=\$ac_header_preproc"
7298 ac_res=`eval echo '${'$as_ac_Header'}'`
7299 { echo "$as_me:$LINENO: result: $ac_res" >&5
7300 echo "${ECHO_T}$ac_res" >&6; }
7303 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7304 cat >>confdefs.h <<_ACEOF
7305 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7306 _ACEOF
7310 done
7312 # Check whether --enable-glibtest was given.
7313 if test "${enable_glibtest+set}" = set; then
7314 enableval=$enable_glibtest;
7315 else
7316 enable_glibtest=yes
7320 pkg_config_args=glib-2.0
7321 for module in .
7323 case "$module" in
7324 gmodule)
7325 pkg_config_args="$pkg_config_args gmodule-2.0"
7327 gmodule-no-export)
7328 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
7330 gobject)
7331 pkg_config_args="$pkg_config_args gobject-2.0"
7333 gthread)
7334 pkg_config_args="$pkg_config_args gthread-2.0"
7336 esac
7337 done
7339 # Extract the first word of "pkg-config", so it can be a program name with args.
7340 set dummy pkg-config; ac_word=$2
7341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7343 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7344 echo $ECHO_N "(cached) $ECHO_C" >&6
7345 else
7346 case $PKG_CONFIG in
7347 [\\/]* | ?:[\\/]*)
7348 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7352 for as_dir in $PATH
7354 IFS=$as_save_IFS
7355 test -z "$as_dir" && as_dir=.
7356 for ac_exec_ext in '' $ac_executable_extensions; do
7357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7358 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7360 break 2
7362 done
7363 done
7364 IFS=$as_save_IFS
7366 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7368 esac
7370 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7371 if test -n "$PKG_CONFIG"; then
7372 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7373 echo "${ECHO_T}$PKG_CONFIG" >&6; }
7374 else
7375 { echo "$as_me:$LINENO: result: no" >&5
7376 echo "${ECHO_T}no" >&6; }
7381 no_glib=""
7383 if test x$PKG_CONFIG != xno ; then
7384 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
7386 else
7387 echo *** pkg-config too old; version 0.7 or better required.
7388 no_glib=yes
7389 PKG_CONFIG=no
7391 else
7392 no_glib=yes
7395 min_glib_version=2.2.0
7396 { echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5
7397 echo $ECHO_N "checking for GLIB - version >= $min_glib_version... $ECHO_C" >&6; }
7399 if test x$PKG_CONFIG != xno ; then
7400 ## don't try to run the test against uninstalled libtool libs
7401 if $PKG_CONFIG --uninstalled $pkg_config_args; then
7402 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
7403 enable_glibtest=no
7406 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
7408 else
7409 no_glib=yes
7413 if test x"$no_glib" = x ; then
7414 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
7415 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
7416 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
7418 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
7419 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
7420 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
7421 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7422 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
7423 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7424 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
7425 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7426 if test "x$enable_glibtest" = "xyes" ; then
7427 ac_save_CFLAGS="$CFLAGS"
7428 ac_save_LIBS="$LIBS"
7429 CFLAGS="$CFLAGS $GLIB_CFLAGS"
7430 LIBS="$GLIB_LIBS $LIBS"
7431 rm -f conf.glibtest
7432 if test "$cross_compiling" = yes; then
7433 echo $ac_n "cross compiling; assumed OK... $ac_c"
7434 else
7435 cat >conftest.$ac_ext <<_ACEOF
7436 /* confdefs.h. */
7437 _ACEOF
7438 cat confdefs.h >>conftest.$ac_ext
7439 cat >>conftest.$ac_ext <<_ACEOF
7440 /* end confdefs.h. */
7442 #include <glib.h>
7443 #include <stdio.h>
7444 #include <stdlib.h>
7447 main ()
7449 int major, minor, micro;
7450 char *tmp_version;
7452 system ("touch conf.glibtest");
7454 /* HP/UX 9 (%@#!) writes to sscanf strings */
7455 tmp_version = g_strdup("$min_glib_version");
7456 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7457 printf("%s, bad version string\n", "$min_glib_version");
7458 exit(1);
7461 if ((glib_major_version != $glib_config_major_version) ||
7462 (glib_minor_version != $glib_config_minor_version) ||
7463 (glib_micro_version != $glib_config_micro_version))
7465 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
7466 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
7467 glib_major_version, glib_minor_version, glib_micro_version);
7468 printf ("*** was found! If pkg-config was correct, then it is best\n");
7469 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
7470 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
7471 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
7472 printf("*** required on your system.\n");
7473 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
7474 printf("*** to point to the correct configuration files\n");
7476 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
7477 (glib_minor_version != GLIB_MINOR_VERSION) ||
7478 (glib_micro_version != GLIB_MICRO_VERSION))
7480 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
7481 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
7482 printf("*** library (version %d.%d.%d)\n",
7483 glib_major_version, glib_minor_version, glib_micro_version);
7485 else
7487 if ((glib_major_version > major) ||
7488 ((glib_major_version == major) && (glib_minor_version > minor)) ||
7489 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
7491 return 0;
7493 else
7495 printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
7496 glib_major_version, glib_minor_version, glib_micro_version);
7497 printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
7498 major, minor, micro);
7499 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
7500 printf("***\n");
7501 printf("*** If you have already installed a sufficiently new version, this error\n");
7502 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
7503 printf("*** being found. The easiest way to fix this is to remove the old version\n");
7504 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
7505 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
7506 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
7507 printf("*** so that the correct libraries are found at run-time))\n");
7510 return 1;
7513 _ACEOF
7514 rm -f conftest$ac_exeext
7515 if { (ac_try="$ac_link"
7516 case "(($ac_try" in
7517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7518 *) ac_try_echo=$ac_try;;
7519 esac
7520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7521 (eval "$ac_link") 2>&5
7522 ac_status=$?
7523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7525 { (case "(($ac_try" in
7526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7527 *) ac_try_echo=$ac_try;;
7528 esac
7529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7530 (eval "$ac_try") 2>&5
7531 ac_status=$?
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); }; }; then
7535 else
7536 echo "$as_me: program exited with status $ac_status" >&5
7537 echo "$as_me: failed program was:" >&5
7538 sed 's/^/| /' conftest.$ac_ext >&5
7540 ( exit $ac_status )
7541 no_glib=yes
7543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7547 CFLAGS="$ac_save_CFLAGS"
7548 LIBS="$ac_save_LIBS"
7551 if test "x$no_glib" = x ; then
7552 { echo "$as_me:$LINENO: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
7553 echo "${ECHO_T}yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
7554 HAVE_GLIB=yes
7555 else
7556 { echo "$as_me:$LINENO: result: no" >&5
7557 echo "${ECHO_T}no" >&6; }
7558 if test "$PKG_CONFIG" = "no" ; then
7559 echo "*** A new enough version of pkg-config was not found."
7560 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
7561 else
7562 if test -f conf.glibtest ; then
7564 else
7565 echo "*** Could not run GLIB test program, checking why..."
7566 ac_save_CFLAGS="$CFLAGS"
7567 ac_save_LIBS="$LIBS"
7568 CFLAGS="$CFLAGS $GLIB_CFLAGS"
7569 LIBS="$LIBS $GLIB_LIBS"
7570 cat >conftest.$ac_ext <<_ACEOF
7571 /* confdefs.h. */
7572 _ACEOF
7573 cat confdefs.h >>conftest.$ac_ext
7574 cat >>conftest.$ac_ext <<_ACEOF
7575 /* end confdefs.h. */
7577 #include <glib.h>
7578 #include <stdio.h>
7581 main ()
7583 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
7585 return 0;
7587 _ACEOF
7588 rm -f conftest.$ac_objext conftest$ac_exeext
7589 if { (ac_try="$ac_link"
7590 case "(($ac_try" in
7591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7592 *) ac_try_echo=$ac_try;;
7593 esac
7594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7595 (eval "$ac_link") 2>conftest.er1
7596 ac_status=$?
7597 grep -v '^ *+' conftest.er1 >conftest.err
7598 rm -f conftest.er1
7599 cat conftest.err >&5
7600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601 (exit $ac_status); } && {
7602 test -z "$ac_c_werror_flag" ||
7603 test ! -s conftest.err
7604 } && test -s conftest$ac_exeext &&
7605 $as_test_x conftest$ac_exeext; then
7606 echo "*** The test program compiled, but did not run. This usually means"
7607 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
7608 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
7609 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7610 echo "*** to the installed location Also, make sure you have run ldconfig if that"
7611 echo "*** is required on your system"
7612 echo "***"
7613 echo "*** If you have an old version installed, it is best to remove it, although"
7614 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7615 else
7616 echo "$as_me: failed program was:" >&5
7617 sed 's/^/| /' conftest.$ac_ext >&5
7619 echo "*** The test program failed to compile or link. See the file config.log for the"
7620 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
7623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7624 conftest$ac_exeext conftest.$ac_ext
7625 CFLAGS="$ac_save_CFLAGS"
7626 LIBS="$ac_save_LIBS"
7629 GLIB_CFLAGS=""
7630 GLIB_LIBS=""
7631 GLIB_GENMARSHAL=""
7632 GOBJECT_QUERY=""
7633 GLIB_MKENUMS=""
7634 { { echo "$as_me:$LINENO: error: Missing glib" >&5
7635 echo "$as_me: error: Missing glib" >&2;}
7636 { (exit 1); exit 1; }; }
7643 rm -f conf.glibtest
7645 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7646 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7647 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7648 echo $ECHO_N "(cached) $ECHO_C" >&6
7649 else
7650 cat >conftest.$ac_ext <<_ACEOF
7651 /* confdefs.h. */
7652 _ACEOF
7653 cat confdefs.h >>conftest.$ac_ext
7654 cat >>conftest.$ac_ext <<_ACEOF
7655 /* end confdefs.h. */
7656 #include <sys/types.h>
7657 #include <sys/wait.h>
7658 #ifndef WEXITSTATUS
7659 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7660 #endif
7661 #ifndef WIFEXITED
7662 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7663 #endif
7666 main ()
7668 int s;
7669 wait (&s);
7670 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7672 return 0;
7674 _ACEOF
7675 rm -f conftest.$ac_objext
7676 if { (ac_try="$ac_compile"
7677 case "(($ac_try" in
7678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7679 *) ac_try_echo=$ac_try;;
7680 esac
7681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7682 (eval "$ac_compile") 2>conftest.er1
7683 ac_status=$?
7684 grep -v '^ *+' conftest.er1 >conftest.err
7685 rm -f conftest.er1
7686 cat conftest.err >&5
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); } && {
7689 test -z "$ac_c_werror_flag" ||
7690 test ! -s conftest.err
7691 } && test -s conftest.$ac_objext; then
7692 ac_cv_header_sys_wait_h=yes
7693 else
7694 echo "$as_me: failed program was:" >&5
7695 sed 's/^/| /' conftest.$ac_ext >&5
7697 ac_cv_header_sys_wait_h=no
7700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7702 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7703 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7704 if test $ac_cv_header_sys_wait_h = yes; then
7706 cat >>confdefs.h <<\_ACEOF
7707 #define HAVE_SYS_WAIT_H 1
7708 _ACEOF
7712 { echo "$as_me:$LINENO: checking for off_t" >&5
7713 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
7714 if test "${ac_cv_type_off_t+set}" = set; then
7715 echo $ECHO_N "(cached) $ECHO_C" >&6
7716 else
7717 cat >conftest.$ac_ext <<_ACEOF
7718 /* confdefs.h. */
7719 _ACEOF
7720 cat confdefs.h >>conftest.$ac_ext
7721 cat >>conftest.$ac_ext <<_ACEOF
7722 /* end confdefs.h. */
7723 $ac_includes_default
7724 typedef off_t ac__type_new_;
7726 main ()
7728 if ((ac__type_new_ *) 0)
7729 return 0;
7730 if (sizeof (ac__type_new_))
7731 return 0;
7733 return 0;
7735 _ACEOF
7736 rm -f conftest.$ac_objext
7737 if { (ac_try="$ac_compile"
7738 case "(($ac_try" in
7739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7740 *) ac_try_echo=$ac_try;;
7741 esac
7742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7743 (eval "$ac_compile") 2>conftest.er1
7744 ac_status=$?
7745 grep -v '^ *+' conftest.er1 >conftest.err
7746 rm -f conftest.er1
7747 cat conftest.err >&5
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); } && {
7750 test -z "$ac_c_werror_flag" ||
7751 test ! -s conftest.err
7752 } && test -s conftest.$ac_objext; then
7753 ac_cv_type_off_t=yes
7754 else
7755 echo "$as_me: failed program was:" >&5
7756 sed 's/^/| /' conftest.$ac_ext >&5
7758 ac_cv_type_off_t=no
7761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7763 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7764 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
7765 if test $ac_cv_type_off_t = yes; then
7767 else
7769 cat >>confdefs.h <<_ACEOF
7770 #define off_t long int
7771 _ACEOF
7775 { echo "$as_me:$LINENO: checking for pid_t" >&5
7776 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
7777 if test "${ac_cv_type_pid_t+set}" = set; then
7778 echo $ECHO_N "(cached) $ECHO_C" >&6
7779 else
7780 cat >conftest.$ac_ext <<_ACEOF
7781 /* confdefs.h. */
7782 _ACEOF
7783 cat confdefs.h >>conftest.$ac_ext
7784 cat >>conftest.$ac_ext <<_ACEOF
7785 /* end confdefs.h. */
7786 $ac_includes_default
7787 typedef pid_t ac__type_new_;
7789 main ()
7791 if ((ac__type_new_ *) 0)
7792 return 0;
7793 if (sizeof (ac__type_new_))
7794 return 0;
7796 return 0;
7798 _ACEOF
7799 rm -f conftest.$ac_objext
7800 if { (ac_try="$ac_compile"
7801 case "(($ac_try" in
7802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7803 *) ac_try_echo=$ac_try;;
7804 esac
7805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7806 (eval "$ac_compile") 2>conftest.er1
7807 ac_status=$?
7808 grep -v '^ *+' conftest.er1 >conftest.err
7809 rm -f conftest.er1
7810 cat conftest.err >&5
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 (exit $ac_status); } && {
7813 test -z "$ac_c_werror_flag" ||
7814 test ! -s conftest.err
7815 } && test -s conftest.$ac_objext; then
7816 ac_cv_type_pid_t=yes
7817 else
7818 echo "$as_me: failed program was:" >&5
7819 sed 's/^/| /' conftest.$ac_ext >&5
7821 ac_cv_type_pid_t=no
7824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7826 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7827 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
7828 if test $ac_cv_type_pid_t = yes; then
7830 else
7832 cat >>confdefs.h <<_ACEOF
7833 #define pid_t int
7834 _ACEOF
7840 ac_config_headers="$ac_config_headers config.h"
7842 ac_config_files="$ac_config_files Makefile Doxyfile"
7844 cat >confcache <<\_ACEOF
7845 # This file is a shell script that caches the results of configure
7846 # tests run on this system so they can be shared between configure
7847 # scripts and configure runs, see configure's option --config-cache.
7848 # It is not useful on other systems. If it contains results you don't
7849 # want to keep, you may remove or edit it.
7851 # config.status only pays attention to the cache file if you give it
7852 # the --recheck option to rerun configure.
7854 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7855 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7856 # following values.
7858 _ACEOF
7860 # The following way of writing the cache mishandles newlines in values,
7861 # but we know of no workaround that is simple, portable, and efficient.
7862 # So, we kill variables containing newlines.
7863 # Ultrix sh set writes to stderr and can't be redirected directly,
7864 # and sets the high bit in the cache file unless we assign to the vars.
7866 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7867 eval ac_val=\$$ac_var
7868 case $ac_val in #(
7869 *${as_nl}*)
7870 case $ac_var in #(
7871 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
7872 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7873 esac
7874 case $ac_var in #(
7875 _ | IFS | as_nl) ;; #(
7876 *) $as_unset $ac_var ;;
7877 esac ;;
7878 esac
7879 done
7881 (set) 2>&1 |
7882 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7883 *${as_nl}ac_space=\ *)
7884 # `set' does not quote correctly, so add quotes (double-quote
7885 # substitution turns \\\\ into \\, and sed turns \\ into \).
7886 sed -n \
7887 "s/'/'\\\\''/g;
7888 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7889 ;; #(
7891 # `set' quotes correctly as required by POSIX, so do not add quotes.
7892 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7894 esac |
7895 sort
7897 sed '
7898 /^ac_cv_env_/b end
7899 t clear
7900 :clear
7901 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7902 t end
7903 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7904 :end' >>confcache
7905 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7906 if test -w "$cache_file"; then
7907 test "x$cache_file" != "x/dev/null" &&
7908 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
7909 echo "$as_me: updating cache $cache_file" >&6;}
7910 cat confcache >$cache_file
7911 else
7912 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
7913 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7916 rm -f confcache
7918 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7919 # Let make expand exec_prefix.
7920 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7922 DEFS=-DHAVE_CONFIG_H
7924 ac_libobjs=
7925 ac_ltlibobjs=
7926 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7927 # 1. Remove the extension, and $U if already installed.
7928 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7929 ac_i=`echo "$ac_i" | sed "$ac_script"`
7930 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7931 # will be set to the directory where LIBOBJS objects are built.
7932 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7933 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
7934 done
7935 LIBOBJS=$ac_libobjs
7937 LTLIBOBJS=$ac_ltlibobjs
7940 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7941 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
7942 Usually this means the macro was only invoked conditionally." >&5
7943 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
7944 Usually this means the macro was only invoked conditionally." >&2;}
7945 { (exit 1); exit 1; }; }
7947 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7948 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
7949 Usually this means the macro was only invoked conditionally." >&5
7950 echo "$as_me: error: conditional \"AMDEP\" was never defined.
7951 Usually this means the macro was only invoked conditionally." >&2;}
7952 { (exit 1); exit 1; }; }
7954 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7955 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
7956 Usually this means the macro was only invoked conditionally." >&5
7957 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
7958 Usually this means the macro was only invoked conditionally." >&2;}
7959 { (exit 1); exit 1; }; }
7962 : ${CONFIG_STATUS=./config.status}
7963 ac_clean_files_save=$ac_clean_files
7964 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7965 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7966 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7967 cat >$CONFIG_STATUS <<_ACEOF
7968 #! $SHELL
7969 # Generated by $as_me.
7970 # Run this file to recreate the current configuration.
7971 # Compiler output produced by configure, useful for debugging
7972 # configure, is in config.log if it exists.
7974 debug=false
7975 ac_cs_recheck=false
7976 ac_cs_silent=false
7977 SHELL=\${CONFIG_SHELL-$SHELL}
7978 _ACEOF
7980 cat >>$CONFIG_STATUS <<\_ACEOF
7981 ## --------------------- ##
7982 ## M4sh Initialization. ##
7983 ## --------------------- ##
7985 # Be more Bourne compatible
7986 DUALCASE=1; export DUALCASE # for MKS sh
7987 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7988 emulate sh
7989 NULLCMD=:
7990 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7991 # is contrary to our usage. Disable this feature.
7992 alias -g '${1+"$@"}'='"$@"'
7993 setopt NO_GLOB_SUBST
7994 else
7995 case `(set -o) 2>/dev/null` in
7996 *posix*) set -o posix ;;
7997 esac
8004 # PATH needs CR
8005 # Avoid depending upon Character Ranges.
8006 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8007 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8008 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8009 as_cr_digits='0123456789'
8010 as_cr_alnum=$as_cr_Letters$as_cr_digits
8012 # The user is always right.
8013 if test "${PATH_SEPARATOR+set}" != set; then
8014 echo "#! /bin/sh" >conf$$.sh
8015 echo "exit 0" >>conf$$.sh
8016 chmod +x conf$$.sh
8017 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8018 PATH_SEPARATOR=';'
8019 else
8020 PATH_SEPARATOR=:
8022 rm -f conf$$.sh
8025 # Support unset when possible.
8026 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8027 as_unset=unset
8028 else
8029 as_unset=false
8033 # IFS
8034 # We need space, tab and new line, in precisely that order. Quoting is
8035 # there to prevent editors from complaining about space-tab.
8036 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8037 # splitting by setting IFS to empty value.)
8038 as_nl='
8040 IFS=" "" $as_nl"
8042 # Find who we are. Look in the path if we contain no directory separator.
8043 case $0 in
8044 *[\\/]* ) as_myself=$0 ;;
8045 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8046 for as_dir in $PATH
8048 IFS=$as_save_IFS
8049 test -z "$as_dir" && as_dir=.
8050 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8051 done
8052 IFS=$as_save_IFS
8055 esac
8056 # We did not find ourselves, most probably we were run as `sh COMMAND'
8057 # in which case we are not to be found in the path.
8058 if test "x$as_myself" = x; then
8059 as_myself=$0
8061 if test ! -f "$as_myself"; then
8062 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8063 { (exit 1); exit 1; }
8066 # Work around bugs in pre-3.0 UWIN ksh.
8067 for as_var in ENV MAIL MAILPATH
8068 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8069 done
8070 PS1='$ '
8071 PS2='> '
8072 PS4='+ '
8074 # NLS nuisances.
8075 for as_var in \
8076 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8077 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8078 LC_TELEPHONE LC_TIME
8080 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8081 eval $as_var=C; export $as_var
8082 else
8083 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8085 done
8087 # Required to use basename.
8088 if expr a : '\(a\)' >/dev/null 2>&1 &&
8089 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8090 as_expr=expr
8091 else
8092 as_expr=false
8095 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8096 as_basename=basename
8097 else
8098 as_basename=false
8102 # Name of the executable.
8103 as_me=`$as_basename -- "$0" ||
8104 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8105 X"$0" : 'X\(//\)$' \| \
8106 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8107 echo X/"$0" |
8108 sed '/^.*\/\([^/][^/]*\)\/*$/{
8109 s//\1/
8112 /^X\/\(\/\/\)$/{
8113 s//\1/
8116 /^X\/\(\/\).*/{
8117 s//\1/
8120 s/.*/./; q'`
8122 # CDPATH.
8123 $as_unset CDPATH
8127 as_lineno_1=$LINENO
8128 as_lineno_2=$LINENO
8129 test "x$as_lineno_1" != "x$as_lineno_2" &&
8130 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
8132 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8133 # uniformly replaced by the line number. The first 'sed' inserts a
8134 # line-number line after each line using $LINENO; the second 'sed'
8135 # does the real work. The second script uses 'N' to pair each
8136 # line-number line with the line containing $LINENO, and appends
8137 # trailing '-' during substitution so that $LINENO is not a special
8138 # case at line end.
8139 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8140 # scripts with optimization help from Paolo Bonzini. Blame Lee
8141 # E. McMahon (1931-1989) for sed's syntax. :-)
8142 sed -n '
8144 /[$]LINENO/=
8145 ' <$as_myself |
8146 sed '
8147 s/[$]LINENO.*/&-/
8148 t lineno
8150 :lineno
8152 :loop
8153 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
8154 t loop
8155 s/-\n.*//
8156 ' >$as_me.lineno &&
8157 chmod +x "$as_me.lineno" ||
8158 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
8159 { (exit 1); exit 1; }; }
8161 # Don't try to exec as it changes $[0], causing all sort of problems
8162 # (the dirname of $[0] is not the place where we might find the
8163 # original and so on. Autoconf is especially sensitive to this).
8164 . "./$as_me.lineno"
8165 # Exit status is that of the last command.
8166 exit
8170 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8171 as_dirname=dirname
8172 else
8173 as_dirname=false
8176 ECHO_C= ECHO_N= ECHO_T=
8177 case `echo -n x` in
8178 -n*)
8179 case `echo 'x\c'` in
8180 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8181 *) ECHO_C='\c';;
8182 esac;;
8184 ECHO_N='-n';;
8185 esac
8187 if expr a : '\(a\)' >/dev/null 2>&1 &&
8188 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8189 as_expr=expr
8190 else
8191 as_expr=false
8194 rm -f conf$$ conf$$.exe conf$$.file
8195 if test -d conf$$.dir; then
8196 rm -f conf$$.dir/conf$$.file
8197 else
8198 rm -f conf$$.dir
8199 mkdir conf$$.dir
8201 echo >conf$$.file
8202 if ln -s conf$$.file conf$$ 2>/dev/null; then
8203 as_ln_s='ln -s'
8204 # ... but there are two gotchas:
8205 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8206 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8207 # In both cases, we have to default to `cp -p'.
8208 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8209 as_ln_s='cp -p'
8210 elif ln conf$$.file conf$$ 2>/dev/null; then
8211 as_ln_s=ln
8212 else
8213 as_ln_s='cp -p'
8215 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8216 rmdir conf$$.dir 2>/dev/null
8218 if mkdir -p . 2>/dev/null; then
8219 as_mkdir_p=:
8220 else
8221 test -d ./-p && rmdir ./-p
8222 as_mkdir_p=false
8225 if test -x / >/dev/null 2>&1; then
8226 as_test_x='test -x'
8227 else
8228 if ls -dL / >/dev/null 2>&1; then
8229 as_ls_L_option=L
8230 else
8231 as_ls_L_option=
8233 as_test_x='
8234 eval sh -c '\''
8235 if test -d "$1"; then
8236 test -d "$1/.";
8237 else
8238 case $1 in
8239 -*)set "./$1";;
8240 esac;
8241 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
8242 ???[sx]*):;;*)false;;esac;fi
8243 '\'' sh
8246 as_executable_p=$as_test_x
8248 # Sed expression to map a string onto a valid CPP name.
8249 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8251 # Sed expression to map a string onto a valid variable name.
8252 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8255 exec 6>&1
8257 # Save the log message, to keep $[0] and so on meaningful, and to
8258 # report actual input values of CONFIG_FILES etc. instead of their
8259 # values after options handling.
8260 ac_log="
8261 This file was extended by nbd $as_me 2.8.8, which was
8262 generated by GNU Autoconf 2.61. Invocation command line was
8264 CONFIG_FILES = $CONFIG_FILES
8265 CONFIG_HEADERS = $CONFIG_HEADERS
8266 CONFIG_LINKS = $CONFIG_LINKS
8267 CONFIG_COMMANDS = $CONFIG_COMMANDS
8268 $ $0 $@
8270 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8273 _ACEOF
8275 cat >>$CONFIG_STATUS <<_ACEOF
8276 # Files that config.status was made for.
8277 config_files="$ac_config_files"
8278 config_headers="$ac_config_headers"
8279 config_commands="$ac_config_commands"
8281 _ACEOF
8283 cat >>$CONFIG_STATUS <<\_ACEOF
8284 ac_cs_usage="\
8285 \`$as_me' instantiates files from templates according to the
8286 current configuration.
8288 Usage: $0 [OPTIONS] [FILE]...
8290 -h, --help print this help, then exit
8291 -V, --version print version number and configuration settings, then exit
8292 -q, --quiet do not print progress messages
8293 -d, --debug don't remove temporary files
8294 --recheck update $as_me by reconfiguring in the same conditions
8295 --file=FILE[:TEMPLATE]
8296 instantiate the configuration file FILE
8297 --header=FILE[:TEMPLATE]
8298 instantiate the configuration header FILE
8300 Configuration files:
8301 $config_files
8303 Configuration headers:
8304 $config_headers
8306 Configuration commands:
8307 $config_commands
8309 Report bugs to <bug-autoconf@gnu.org>."
8311 _ACEOF
8312 cat >>$CONFIG_STATUS <<_ACEOF
8313 ac_cs_version="\\
8314 nbd config.status 2.8.8
8315 configured by $0, generated by GNU Autoconf 2.61,
8316 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8318 Copyright (C) 2006 Free Software Foundation, Inc.
8319 This config.status script is free software; the Free Software Foundation
8320 gives unlimited permission to copy, distribute and modify it."
8322 ac_pwd='$ac_pwd'
8323 srcdir='$srcdir'
8324 INSTALL='$INSTALL'
8325 _ACEOF
8327 cat >>$CONFIG_STATUS <<\_ACEOF
8328 # If no file are specified by the user, then we need to provide default
8329 # value. By we need to know if files were specified by the user.
8330 ac_need_defaults=:
8331 while test $# != 0
8333 case $1 in
8334 --*=*)
8335 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8336 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8337 ac_shift=:
8340 ac_option=$1
8341 ac_optarg=$2
8342 ac_shift=shift
8344 esac
8346 case $ac_option in
8347 # Handling of the options.
8348 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8349 ac_cs_recheck=: ;;
8350 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8351 echo "$ac_cs_version"; exit ;;
8352 --debug | --debu | --deb | --de | --d | -d )
8353 debug=: ;;
8354 --file | --fil | --fi | --f )
8355 $ac_shift
8356 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8357 ac_need_defaults=false;;
8358 --header | --heade | --head | --hea )
8359 $ac_shift
8360 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8361 ac_need_defaults=false;;
8362 --he | --h)
8363 # Conflict between --help and --header
8364 { echo "$as_me: error: ambiguous option: $1
8365 Try \`$0 --help' for more information." >&2
8366 { (exit 1); exit 1; }; };;
8367 --help | --hel | -h )
8368 echo "$ac_cs_usage"; exit ;;
8369 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8370 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8371 ac_cs_silent=: ;;
8373 # This is an error.
8374 -*) { echo "$as_me: error: unrecognized option: $1
8375 Try \`$0 --help' for more information." >&2
8376 { (exit 1); exit 1; }; } ;;
8378 *) ac_config_targets="$ac_config_targets $1"
8379 ac_need_defaults=false ;;
8381 esac
8382 shift
8383 done
8385 ac_configure_extra_args=
8387 if $ac_cs_silent; then
8388 exec 6>/dev/null
8389 ac_configure_extra_args="$ac_configure_extra_args --silent"
8392 _ACEOF
8393 cat >>$CONFIG_STATUS <<_ACEOF
8394 if \$ac_cs_recheck; then
8395 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8396 CONFIG_SHELL=$SHELL
8397 export CONFIG_SHELL
8398 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8401 _ACEOF
8402 cat >>$CONFIG_STATUS <<\_ACEOF
8403 exec 5>>config.log
8405 echo
8406 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8407 ## Running $as_me. ##
8408 _ASBOX
8409 echo "$ac_log"
8410 } >&5
8412 _ACEOF
8413 cat >>$CONFIG_STATUS <<_ACEOF
8415 # INIT-COMMANDS
8417 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8419 _ACEOF
8421 cat >>$CONFIG_STATUS <<\_ACEOF
8423 # Handling of arguments.
8424 for ac_config_target in $ac_config_targets
8426 case $ac_config_target in
8427 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8428 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8429 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8430 "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
8432 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8433 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8434 { (exit 1); exit 1; }; };;
8435 esac
8436 done
8439 # If the user did not use the arguments to specify the items to instantiate,
8440 # then the envvar interface is used. Set only those that are not.
8441 # We use the long form for the default assignment because of an extremely
8442 # bizarre bug on SunOS 4.1.3.
8443 if $ac_need_defaults; then
8444 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8445 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8446 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8449 # Have a temporary directory for convenience. Make it in the build tree
8450 # simply because there is no reason against having it here, and in addition,
8451 # creating and moving files from /tmp can sometimes cause problems.
8452 # Hook for its removal unless debugging.
8453 # Note that there is a small window in which the directory will not be cleaned:
8454 # after its creation but before its name has been assigned to `$tmp'.
8455 $debug ||
8457 tmp=
8458 trap 'exit_status=$?
8459 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8461 trap '{ (exit 1); exit 1; }' 1 2 13 15
8463 # Create a (secure) tmp directory for tmp files.
8466 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8467 test -n "$tmp" && test -d "$tmp"
8468 } ||
8470 tmp=./conf$$-$RANDOM
8471 (umask 077 && mkdir "$tmp")
8472 } ||
8474 echo "$me: cannot create a temporary directory in ." >&2
8475 { (exit 1); exit 1; }
8479 # Set up the sed scripts for CONFIG_FILES section.
8482 # No need to generate the scripts if there are no CONFIG_FILES.
8483 # This happens for instance when ./config.status config.h
8484 if test -n "$CONFIG_FILES"; then
8486 _ACEOF
8490 ac_delim='%!_!# '
8491 for ac_last_try in false false false false false :; do
8492 cat >conf$$subs.sed <<_ACEOF
8493 SHELL!$SHELL$ac_delim
8494 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
8495 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
8496 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
8497 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
8498 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
8499 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
8500 exec_prefix!$exec_prefix$ac_delim
8501 prefix!$prefix$ac_delim
8502 program_transform_name!$program_transform_name$ac_delim
8503 bindir!$bindir$ac_delim
8504 sbindir!$sbindir$ac_delim
8505 libexecdir!$libexecdir$ac_delim
8506 datarootdir!$datarootdir$ac_delim
8507 datadir!$datadir$ac_delim
8508 sysconfdir!$sysconfdir$ac_delim
8509 sharedstatedir!$sharedstatedir$ac_delim
8510 localstatedir!$localstatedir$ac_delim
8511 includedir!$includedir$ac_delim
8512 oldincludedir!$oldincludedir$ac_delim
8513 docdir!$docdir$ac_delim
8514 infodir!$infodir$ac_delim
8515 htmldir!$htmldir$ac_delim
8516 dvidir!$dvidir$ac_delim
8517 pdfdir!$pdfdir$ac_delim
8518 psdir!$psdir$ac_delim
8519 libdir!$libdir$ac_delim
8520 localedir!$localedir$ac_delim
8521 mandir!$mandir$ac_delim
8522 DEFS!$DEFS$ac_delim
8523 ECHO_C!$ECHO_C$ac_delim
8524 ECHO_N!$ECHO_N$ac_delim
8525 ECHO_T!$ECHO_T$ac_delim
8526 LIBS!$LIBS$ac_delim
8527 build_alias!$build_alias$ac_delim
8528 host_alias!$host_alias$ac_delim
8529 target_alias!$target_alias$ac_delim
8530 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
8531 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
8532 INSTALL_DATA!$INSTALL_DATA$ac_delim
8533 CYGPATH_W!$CYGPATH_W$ac_delim
8534 PACKAGE!$PACKAGE$ac_delim
8535 VERSION!$VERSION$ac_delim
8536 ACLOCAL!$ACLOCAL$ac_delim
8537 AUTOCONF!$AUTOCONF$ac_delim
8538 AUTOMAKE!$AUTOMAKE$ac_delim
8539 AUTOHEADER!$AUTOHEADER$ac_delim
8540 MAKEINFO!$MAKEINFO$ac_delim
8541 install_sh!$install_sh$ac_delim
8542 STRIP!$STRIP$ac_delim
8543 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
8544 mkdir_p!$mkdir_p$ac_delim
8545 AWK!$AWK$ac_delim
8546 SET_MAKE!$SET_MAKE$ac_delim
8547 am__leading_dot!$am__leading_dot$ac_delim
8548 AMTAR!$AMTAR$ac_delim
8549 am__tar!$am__tar$ac_delim
8550 am__untar!$am__untar$ac_delim
8551 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
8552 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
8553 MAINT!$MAINT$ac_delim
8554 CC!$CC$ac_delim
8555 CFLAGS!$CFLAGS$ac_delim
8556 LDFLAGS!$LDFLAGS$ac_delim
8557 CPPFLAGS!$CPPFLAGS$ac_delim
8558 ac_ct_CC!$ac_ct_CC$ac_delim
8559 EXEEXT!$EXEEXT$ac_delim
8560 OBJEXT!$OBJEXT$ac_delim
8561 DEPDIR!$DEPDIR$ac_delim
8562 am__include!$am__include$ac_delim
8563 am__quote!$am__quote$ac_delim
8564 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
8565 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
8566 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
8567 CCDEPMODE!$CCDEPMODE$ac_delim
8568 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
8569 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
8570 CPP!$CPP$ac_delim
8571 GREP!$GREP$ac_delim
8572 EGREP!$EGREP$ac_delim
8573 PKG_CONFIG!$PKG_CONFIG$ac_delim
8574 GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
8575 GLIB_LIBS!$GLIB_LIBS$ac_delim
8576 GLIB_GENMARSHAL!$GLIB_GENMARSHAL$ac_delim
8577 GOBJECT_QUERY!$GOBJECT_QUERY$ac_delim
8578 GLIB_MKENUMS!$GLIB_MKENUMS$ac_delim
8579 sbin_PROGRAMS!$sbin_PROGRAMS$ac_delim
8580 man8_MANS!$man8_MANS$ac_delim
8581 LIBOBJS!$LIBOBJS$ac_delim
8582 LTLIBOBJS!$LTLIBOBJS$ac_delim
8583 _ACEOF
8585 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
8586 break
8587 elif $ac_last_try; then
8588 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8589 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8590 { (exit 1); exit 1; }; }
8591 else
8592 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8594 done
8596 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
8597 if test -n "$ac_eof"; then
8598 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
8599 ac_eof=`expr $ac_eof + 1`
8602 cat >>$CONFIG_STATUS <<_ACEOF
8603 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
8604 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
8605 _ACEOF
8606 sed '
8607 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
8608 s/^/s,@/; s/!/@,|#_!!_#|/
8611 s/'"$ac_delim"'$/,g/; t
8612 s/$/\\/; p
8613 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
8614 ' >>$CONFIG_STATUS <conf$$subs.sed
8615 rm -f conf$$subs.sed
8616 cat >>$CONFIG_STATUS <<_ACEOF
8617 :end
8618 s/|#_!!_#|//g
8619 CEOF$ac_eof
8620 _ACEOF
8623 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8624 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8625 # trailing colons and then remove the whole line if VPATH becomes empty
8626 # (actually we leave an empty line to preserve line numbers).
8627 if test "x$srcdir" = x.; then
8628 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8629 s/:*\$(srcdir):*/:/
8630 s/:*\${srcdir}:*/:/
8631 s/:*@srcdir@:*/:/
8632 s/^\([^=]*=[ ]*\):*/\1/
8633 s/:*$//
8634 s/^[^=]*=[ ]*$//
8638 cat >>$CONFIG_STATUS <<\_ACEOF
8639 fi # test -n "$CONFIG_FILES"
8642 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
8644 case $ac_tag in
8645 :[FHLC]) ac_mode=$ac_tag; continue;;
8646 esac
8647 case $ac_mode$ac_tag in
8648 :[FHL]*:*);;
8649 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
8650 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
8651 { (exit 1); exit 1; }; };;
8652 :[FH]-) ac_tag=-:-;;
8653 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8654 esac
8655 ac_save_IFS=$IFS
8656 IFS=:
8657 set x $ac_tag
8658 IFS=$ac_save_IFS
8659 shift
8660 ac_file=$1
8661 shift
8663 case $ac_mode in
8664 :L) ac_source=$1;;
8665 :[FH])
8666 ac_file_inputs=
8667 for ac_f
8669 case $ac_f in
8670 -) ac_f="$tmp/stdin";;
8671 *) # Look for the file first in the build tree, then in the source tree
8672 # (if the path is not absolute). The absolute path cannot be DOS-style,
8673 # because $ac_f cannot contain `:'.
8674 test -f "$ac_f" ||
8675 case $ac_f in
8676 [\\/$]*) false;;
8677 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8678 esac ||
8679 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
8680 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
8681 { (exit 1); exit 1; }; };;
8682 esac
8683 ac_file_inputs="$ac_file_inputs $ac_f"
8684 done
8686 # Let's still pretend it is `configure' which instantiates (i.e., don't
8687 # use $as_me), people would be surprised to read:
8688 # /* config.h. Generated by config.status. */
8689 configure_input="Generated from "`IFS=:
8690 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
8691 if test x"$ac_file" != x-; then
8692 configure_input="$ac_file. $configure_input"
8693 { echo "$as_me:$LINENO: creating $ac_file" >&5
8694 echo "$as_me: creating $ac_file" >&6;}
8697 case $ac_tag in
8698 *:-:* | *:-) cat >"$tmp/stdin";;
8699 esac
8701 esac
8703 ac_dir=`$as_dirname -- "$ac_file" ||
8704 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8705 X"$ac_file" : 'X\(//\)[^/]' \| \
8706 X"$ac_file" : 'X\(//\)$' \| \
8707 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8708 echo X"$ac_file" |
8709 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8710 s//\1/
8713 /^X\(\/\/\)[^/].*/{
8714 s//\1/
8717 /^X\(\/\/\)$/{
8718 s//\1/
8721 /^X\(\/\).*/{
8722 s//\1/
8725 s/.*/./; q'`
8726 { as_dir="$ac_dir"
8727 case $as_dir in #(
8728 -*) as_dir=./$as_dir;;
8729 esac
8730 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8731 as_dirs=
8732 while :; do
8733 case $as_dir in #(
8734 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8735 *) as_qdir=$as_dir;;
8736 esac
8737 as_dirs="'$as_qdir' $as_dirs"
8738 as_dir=`$as_dirname -- "$as_dir" ||
8739 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8740 X"$as_dir" : 'X\(//\)[^/]' \| \
8741 X"$as_dir" : 'X\(//\)$' \| \
8742 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8743 echo X"$as_dir" |
8744 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8745 s//\1/
8748 /^X\(\/\/\)[^/].*/{
8749 s//\1/
8752 /^X\(\/\/\)$/{
8753 s//\1/
8756 /^X\(\/\).*/{
8757 s//\1/
8760 s/.*/./; q'`
8761 test -d "$as_dir" && break
8762 done
8763 test -z "$as_dirs" || eval "mkdir $as_dirs"
8764 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8765 echo "$as_me: error: cannot create directory $as_dir" >&2;}
8766 { (exit 1); exit 1; }; }; }
8767 ac_builddir=.
8769 case "$ac_dir" in
8770 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8772 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8773 # A ".." for each directory in $ac_dir_suffix.
8774 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
8775 case $ac_top_builddir_sub in
8776 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8777 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8778 esac ;;
8779 esac
8780 ac_abs_top_builddir=$ac_pwd
8781 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8782 # for backward compatibility:
8783 ac_top_builddir=$ac_top_build_prefix
8785 case $srcdir in
8786 .) # We are building in place.
8787 ac_srcdir=.
8788 ac_top_srcdir=$ac_top_builddir_sub
8789 ac_abs_top_srcdir=$ac_pwd ;;
8790 [\\/]* | ?:[\\/]* ) # Absolute name.
8791 ac_srcdir=$srcdir$ac_dir_suffix;
8792 ac_top_srcdir=$srcdir
8793 ac_abs_top_srcdir=$srcdir ;;
8794 *) # Relative name.
8795 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8796 ac_top_srcdir=$ac_top_build_prefix$srcdir
8797 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8798 esac
8799 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8802 case $ac_mode in
8805 # CONFIG_FILE
8808 case $INSTALL in
8809 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8810 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8811 esac
8812 _ACEOF
8814 cat >>$CONFIG_STATUS <<\_ACEOF
8815 # If the template does not know about datarootdir, expand it.
8816 # FIXME: This hack should be removed a few years after 2.60.
8817 ac_datarootdir_hack=; ac_datarootdir_seen=
8819 case `sed -n '/datarootdir/ {
8823 /@datadir@/p
8824 /@docdir@/p
8825 /@infodir@/p
8826 /@localedir@/p
8827 /@mandir@/p
8828 ' $ac_file_inputs` in
8829 *datarootdir*) ac_datarootdir_seen=yes;;
8830 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8831 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8832 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8833 _ACEOF
8834 cat >>$CONFIG_STATUS <<_ACEOF
8835 ac_datarootdir_hack='
8836 s&@datadir@&$datadir&g
8837 s&@docdir@&$docdir&g
8838 s&@infodir@&$infodir&g
8839 s&@localedir@&$localedir&g
8840 s&@mandir@&$mandir&g
8841 s&\\\${datarootdir}&$datarootdir&g' ;;
8842 esac
8843 _ACEOF
8845 # Neutralize VPATH when `$srcdir' = `.'.
8846 # Shell code in configure.ac might set extrasub.
8847 # FIXME: do we really want to maintain this feature?
8848 cat >>$CONFIG_STATUS <<_ACEOF
8849 sed "$ac_vpsub
8850 $extrasub
8851 _ACEOF
8852 cat >>$CONFIG_STATUS <<\_ACEOF
8854 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8855 s&@configure_input@&$configure_input&;t t
8856 s&@top_builddir@&$ac_top_builddir_sub&;t t
8857 s&@srcdir@&$ac_srcdir&;t t
8858 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8859 s&@top_srcdir@&$ac_top_srcdir&;t t
8860 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8861 s&@builddir@&$ac_builddir&;t t
8862 s&@abs_builddir@&$ac_abs_builddir&;t t
8863 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8864 s&@INSTALL@&$ac_INSTALL&;t t
8865 $ac_datarootdir_hack
8866 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
8868 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8869 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8870 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8871 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8872 which seems to be undefined. Please make sure it is defined." >&5
8873 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8874 which seems to be undefined. Please make sure it is defined." >&2;}
8876 rm -f "$tmp/stdin"
8877 case $ac_file in
8878 -) cat "$tmp/out"; rm -f "$tmp/out";;
8879 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
8880 esac
8884 # CONFIG_HEADER
8886 _ACEOF
8888 # Transform confdefs.h into a sed script `conftest.defines', that
8889 # substitutes the proper values into config.h.in to produce config.h.
8890 rm -f conftest.defines conftest.tail
8891 # First, append a space to every undef/define line, to ease matching.
8892 echo 's/$/ /' >conftest.defines
8893 # Then, protect against being on the right side of a sed subst, or in
8894 # an unquoted here document, in config.status. If some macros were
8895 # called several times there might be several #defines for the same
8896 # symbol, which is useless. But do not sort them, since the last
8897 # AC_DEFINE must be honored.
8898 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8899 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
8900 # NAME is the cpp macro being defined, VALUE is the value it is being given.
8901 # PARAMS is the parameter list in the macro definition--in most cases, it's
8902 # just an empty string.
8903 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
8904 ac_dB='\\)[ (].*,\\1define\\2'
8905 ac_dC=' '
8906 ac_dD=' ,'
8908 uniq confdefs.h |
8909 sed -n '
8910 t rset
8911 :rset
8912 s/^[ ]*#[ ]*define[ ][ ]*//
8913 t ok
8916 s/[\\&,]/\\&/g
8917 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
8918 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
8919 ' >>conftest.defines
8921 # Remove the space that was appended to ease matching.
8922 # Then replace #undef with comments. This is necessary, for
8923 # example, in the case of _POSIX_SOURCE, which is predefined and required
8924 # on some systems where configure will not decide to define it.
8925 # (The regexp can be short, since the line contains either #define or #undef.)
8926 echo 's/ $//
8927 s,^[ #]*u.*,/* & */,' >>conftest.defines
8929 # Break up conftest.defines:
8930 ac_max_sed_lines=50
8932 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
8933 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
8934 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
8935 # et cetera.
8936 ac_in='$ac_file_inputs'
8937 ac_out='"$tmp/out1"'
8938 ac_nxt='"$tmp/out2"'
8940 while :
8942 # Write a here document:
8943 cat >>$CONFIG_STATUS <<_ACEOF
8944 # First, check the format of the line:
8945 cat >"\$tmp/defines.sed" <<\\CEOF
8946 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
8947 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
8949 :def
8950 _ACEOF
8951 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
8952 echo 'CEOF
8953 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
8954 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
8955 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
8956 grep . conftest.tail >/dev/null || break
8957 rm -f conftest.defines
8958 mv conftest.tail conftest.defines
8959 done
8960 rm -f conftest.defines conftest.tail
8962 echo "ac_result=$ac_in" >>$CONFIG_STATUS
8963 cat >>$CONFIG_STATUS <<\_ACEOF
8964 if test x"$ac_file" != x-; then
8965 echo "/* $configure_input */" >"$tmp/config.h"
8966 cat "$ac_result" >>"$tmp/config.h"
8967 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
8968 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8969 echo "$as_me: $ac_file is unchanged" >&6;}
8970 else
8971 rm -f $ac_file
8972 mv "$tmp/config.h" $ac_file
8974 else
8975 echo "/* $configure_input */"
8976 cat "$ac_result"
8978 rm -f "$tmp/out12"
8979 # Compute $ac_file's index in $config_headers.
8980 _am_stamp_count=1
8981 for _am_header in $config_headers :; do
8982 case $_am_header in
8983 $ac_file | $ac_file:* )
8984 break ;;
8986 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8987 esac
8988 done
8989 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
8990 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8991 X$ac_file : 'X\(//\)[^/]' \| \
8992 X$ac_file : 'X\(//\)$' \| \
8993 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
8994 echo X$ac_file |
8995 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8996 s//\1/
8999 /^X\(\/\/\)[^/].*/{
9000 s//\1/
9003 /^X\(\/\/\)$/{
9004 s//\1/
9007 /^X\(\/\).*/{
9008 s//\1/
9011 s/.*/./; q'`/stamp-h$_am_stamp_count
9014 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
9015 echo "$as_me: executing $ac_file commands" >&6;}
9017 esac
9020 case $ac_file$ac_mode in
9021 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
9022 # Strip MF so we end up with the name of the file.
9023 mf=`echo "$mf" | sed -e 's/:.*$//'`
9024 # Check whether this is an Automake generated Makefile or not.
9025 # We used to match only the files named `Makefile.in', but
9026 # some people rename them; so instead we look at the file content.
9027 # Grep'ing the first line is not enough: some people post-process
9028 # each Makefile.in and add a new line on top of each file to say so.
9029 # So let's grep whole file.
9030 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
9031 dirpart=`$as_dirname -- "$mf" ||
9032 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9033 X"$mf" : 'X\(//\)[^/]' \| \
9034 X"$mf" : 'X\(//\)$' \| \
9035 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
9036 echo X"$mf" |
9037 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9038 s//\1/
9041 /^X\(\/\/\)[^/].*/{
9042 s//\1/
9045 /^X\(\/\/\)$/{
9046 s//\1/
9049 /^X\(\/\).*/{
9050 s//\1/
9053 s/.*/./; q'`
9054 else
9055 continue
9057 # Extract the definition of DEPDIR, am__include, and am__quote
9058 # from the Makefile without running `make'.
9059 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9060 test -z "$DEPDIR" && continue
9061 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9062 test -z "am__include" && continue
9063 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9064 # When using ansi2knr, U may be empty or an underscore; expand it
9065 U=`sed -n 's/^U = //p' < "$mf"`
9066 # Find all dependency output files, they are included files with
9067 # $(DEPDIR) in their names. We invoke sed twice because it is the
9068 # simplest approach to changing $(DEPDIR) to its actual value in the
9069 # expansion.
9070 for file in `sed -n "
9071 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9072 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9073 # Make sure the directory exists.
9074 test -f "$dirpart/$file" && continue
9075 fdir=`$as_dirname -- "$file" ||
9076 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9077 X"$file" : 'X\(//\)[^/]' \| \
9078 X"$file" : 'X\(//\)$' \| \
9079 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9080 echo X"$file" |
9081 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9082 s//\1/
9085 /^X\(\/\/\)[^/].*/{
9086 s//\1/
9089 /^X\(\/\/\)$/{
9090 s//\1/
9093 /^X\(\/\).*/{
9094 s//\1/
9097 s/.*/./; q'`
9098 { as_dir=$dirpart/$fdir
9099 case $as_dir in #(
9100 -*) as_dir=./$as_dir;;
9101 esac
9102 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9103 as_dirs=
9104 while :; do
9105 case $as_dir in #(
9106 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9107 *) as_qdir=$as_dir;;
9108 esac
9109 as_dirs="'$as_qdir' $as_dirs"
9110 as_dir=`$as_dirname -- "$as_dir" ||
9111 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9112 X"$as_dir" : 'X\(//\)[^/]' \| \
9113 X"$as_dir" : 'X\(//\)$' \| \
9114 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9115 echo X"$as_dir" |
9116 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9117 s//\1/
9120 /^X\(\/\/\)[^/].*/{
9121 s//\1/
9124 /^X\(\/\/\)$/{
9125 s//\1/
9128 /^X\(\/\).*/{
9129 s//\1/
9132 s/.*/./; q'`
9133 test -d "$as_dir" && break
9134 done
9135 test -z "$as_dirs" || eval "mkdir $as_dirs"
9136 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9137 echo "$as_me: error: cannot create directory $as_dir" >&2;}
9138 { (exit 1); exit 1; }; }; }
9139 # echo "creating $dirpart/$file"
9140 echo '# dummy' > "$dirpart/$file"
9141 done
9142 done
9145 esac
9146 done # for ac_tag
9149 { (exit 0); exit 0; }
9150 _ACEOF
9151 chmod +x $CONFIG_STATUS
9152 ac_clean_files=$ac_clean_files_save
9155 # configure is writing to config.log, and then calls config.status.
9156 # config.status does its own redirection, appending to config.log.
9157 # Unfortunately, on DOS this fails, as config.log is still kept open
9158 # by configure, so config.status won't be able to write to it; its
9159 # output is simply discarded. So we exec the FD to /dev/null,
9160 # effectively closing config.log, so it can be properly (re)opened and
9161 # appended to by config.status. When coming back to configure, we
9162 # need to make the FD available again.
9163 if test "$no_create" != yes; then
9164 ac_cs_success=:
9165 ac_config_status_args=
9166 test "$silent" = yes &&
9167 ac_config_status_args="$ac_config_status_args --quiet"
9168 exec 5>/dev/null
9169 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9170 exec 5>>config.log
9171 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9172 # would make configure fail if this is the last instruction.
9173 $ac_cs_success || { (exit 1); exit 1; }