2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for nbd 2.9.15.
5 # Report bugs to <wouter@debian.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 case \`(set -o) 2>/dev/null\` in #(
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190 test -z "$as_dir" && as_dir=.
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and wouter@debian.org
234 $0: about your system, including any error possibly output
235 $0: before this message. Then install a modern shell, or
236 $0: manually run the script under such a shell if you do
243 SHELL=${CONFIG_SHELL-/bin/sh}
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
254 # Portably unset VAR.
257 { eval $1=; unset $1;}
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 # Create "$as_dir" as a directory, including parents if necessary.
286 -*) as_dir=./$as_dir;;
288 test -d "$as_dir" || eval $as_mkdir_p || {
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 test -d "$as_dir" && break
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357 as_val=`expr "$@" || test $? -eq 1`
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
369 as_status=$?; test $as_status -eq 0 && as_status=1
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
451 # Exit status is that of the last command.
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
473 mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484 elif ln conf$$.file conf$$ 2>/dev/null; then
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
498 test -d ./-p && rmdir ./-p
502 if test -x / >/dev/null 2>&1; then
505 if ls -dL / >/dev/null 2>&1; then
512 if test -d "$1"; then
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532 test -n "$DJDIR" || exec 7<&0 </dev/null
536 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543 ac_default_prefix=/usr/local
545 ac_config_libobj_dir=.
552 # Identity of this package.
554 PACKAGE_TARNAME='nbd'
555 PACKAGE_VERSION='2.9.15'
556 PACKAGE_STRING='nbd 2.9.15'
557 PACKAGE_BUGREPORT='wouter@debian.org'
560 # Factoring default headers for most tests.
561 ac_includes_default="\
563 #ifdef HAVE_SYS_TYPES_H
564 # include <sys/types.h>
566 #ifdef HAVE_SYS_STAT_H
567 # include <sys/stat.h>
573 # ifdef HAVE_STDLIB_H
578 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
583 #ifdef HAVE_STRINGS_H
584 # include <strings.h>
586 #ifdef HAVE_INTTYPES_H
587 # include <inttypes.h>
596 ac_subst_vars='am__EXEEXT_FALSE
636 MAINTAINER_MODE_FALSE
646 INSTALL_STRIP_PROGRAM
688 program_transform_name
701 enable_option_checking
702 enable_maintainer_mode
707 enable_dependency_tracking
710 ac_precious_vars='build_alias
722 # Initialize some variables set by options.
724 ac_init_version=false
725 ac_unrecognized_opts=
727 # The variables have the same names as the options, with
728 # dashes changed to underlines.
736 program_transform_name=s,x,x,
744 # Installation directory options.
745 # These are left unexpanded so users can "make install exec_prefix=/foo"
746 # and all the variables that are supposed to be based on exec_prefix
747 # by default will actually change.
748 # Use braces instead of parens because sh, perl, etc. also accept them.
749 # (The list follows the same order as the GNU Coding Standards.)
750 bindir='${exec_prefix}/bin'
751 sbindir='${exec_prefix}/sbin'
752 libexecdir='${exec_prefix}/libexec'
753 datarootdir='${prefix}/share'
754 datadir='${datarootdir}'
755 sysconfdir='${prefix}/etc'
756 sharedstatedir='${prefix}/com'
757 localstatedir='${prefix}/var'
758 includedir='${prefix}/include'
759 oldincludedir='/usr/include'
760 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
761 infodir='${datarootdir}/info'
766 libdir='${exec_prefix}/lib'
767 localedir='${datarootdir}/locale'
768 mandir='${datarootdir}/man'
774 # If the previous option needs an argument, assign it.
775 if test -n "$ac_prev"; then
776 eval $ac_prev=\$ac_option
782 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
786 # Accept the important Cygnus configure options, so we can diagnose typos.
788 case $ac_dashdash$ac_option in
792 -bindir | --bindir | --bindi | --bind | --bin | --bi)
794 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
797 -build | --build | --buil | --bui | --bu)
798 ac_prev=build_alias ;;
799 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
800 build_alias=$ac_optarg ;;
802 -cache-file | --cache-file | --cache-fil | --cache-fi \
803 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
804 ac_prev=cache_file ;;
805 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
806 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
807 cache_file=$ac_optarg ;;
810 cache_file=config.cache ;;
812 -datadir | --datadir | --datadi | --datad)
814 -datadir=* | --datadir=* | --datadi=* | --datad=*)
815 datadir=$ac_optarg ;;
817 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
818 | --dataroo | --dataro | --datar)
819 ac_prev=datarootdir ;;
820 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
821 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
822 datarootdir=$ac_optarg ;;
824 -disable-* | --disable-*)
825 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
826 # Reject names that are not valid shell variable names.
827 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
828 as_fn_error "invalid feature name: $ac_useropt"
829 ac_useropt_orig=$ac_useropt
830 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
831 case $ac_user_opts in
835 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
836 ac_unrecognized_sep=', ';;
838 eval enable_$ac_useropt=no ;;
840 -docdir | --docdir | --docdi | --doc | --do)
842 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
845 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
847 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
850 -enable-* | --enable-*)
851 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
852 # Reject names that are not valid shell variable names.
853 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
854 as_fn_error "invalid feature name: $ac_useropt"
855 ac_useropt_orig=$ac_useropt
856 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
857 case $ac_user_opts in
861 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
862 ac_unrecognized_sep=', ';;
864 eval enable_$ac_useropt=\$ac_optarg ;;
866 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
867 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
868 | --exec | --exe | --ex)
869 ac_prev=exec_prefix ;;
870 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
871 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
872 | --exec=* | --exe=* | --ex=*)
873 exec_prefix=$ac_optarg ;;
875 -gas | --gas | --ga | --g)
876 # Obsolete; use --with-gas.
879 -help | --help | --hel | --he | -h)
881 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
882 ac_init_help=recursive ;;
883 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
884 ac_init_help=short ;;
886 -host | --host | --hos | --ho)
887 ac_prev=host_alias ;;
888 -host=* | --host=* | --hos=* | --ho=*)
889 host_alias=$ac_optarg ;;
891 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
893 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
895 htmldir=$ac_optarg ;;
897 -includedir | --includedir | --includedi | --included | --include \
898 | --includ | --inclu | --incl | --inc)
899 ac_prev=includedir ;;
900 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
901 | --includ=* | --inclu=* | --incl=* | --inc=*)
902 includedir=$ac_optarg ;;
904 -infodir | --infodir | --infodi | --infod | --info | --inf)
906 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
907 infodir=$ac_optarg ;;
909 -libdir | --libdir | --libdi | --libd)
911 -libdir=* | --libdir=* | --libdi=* | --libd=*)
914 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
915 | --libexe | --libex | --libe)
916 ac_prev=libexecdir ;;
917 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
918 | --libexe=* | --libex=* | --libe=*)
919 libexecdir=$ac_optarg ;;
921 -localedir | --localedir | --localedi | --localed | --locale)
923 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
924 localedir=$ac_optarg ;;
926 -localstatedir | --localstatedir | --localstatedi | --localstated \
927 | --localstate | --localstat | --localsta | --localst | --locals)
928 ac_prev=localstatedir ;;
929 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
930 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
931 localstatedir=$ac_optarg ;;
933 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
935 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
939 # Obsolete; use --without-fp.
942 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
943 | --no-cr | --no-c | -n)
946 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
947 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
950 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
951 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
952 | --oldin | --oldi | --old | --ol | --o)
953 ac_prev=oldincludedir ;;
954 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
955 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
956 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
957 oldincludedir=$ac_optarg ;;
959 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
961 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
964 -program-prefix | --program-prefix | --program-prefi | --program-pref \
965 | --program-pre | --program-pr | --program-p)
966 ac_prev=program_prefix ;;
967 -program-prefix=* | --program-prefix=* | --program-prefi=* \
968 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
969 program_prefix=$ac_optarg ;;
971 -program-suffix | --program-suffix | --program-suffi | --program-suff \
972 | --program-suf | --program-su | --program-s)
973 ac_prev=program_suffix ;;
974 -program-suffix=* | --program-suffix=* | --program-suffi=* \
975 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
976 program_suffix=$ac_optarg ;;
978 -program-transform-name | --program-transform-name \
979 | --program-transform-nam | --program-transform-na \
980 | --program-transform-n | --program-transform- \
981 | --program-transform | --program-transfor \
982 | --program-transfo | --program-transf \
983 | --program-trans | --program-tran \
984 | --progr-tra | --program-tr | --program-t)
985 ac_prev=program_transform_name ;;
986 -program-transform-name=* | --program-transform-name=* \
987 | --program-transform-nam=* | --program-transform-na=* \
988 | --program-transform-n=* | --program-transform-=* \
989 | --program-transform=* | --program-transfor=* \
990 | --program-transfo=* | --program-transf=* \
991 | --program-trans=* | --program-tran=* \
992 | --progr-tra=* | --program-tr=* | --program-t=*)
993 program_transform_name=$ac_optarg ;;
995 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
997 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1000 -psdir | --psdir | --psdi | --psd | --ps)
1002 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1005 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1006 | -silent | --silent | --silen | --sile | --sil)
1009 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1011 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1013 sbindir=$ac_optarg ;;
1015 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1016 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1017 | --sharedst | --shareds | --shared | --share | --shar \
1019 ac_prev=sharedstatedir ;;
1020 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1021 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1022 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1024 sharedstatedir=$ac_optarg ;;
1026 -site | --site | --sit)
1028 -site=* | --site=* | --sit=*)
1031 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1033 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1034 srcdir=$ac_optarg ;;
1036 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1037 | --syscon | --sysco | --sysc | --sys | --sy)
1038 ac_prev=sysconfdir ;;
1039 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1040 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1041 sysconfdir=$ac_optarg ;;
1043 -target | --target | --targe | --targ | --tar | --ta | --t)
1044 ac_prev=target_alias ;;
1045 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1046 target_alias=$ac_optarg ;;
1048 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1051 -version | --version | --versio | --versi | --vers | -V)
1052 ac_init_version=: ;;
1055 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1058 as_fn_error "invalid package name: $ac_useropt"
1059 ac_useropt_orig=$ac_useropt
1060 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1061 case $ac_user_opts in
1065 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1066 ac_unrecognized_sep=', ';;
1068 eval with_$ac_useropt=\$ac_optarg ;;
1070 -without-* | --without-*)
1071 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1074 as_fn_error "invalid package name: $ac_useropt"
1075 ac_useropt_orig=$ac_useropt
1076 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1077 case $ac_user_opts in
1081 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1082 ac_unrecognized_sep=', ';;
1084 eval with_$ac_useropt=no ;;
1087 # Obsolete; use --with-x.
1090 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1091 | --x-incl | --x-inc | --x-in | --x-i)
1092 ac_prev=x_includes ;;
1093 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1094 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1095 x_includes=$ac_optarg ;;
1097 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1098 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1099 ac_prev=x_libraries ;;
1100 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1101 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1102 x_libraries=$ac_optarg ;;
1104 -*) as_fn_error "unrecognized option: \`$ac_option'
1105 Try \`$0 --help' for more information."
1109 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1110 # Reject names that are not valid shell variable names.
1111 case $ac_envvar in #(
1112 '' | [0-9]* | *[!_$as_cr_alnum]* )
1113 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1115 eval $ac_envvar=\$ac_optarg
1116 export $ac_envvar ;;
1119 # FIXME: should be removed in autoconf 3.0.
1120 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1121 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1122 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1123 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1129 if test -n "$ac_prev"; then
1130 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1131 as_fn_error "missing argument to $ac_option"
1134 if test -n "$ac_unrecognized_opts"; then
1135 case $enable_option_checking in
1137 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1138 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1142 # Check all directory arguments for consistency.
1143 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1144 datadir sysconfdir sharedstatedir localstatedir includedir \
1145 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1146 libdir localedir mandir
1148 eval ac_val=\$$ac_var
1149 # Remove trailing slashes.
1152 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1153 eval $ac_var=\$ac_val;;
1155 # Be sure to have absolute directory names.
1157 [\\/$]* | ?:[\\/]* ) continue;;
1158 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1160 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1163 # There might be people who depend on the old broken behavior: `$host'
1164 # used to hold the argument of --host etc.
1165 # FIXME: To remove some day.
1168 target=$target_alias
1170 # FIXME: To remove some day.
1171 if test "x$host_alias" != x; then
1172 if test "x$build_alias" = x; then
1173 cross_compiling=maybe
1174 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1175 If a cross compiler is detected then cross compile mode will be used." >&2
1176 elif test "x$build_alias" != "x$host_alias"; then
1182 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1184 test "$silent" = yes && exec 6>/dev/null
1187 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1188 ac_ls_di=`ls -di .` &&
1189 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1190 as_fn_error "working directory cannot be determined"
1191 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1192 as_fn_error "pwd does not report name of working directory"
1195 # Find the source files, if location was not specified.
1196 if test -z "$srcdir"; then
1197 ac_srcdir_defaulted=yes
1198 # Try the directory containing this script, then the parent directory.
1199 ac_confdir=`$as_dirname -- "$as_myself" ||
1200 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1201 X"$as_myself" : 'X\(//\)[^/]' \| \
1202 X"$as_myself" : 'X\(//\)$' \| \
1203 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1204 $as_echo X"$as_myself" |
1205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1223 if test ! -r "$srcdir/$ac_unique_file"; then
1227 ac_srcdir_defaulted=no
1229 if test ! -r "$srcdir/$ac_unique_file"; then
1230 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1231 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1233 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1235 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1237 # When building in place, set srcdir=.
1238 if test "$ac_abs_confdir" = "$ac_pwd"; then
1241 # Remove unnecessary trailing slashes from srcdir.
1242 # Double slashes in file names in object file debugging info
1243 # mess up M-x gdb in Emacs.
1245 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1247 for ac_var in $ac_precious_vars; do
1248 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1249 eval ac_env_${ac_var}_value=\$${ac_var}
1250 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1251 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1255 # Report the --help message.
1257 if test "$ac_init_help" = "long"; then
1258 # Omit some internal or obsolete options to make the list less imposing.
1259 # This message is too long to be a string in the A/UX 3.1 sh.
1261 \`configure' configures nbd 2.9.15 to adapt to many kinds of systems.
1263 Usage: $0 [OPTION]... [VAR=VALUE]...
1265 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1266 VAR=VALUE. See below for descriptions of some of the useful variables.
1268 Defaults for the options are specified in brackets.
1271 -h, --help display this help and exit
1272 --help=short display options specific to this package
1273 --help=recursive display the short help of all the included packages
1274 -V, --version display version information and exit
1275 -q, --quiet, --silent do not print \`checking...' messages
1276 --cache-file=FILE cache test results in FILE [disabled]
1277 -C, --config-cache alias for \`--cache-file=config.cache'
1278 -n, --no-create do not create output files
1279 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1281 Installation directories:
1282 --prefix=PREFIX install architecture-independent files in PREFIX
1283 [$ac_default_prefix]
1284 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1287 By default, \`make install' will install all the files in
1288 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1289 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1290 for instance \`--prefix=\$HOME'.
1292 For better control, use the options below.
1294 Fine tuning of the installation directories:
1295 --bindir=DIR user executables [EPREFIX/bin]
1296 --sbindir=DIR system admin executables [EPREFIX/sbin]
1297 --libexecdir=DIR program executables [EPREFIX/libexec]
1298 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1299 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1300 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1301 --libdir=DIR object code libraries [EPREFIX/lib]
1302 --includedir=DIR C header files [PREFIX/include]
1303 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1304 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1305 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1306 --infodir=DIR info documentation [DATAROOTDIR/info]
1307 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1308 --mandir=DIR man documentation [DATAROOTDIR/man]
1309 --docdir=DIR documentation root [DATAROOTDIR/doc/nbd]
1310 --htmldir=DIR html documentation [DOCDIR]
1311 --dvidir=DIR dvi documentation [DOCDIR]
1312 --pdfdir=DIR pdf documentation [DOCDIR]
1313 --psdir=DIR ps documentation [DOCDIR]
1319 --program-prefix=PREFIX prepend PREFIX to installed program names
1320 --program-suffix=SUFFIX append SUFFIX to installed program names
1321 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1324 --build=BUILD configure for building on BUILD [guessed]
1325 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1329 if test -n "$ac_init_help"; then
1330 case $ac_init_help in
1331 short | recursive ) echo "Configuration of nbd 2.9.15:";;
1336 --disable-option-checking ignore unrecognized --enable/--with options
1337 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1338 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1339 --enable-maintainer-mode enable make rules and dependencies not useful
1340 (and sometimes confusing) to the casual installer
1341 --disable-lfs Disable Large File Support (default on)
1342 --enable-syslog Enable Syslog logging
1343 --enable-debug Build a debugging version of the server
1344 --enable-sdp Build a version of nbd-server with support for the
1345 Socket Direct Protocol (SDP). Requires you to build
1346 and install a kernel with the InfiniBand patches
1348 --disable-dependency-tracking speeds up one-time build
1349 --enable-dependency-tracking do not reject slow dependency extractors
1350 --disable-glibtest do not try to compile and run a test GLIB program
1352 Some influential environment variables:
1353 CC C compiler command
1354 CFLAGS C compiler flags
1355 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1356 nonstandard directory <lib dir>
1357 LIBS libraries to pass to the linker, e.g. -l<library>
1358 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1359 you have headers in a nonstandard directory <include dir>
1361 PKG_CONFIG path to pkg-config utility
1363 Use these variables to override the choices made by `configure' or to help
1364 it to find libraries and programs with nonstandard names/locations.
1366 Report bugs to <wouter@debian.org>.
1371 if test "$ac_init_help" = "recursive"; then
1372 # If there are subdirs, report their specific --help.
1373 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1374 test -d "$ac_dir" ||
1375 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1380 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1382 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1383 # A ".." for each directory in $ac_dir_suffix.
1384 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1385 case $ac_top_builddir_sub in
1386 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1387 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1390 ac_abs_top_builddir=$ac_pwd
1391 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1392 # for backward compatibility:
1393 ac_top_builddir=$ac_top_build_prefix
1396 .) # We are building in place.
1398 ac_top_srcdir=$ac_top_builddir_sub
1399 ac_abs_top_srcdir=$ac_pwd ;;
1400 [\\/]* | ?:[\\/]* ) # Absolute name.
1401 ac_srcdir=$srcdir$ac_dir_suffix;
1402 ac_top_srcdir=$srcdir
1403 ac_abs_top_srcdir=$srcdir ;;
1405 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1406 ac_top_srcdir=$ac_top_build_prefix$srcdir
1407 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1409 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1411 cd "$ac_dir" || { ac_status=$?; continue; }
1412 # Check for guested configure.
1413 if test -f "$ac_srcdir/configure.gnu"; then
1415 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1416 elif test -f "$ac_srcdir/configure"; then
1418 $SHELL "$ac_srcdir/configure" --help=recursive
1420 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1422 cd "$ac_pwd" || { ac_status=$?; break; }
1426 test -n "$ac_init_help" && exit $ac_status
1427 if $ac_init_version; then
1429 nbd configure 2.9.15
1430 generated by GNU Autoconf 2.65
1432 Copyright (C) 2009 Free Software Foundation, Inc.
1433 This configure script is free software; the Free Software Foundation
1434 gives unlimited permission to copy, distribute and modify it.
1439 ## ------------------------ ##
1440 ## Autoconf initialization. ##
1441 ## ------------------------ ##
1443 # ac_fn_c_try_compile LINENO
1444 # --------------------------
1445 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1446 ac_fn_c_try_compile ()
1448 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1449 rm -f conftest.$ac_objext
1450 if { { ac_try="$ac_compile"
1452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1453 *) ac_try_echo=$ac_try;;
1455 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1456 $as_echo "$ac_try_echo"; } >&5
1457 (eval "$ac_compile") 2>conftest.err
1459 if test -s conftest.err; then
1460 grep -v '^ *+' conftest.err >conftest.er1
1461 cat conftest.er1 >&5
1462 mv -f conftest.er1 conftest.err
1464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1465 test $ac_status = 0; } && {
1466 test -z "$ac_c_werror_flag" ||
1467 test ! -s conftest.err
1468 } && test -s conftest.$ac_objext; then :
1471 $as_echo "$as_me: failed program was:" >&5
1472 sed 's/^/| /' conftest.$ac_ext >&5
1476 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1477 as_fn_set_status $ac_retval
1479 } # ac_fn_c_try_compile
1481 # ac_fn_c_try_cpp LINENO
1482 # ----------------------
1483 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1486 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1487 if { { ac_try="$ac_cpp conftest.$ac_ext"
1489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1490 *) ac_try_echo=$ac_try;;
1492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1493 $as_echo "$ac_try_echo"; } >&5
1494 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1496 if test -s conftest.err; then
1497 grep -v '^ *+' conftest.err >conftest.er1
1498 cat conftest.er1 >&5
1499 mv -f conftest.er1 conftest.err
1501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1502 test $ac_status = 0; } >/dev/null && {
1503 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1504 test ! -s conftest.err
1508 $as_echo "$as_me: failed program was:" >&5
1509 sed 's/^/| /' conftest.$ac_ext >&5
1513 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1514 as_fn_set_status $ac_retval
1518 # ac_fn_c_try_run LINENO
1519 # ----------------------
1520 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1521 # that executables *can* be run.
1524 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1525 if { { ac_try="$ac_link"
1527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1528 *) ac_try_echo=$ac_try;;
1530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1531 $as_echo "$ac_try_echo"; } >&5
1532 (eval "$ac_link") 2>&5
1534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1535 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1536 { { case "(($ac_try" in
1537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1538 *) ac_try_echo=$ac_try;;
1540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1541 $as_echo "$ac_try_echo"; } >&5
1542 (eval "$ac_try") 2>&5
1544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1545 test $ac_status = 0; }; }; then :
1548 $as_echo "$as_me: program exited with status $ac_status" >&5
1549 $as_echo "$as_me: failed program was:" >&5
1550 sed 's/^/| /' conftest.$ac_ext >&5
1552 ac_retval=$ac_status
1554 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1555 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1556 as_fn_set_status $ac_retval
1560 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1561 # -------------------------------------------------------
1562 # Tests whether HEADER exists and can be compiled using the include files in
1563 # INCLUDES, setting the cache variable VAR accordingly.
1564 ac_fn_c_check_header_compile ()
1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1568 $as_echo_n "checking for $2... " >&6; }
1569 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1570 $as_echo_n "(cached) " >&6
1572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1573 /* end confdefs.h. */
1577 if ac_fn_c_try_compile "$LINENO"; then :
1582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1586 $as_echo "$ac_res" >&6; }
1587 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1589 } # ac_fn_c_check_header_compile
1591 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1592 # --------------------------------------------
1593 # Tries to find the compile-time value of EXPR in a program that includes
1594 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1596 ac_fn_c_compute_int ()
1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599 if test "$cross_compiling" = yes; then
1600 # Depending upon the size, compute the lo and hi bounds.
1601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1602 /* end confdefs.h. */
1607 static int test_array [1 - 2 * !(($2) >= 0)];
1614 if ac_fn_c_try_compile "$LINENO"; then :
1617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1618 /* end confdefs.h. */
1623 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1630 if ac_fn_c_try_compile "$LINENO"; then :
1631 ac_hi=$ac_mid; break
1633 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1634 if test $ac_lo -le $ac_mid; then
1638 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1644 /* end confdefs.h. */
1649 static int test_array [1 - 2 * !(($2) < 0)];
1656 if ac_fn_c_try_compile "$LINENO"; then :
1659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1660 /* end confdefs.h. */
1665 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1672 if ac_fn_c_try_compile "$LINENO"; then :
1673 ac_lo=$ac_mid; break
1675 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1676 if test $ac_mid -le $ac_hi; then
1680 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1690 # Binary search between lo and hi bounds.
1691 while test "x$ac_lo" != "x$ac_hi"; do
1692 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1694 /* end confdefs.h. */
1699 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1706 if ac_fn_c_try_compile "$LINENO"; then :
1709 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1714 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1719 /* end confdefs.h. */
1721 static long int longval () { return $2; }
1722 static unsigned long int ulongval () { return $2; }
1729 FILE *f = fopen ("conftest.val", "w");
1734 long int i = longval ();
1737 fprintf (f, "%ld", i);
1741 unsigned long int i = ulongval ();
1744 fprintf (f, "%lu", i);
1746 /* Do not output a trailing newline, as this causes \r\n confusion
1747 on some platforms. */
1748 return ferror (f) || fclose (f) != 0;
1754 if ac_fn_c_try_run "$LINENO"; then :
1755 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1760 conftest.$ac_objext conftest.beam conftest.$ac_ext
1764 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1765 as_fn_set_status $ac_retval
1767 } # ac_fn_c_compute_int
1769 # ac_fn_c_try_link LINENO
1770 # -----------------------
1771 # Try to link conftest.$ac_ext, and return whether this succeeded.
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 rm -f conftest.$ac_objext conftest$ac_exeext
1776 if { { ac_try="$ac_link"
1778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779 *) ac_try_echo=$ac_try;;
1781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782 $as_echo "$ac_try_echo"; } >&5
1783 (eval "$ac_link") 2>conftest.err
1785 if test -s conftest.err; then
1786 grep -v '^ *+' conftest.err >conftest.er1
1787 cat conftest.er1 >&5
1788 mv -f conftest.er1 conftest.err
1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; } && {
1792 test -z "$ac_c_werror_flag" ||
1793 test ! -s conftest.err
1794 } && test -s conftest$ac_exeext && {
1795 test "$cross_compiling" = yes ||
1796 $as_test_x conftest$ac_exeext
1800 $as_echo "$as_me: failed program was:" >&5
1801 sed 's/^/| /' conftest.$ac_ext >&5
1805 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1806 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1807 # interfere with the next link command; also delete a directory that is
1808 # left behind by Apple's compiler. We do this before executing the actions.
1809 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1810 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1811 as_fn_set_status $ac_retval
1813 } # ac_fn_c_try_link
1815 # ac_fn_c_check_func LINENO FUNC VAR
1816 # ----------------------------------
1817 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1818 ac_fn_c_check_func ()
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1822 $as_echo_n "checking for $2... " >&6; }
1823 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1824 $as_echo_n "(cached) " >&6
1826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827 /* end confdefs.h. */
1828 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1830 #define $2 innocuous_$2
1832 /* System header to define __stub macros and hopefully few prototypes,
1833 which can conflict with char $2 (); below.
1834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1835 <limits.h> exists even on freestanding compilers. */
1838 # include <limits.h>
1840 # include <assert.h>
1845 /* Override any GCC internal prototype to avoid an error.
1846 Use char because int might match the return type of a GCC
1847 builtin and then its argument prototype would still apply. */
1852 /* The GNU C library defines this for functions which it implements
1853 to always fail with ENOSYS. Some functions are actually named
1854 something starting with __ and the normal name is an alias. */
1855 #if defined __stub_$2 || defined __stub___$2
1867 if ac_fn_c_try_link "$LINENO"; then :
1872 rm -f core conftest.err conftest.$ac_objext \
1873 conftest$ac_exeext conftest.$ac_ext
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877 $as_echo "$ac_res" >&6; }
1878 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1880 } # ac_fn_c_check_func
1882 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1883 # -------------------------------------------
1884 # Tests whether TYPE exists after having included INCLUDES, setting cache
1885 # variable VAR accordingly.
1886 ac_fn_c_check_type ()
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1890 $as_echo_n "checking for $2... " >&6; }
1891 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1892 $as_echo_n "(cached) " >&6
1895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1896 /* end confdefs.h. */
1907 if ac_fn_c_try_compile "$LINENO"; then :
1908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909 /* end confdefs.h. */
1920 if ac_fn_c_try_compile "$LINENO"; then :
1925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1931 $as_echo "$ac_res" >&6; }
1932 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1934 } # ac_fn_c_check_type
1936 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1937 # -------------------------------------------------------
1938 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1939 # the include files in INCLUDES and setting the cache variable VAR
1941 ac_fn_c_check_header_mongrel ()
1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1946 $as_echo_n "checking for $2... " >&6; }
1947 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1948 $as_echo_n "(cached) " >&6
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1952 $as_echo "$ac_res" >&6; }
1954 # Is the header compilable?
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1956 $as_echo_n "checking $2 usability... " >&6; }
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h. */
1962 if ac_fn_c_try_compile "$LINENO"; then :
1963 ac_header_compiler=yes
1965 ac_header_compiler=no
1967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1969 $as_echo "$ac_header_compiler" >&6; }
1971 # Is the header present?
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1973 $as_echo_n "checking $2 presence... " >&6; }
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h. */
1978 if ac_fn_c_try_cpp "$LINENO"; then :
1979 ac_header_preproc=yes
1981 ac_header_preproc=no
1983 rm -f conftest.err conftest.$ac_ext
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1985 $as_echo "$ac_header_preproc" >&6; }
1987 # So? What about this header?
1988 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1991 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1993 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1997 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1999 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2001 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2003 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2005 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2007 ## -------------------------------- ##
2008 ## Report this to wouter@debian.org ##
2009 ## -------------------------------- ##
2011 ) | sed "s/^/$as_me: WARNING: /" >&2
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2015 $as_echo_n "checking for $2... " >&6; }
2016 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2017 $as_echo_n "(cached) " >&6
2019 eval "$3=\$ac_header_compiler"
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2023 $as_echo "$ac_res" >&6; }
2025 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2027 } # ac_fn_c_check_header_mongrel
2028 cat >config.log <<_ACEOF
2029 This file contains any messages produced by compilers while
2030 running configure, to aid debugging if configure makes a mistake.
2032 It was created by nbd $as_me 2.9.15, which was
2033 generated by GNU Autoconf 2.65. Invocation command line was
2045 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2046 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2047 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2048 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2049 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2051 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2052 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2054 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2055 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2056 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2057 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2058 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2059 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2060 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2068 test -z "$as_dir" && as_dir=.
2069 $as_echo "PATH: $as_dir"
2085 # Keep a trace of the command line.
2086 # Strip out --no-create and --no-recursion so they do not pile up.
2087 # Strip out --silent because we don't want to record it for future runs.
2088 # Also quote any args containing shell meta-characters.
2089 # Make two passes to allow for proper duplicate-argument suppression.
2093 ac_must_keep_next=false
2099 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2100 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2101 | -silent | --silent | --silen | --sile | --sil)
2104 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2107 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2109 as_fn_append ac_configure_args1 " '$ac_arg'"
2110 if test $ac_must_keep_next = true; then
2111 ac_must_keep_next=false # Got value, back to normal.
2114 *=* | --config-cache | -C | -disable-* | --disable-* \
2115 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2116 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2117 | -with-* | --with-* | -without-* | --without-* | --x)
2118 case "$ac_configure_args0 " in
2119 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2122 -* ) ac_must_keep_next=true ;;
2125 as_fn_append ac_configure_args " '$ac_arg'"
2130 { ac_configure_args0=; unset ac_configure_args0;}
2131 { ac_configure_args1=; unset ac_configure_args1;}
2133 # When interrupted or exit'd, cleanup temporary files, and complete
2134 # config.log. We remove comments because anyway the quotes in there
2135 # would cause problems or look ugly.
2136 # WARNING: Use '\'' to represent an apostrophe within the trap.
2137 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2138 trap 'exit_status=$?
2139 # Save into config.log some information that might help in debugging.
2144 ## ---------------- ##
2145 ## Cache variables. ##
2146 ## ---------------- ##
2149 # The following way of writing the cache mishandles newlines in values,
2151 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2152 eval ac_val=\$$ac_var
2156 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2157 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2160 _ | IFS | as_nl) ;; #(
2161 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2162 *) { eval $ac_var=; unset $ac_var;} ;;
2167 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2168 *${as_nl}ac_space=\ *)
2170 "s/'\''/'\''\\\\'\'''\''/g;
2171 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2174 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2182 ## ----------------- ##
2183 ## Output variables. ##
2184 ## ----------------- ##
2187 for ac_var in $ac_subst_vars
2189 eval ac_val=\$$ac_var
2191 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2193 $as_echo "$ac_var='\''$ac_val'\''"
2197 if test -n "$ac_subst_files"; then
2199 ## ------------------- ##
2200 ## File substitutions. ##
2201 ## ------------------- ##
2204 for ac_var in $ac_subst_files
2206 eval ac_val=\$$ac_var
2208 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2210 $as_echo "$ac_var='\''$ac_val'\''"
2215 if test -s confdefs.h; then
2225 test "$ac_signal" != 0 &&
2226 $as_echo "$as_me: caught signal $ac_signal"
2227 $as_echo "$as_me: exit $exit_status"
2229 rm -f core *.core core.conftest.* &&
2230 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2233 for ac_signal in 1 2 13 15; do
2234 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2238 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2239 rm -f -r conftest* confdefs.h
2241 $as_echo "/* confdefs.h */" > confdefs.h
2243 # Predefined preprocessor variables.
2245 cat >>confdefs.h <<_ACEOF
2246 #define PACKAGE_NAME "$PACKAGE_NAME"
2249 cat >>confdefs.h <<_ACEOF
2250 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2253 cat >>confdefs.h <<_ACEOF
2254 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2257 cat >>confdefs.h <<_ACEOF
2258 #define PACKAGE_STRING "$PACKAGE_STRING"
2261 cat >>confdefs.h <<_ACEOF
2262 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2265 cat >>confdefs.h <<_ACEOF
2266 #define PACKAGE_URL "$PACKAGE_URL"
2270 # Let the site file select an alternate cache file if it wants to.
2271 # Prefer an explicitly selected file to automatically selected ones.
2274 if test -n "$CONFIG_SITE"; then
2275 ac_site_file1=$CONFIG_SITE
2276 elif test "x$prefix" != xNONE; then
2277 ac_site_file1=$prefix/share/config.site
2278 ac_site_file2=$prefix/etc/config.site
2280 ac_site_file1=$ac_default_prefix/share/config.site
2281 ac_site_file2=$ac_default_prefix/etc/config.site
2283 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2285 test "x$ac_site_file" = xNONE && continue
2286 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2288 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2289 sed 's/^/| /' "$ac_site_file" >&5
2294 if test -r "$cache_file"; then
2295 # Some versions of bash will fail to source /dev/null (special files
2296 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2297 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2299 $as_echo "$as_me: loading cache $cache_file" >&6;}
2301 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2302 *) . "./$cache_file";;
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2307 $as_echo "$as_me: creating cache $cache_file" >&6;}
2311 # Check that the precious variables saved in the cache have kept the same
2313 ac_cache_corrupted=false
2314 for ac_var in $ac_precious_vars; do
2315 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2316 eval ac_new_set=\$ac_env_${ac_var}_set
2317 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2318 eval ac_new_val=\$ac_env_${ac_var}_value
2319 case $ac_old_set,$ac_new_set in
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2322 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2323 ac_cache_corrupted=: ;;
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2326 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2327 ac_cache_corrupted=: ;;
2330 if test "x$ac_old_val" != "x$ac_new_val"; then
2331 # differences in whitespace do not lead to failure.
2332 ac_old_val_w=`echo x $ac_old_val`
2333 ac_new_val_w=`echo x $ac_new_val`
2334 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2336 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2337 ac_cache_corrupted=:
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2340 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2341 eval $ac_var=\$ac_old_val
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2344 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2346 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2349 # Pass precious variables to config.status.
2350 if test "$ac_new_set" = set; then
2352 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2353 *) ac_arg=$ac_var=$ac_new_val ;;
2355 case " $ac_configure_args " in
2356 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2357 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2361 if $ac_cache_corrupted; then
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2365 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2366 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2368 ## -------------------- ##
2369 ## Main body of script. ##
2370 ## -------------------- ##
2373 ac_cpp='$CPP $CPPFLAGS'
2374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2379 am__api_version='1.11'
2382 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2383 for ac_t in install-sh install.sh shtool; do
2384 if test -f "$ac_dir/$ac_t"; then
2386 ac_install_sh="$ac_aux_dir/$ac_t -c"
2391 if test -z "$ac_aux_dir"; then
2392 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2395 # These three variables are undocumented and unsupported,
2396 # and are intended to be withdrawn in a future Autoconf release.
2397 # They can cause serious problems if a builder's source tree is in a directory
2398 # whose full name contains unusual characters.
2399 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2400 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2401 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2404 # Find a good install program. We prefer a C program (faster),
2405 # so one script is as good as another. But avoid the broken or
2406 # incompatible versions:
2407 # SysV /etc/install, /usr/sbin/install
2408 # SunOS /usr/etc/install
2409 # IRIX /sbin/install
2411 # AmigaOS /C/install, which installs bootblocks on floppy discs
2412 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2413 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2414 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2415 # OS/2's system install, which has a completely different semantic
2416 # ./install, which can be erroneously created by make from ./install.sh.
2417 # Reject install programs that cannot install multiple files.
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2419 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2420 if test -z "$INSTALL"; then
2421 if test "${ac_cv_path_install+set}" = set; then :
2422 $as_echo_n "(cached) " >&6
2424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2428 test -z "$as_dir" && as_dir=.
2429 # Account for people who put trailing slashes in PATH elements.
2430 case $as_dir/ in #((
2431 ./ | .// | /[cC]/* | \
2432 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2433 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2436 # OSF1 and SCO ODT 3.0 have their own names for install.
2437 # Don't use installbsd from OSF since it installs stuff as root
2439 for ac_prog in ginstall scoinst install; do
2440 for ac_exec_ext in '' $ac_executable_extensions; do
2441 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2442 if test $ac_prog = install &&
2443 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2444 # AIX install. It has an incompatible calling convention.
2446 elif test $ac_prog = install &&
2447 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2448 # program-specific install script used by HP pwplus--don't use.
2451 rm -rf conftest.one conftest.two conftest.dir
2452 echo one > conftest.one
2453 echo two > conftest.two
2455 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2456 test -s conftest.one && test -s conftest.two &&
2457 test -s conftest.dir/conftest.one &&
2458 test -s conftest.dir/conftest.two
2460 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2473 rm -rf conftest.one conftest.two conftest.dir
2476 if test "${ac_cv_path_install+set}" = set; then
2477 INSTALL=$ac_cv_path_install
2479 # As a last resort, use the slow shell script. Don't cache a
2480 # value for INSTALL within a source directory, because that will
2481 # break other packages using the cache if that directory is
2482 # removed, or if the value is a relative name.
2483 INSTALL=$ac_install_sh
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2487 $as_echo "$INSTALL" >&6; }
2489 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2490 # It thinks the first close brace ends the variable substitution.
2491 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2493 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2495 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2498 $as_echo_n "checking whether build environment is sane... " >&6; }
2501 echo timestamp > conftest.file
2502 # Reject unsafe characters in $srcdir or the absolute working directory
2503 # name. Accept space and tab only in the latter.
2507 *[\\\"\#\$\&\'\`$am_lf]*)
2508 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2511 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2512 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2515 # Do `set' in a subshell so we don't clobber the current shell's
2516 # arguments. Must try -L first in case configure is actually a
2517 # symlink; some systems play weird games with the mod time of symlinks
2518 # (eg FreeBSD returns the mod time of the symlink's containing
2521 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2522 if test "$*" = "X"; then
2524 set X `ls -t "$srcdir/configure" conftest.file`
2527 if test "$*" != "X $srcdir/configure conftest.file" \
2528 && test "$*" != "X conftest.file $srcdir/configure"; then
2530 # If neither matched, then we have a broken ls. This can happen
2531 # if, for instance, CONFIG_SHELL is bash and it inherits a
2532 # broken ls alias from the environment. This has actually
2533 # happened. Such a system could not be considered "sane".
2534 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2535 alias in your environment" "$LINENO" 5
2538 test "$2" = conftest.file
2544 as_fn_error "newly created file is older than distributed files!
2545 Check your system clock" "$LINENO" 5
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2548 $as_echo "yes" >&6; }
2549 test "$program_prefix" != NONE &&
2550 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2551 # Use a double $ so make ignores it.
2552 test "$program_suffix" != NONE &&
2553 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2554 # Double any \ or $.
2555 # By default was `s,x,x', remove it if useless.
2556 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2557 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2559 # expand $ac_aux_dir to an absolute path
2560 am_aux_dir=`cd $ac_aux_dir && pwd`
2562 if test x"${MISSING+set}" != xset; then
2565 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2567 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2570 # Use eval to expand $SHELL
2571 if eval "$MISSING --run true"; then
2572 am_missing_run="$MISSING --run "
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2576 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2579 if test x"${install_sh}" != xset; then
2582 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2584 install_sh="\${SHELL} $am_aux_dir/install-sh"
2588 # Installed binaries are usually stripped using `strip' when the user
2589 # run `make install-strip'. However `strip' might not be the right
2590 # tool to use in cross-compilation environments, therefore Automake
2591 # will honor the `STRIP' environment variable to overrule this program.
2592 if test "$cross_compiling" != no; then
2593 if test -n "$ac_tool_prefix"; then
2594 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2595 set dummy ${ac_tool_prefix}strip; ac_word=$2
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2597 $as_echo_n "checking for $ac_word... " >&6; }
2598 if test "${ac_cv_prog_STRIP+set}" = set; then :
2599 $as_echo_n "(cached) " >&6
2601 if test -n "$STRIP"; then
2602 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608 test -z "$as_dir" && as_dir=.
2609 for ac_exec_ext in '' $ac_executable_extensions; do
2610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2611 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2621 STRIP=$ac_cv_prog_STRIP
2622 if test -n "$STRIP"; then
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2624 $as_echo "$STRIP" >&6; }
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2627 $as_echo "no" >&6; }
2632 if test -z "$ac_cv_prog_STRIP"; then
2634 # Extract the first word of "strip", so it can be a program name with args.
2635 set dummy strip; ac_word=$2
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2637 $as_echo_n "checking for $ac_word... " >&6; }
2638 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2639 $as_echo_n "(cached) " >&6
2641 if test -n "$ac_ct_STRIP"; then
2642 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648 test -z "$as_dir" && as_dir=.
2649 for ac_exec_ext in '' $ac_executable_extensions; do
2650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2651 ac_cv_prog_ac_ct_STRIP="strip"
2652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2661 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2662 if test -n "$ac_ct_STRIP"; then
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2664 $as_echo "$ac_ct_STRIP" >&6; }
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2667 $as_echo "no" >&6; }
2670 if test "x$ac_ct_STRIP" = x; then
2673 case $cross_compiling:$ac_tool_warned in
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2676 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2677 ac_tool_warned=yes ;;
2682 STRIP="$ac_cv_prog_STRIP"
2686 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2689 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2690 if test -z "$MKDIR_P"; then
2691 if test "${ac_cv_path_mkdir+set}" = set; then :
2692 $as_echo_n "(cached) " >&6
2694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2698 test -z "$as_dir" && as_dir=.
2699 for ac_prog in mkdir gmkdir; do
2700 for ac_exec_ext in '' $ac_executable_extensions; do
2701 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2702 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2703 'mkdir (GNU coreutils) '* | \
2704 'mkdir (coreutils) '* | \
2705 'mkdir (fileutils) '4.1*)
2706 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2716 test -d ./--version && rmdir ./--version
2717 if test "${ac_cv_path_mkdir+set}" = set; then
2718 MKDIR_P="$ac_cv_path_mkdir -p"
2720 # As a last resort, use the slow shell script. Don't cache a
2721 # value for MKDIR_P within a source directory, because that will
2722 # break other packages using the cache if that directory is
2723 # removed, or if the value is a relative name.
2724 MKDIR_P="$ac_install_sh -d"
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2728 $as_echo "$MKDIR_P" >&6; }
2732 [\\/$]* | ?:[\\/]*) ;;
2733 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2736 for ac_prog in gawk mawk nawk awk
2738 # Extract the first word of "$ac_prog", so it can be a program name with args.
2739 set dummy $ac_prog; ac_word=$2
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2741 $as_echo_n "checking for $ac_word... " >&6; }
2742 if test "${ac_cv_prog_AWK+set}" = set; then :
2743 $as_echo_n "(cached) " >&6
2745 if test -n "$AWK"; then
2746 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752 test -z "$as_dir" && as_dir=.
2753 for ac_exec_ext in '' $ac_executable_extensions; do
2754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2755 ac_cv_prog_AWK="$ac_prog"
2756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2766 if test -n "$AWK"; then
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2768 $as_echo "$AWK" >&6; }
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2771 $as_echo "no" >&6; }
2775 test -n "$AWK" && break
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2779 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2781 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2782 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2783 $as_echo_n "(cached) " >&6
2785 cat >conftest.make <<\_ACEOF
2788 @echo '@@@%%%=$(MAKE)=@@@%%%'
2790 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2791 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2793 eval ac_cv_prog_make_${ac_make}_set=yes;;
2795 eval ac_cv_prog_make_${ac_make}_set=no;;
2799 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2801 $as_echo "yes" >&6; }
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2805 $as_echo "no" >&6; }
2806 SET_MAKE="MAKE=${MAKE-make}"
2809 rm -rf .tst 2>/dev/null
2810 mkdir .tst 2>/dev/null
2811 if test -d .tst; then
2816 rmdir .tst 2>/dev/null
2818 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2819 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2820 # is not polluted with repeated "-I."
2821 am__isrc=' -I$(srcdir)'
2822 # test to see if srcdir already configured
2823 if test -f $srcdir/config.status; then
2824 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2828 # test whether we have cygpath
2829 if test -z "$CYGPATH_W"; then
2830 if (cygpath --version) >/dev/null 2>/dev/null; then
2831 CYGPATH_W='cygpath -w'
2838 # Define the identity of the package.
2843 cat >>confdefs.h <<_ACEOF
2844 #define PACKAGE "$PACKAGE"
2848 cat >>confdefs.h <<_ACEOF
2849 #define VERSION "$VERSION"
2852 # Some tools Automake needs.
2854 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2857 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2860 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2863 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2866 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2868 # We need awk for the "check" target. The system "awk" is bad on
2870 # Always define AMTAR for backward compatibility.
2872 AMTAR=${AMTAR-"${am_missing_run}tar"}
2874 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2882 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2883 # Check whether --enable-maintainer-mode was given.
2884 if test "${enable_maintainer_mode+set}" = set; then :
2885 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2887 USE_MAINTAINER_MODE=no
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2891 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2892 if test $USE_MAINTAINER_MODE = yes; then
2893 MAINTAINER_MODE_TRUE=
2894 MAINTAINER_MODE_FALSE='#'
2896 MAINTAINER_MODE_TRUE='#'
2897 MAINTAINER_MODE_FALSE=
2900 MAINT=$MAINTAINER_MODE_TRUE
2904 # Check whether --enable-lfs was given.
2905 if test "${enable_lfs+set}" = set; then :
2906 enableval=$enable_lfs;
2907 if test "x$enableval" = "xyes" ; then
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Large File Support should be enabled" >&5
2919 $as_echo_n "checking whether Large File Support should be enabled... " >&6; }
2920 if test $NBD_LFS -eq 1; then
2922 $as_echo "#define NBD_LFS 1" >>confdefs.h
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2925 $as_echo "yes" >&6; }
2927 $as_echo "#define NBD_LFS 0" >>confdefs.h
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2930 $as_echo "no" >&6; }
2933 # Check whether --enable-syslog was given.
2934 if test "${enable_syslog+set}" = set; then :
2935 enableval=$enable_syslog;
2936 if test "x$enableval" = "xyes" ; then
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether syslog logging is requested" >&5
2949 $as_echo_n "checking whether syslog logging is requested... " >&6; }
2950 if test $ISSERVER -eq 1; then
2952 $as_echo "#define ISSERVER 1" >>confdefs.h
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2955 $as_echo "yes" >&6; }
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2958 $as_echo "no" >&6; }
2961 # Check whether --enable-debug was given.
2962 if test "${enable_debug+set}" = set; then :
2963 enableval=$enable_debug;
2964 if test "x$enableval" = "xyes"; then
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a debugging version is requested" >&5
2977 $as_echo_n "checking whether a debugging version is requested... " >&6; }
2978 if test $DODBG -eq 1; then
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2980 $as_echo "yes" >&6; }
2981 if test $ISSERVER -eq 1; then
2982 as_fn_error "You requested both syslog logging and a debugging version of the server. Bad idea!" "$LINENO" 5
2985 $as_echo "#define DODBG 1" >>confdefs.h
2988 $as_echo "#define NOFORK 1" >>confdefs.h
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2992 $as_echo "no" >&6; }
2995 # Check whether --enable-sdp was given.
2996 if test "${enable_sdp+set}" = set; then :
2997 enableval=$enable_sdp;
2998 if test "x$enableval" = "xyes"; then
3000 $as_echo "#define WITH_SDP 1" >>confdefs.h
3009 ac_cpp='$CPP $CPPFLAGS'
3010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3013 if test -n "$ac_tool_prefix"; then
3014 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3015 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3017 $as_echo_n "checking for $ac_word... " >&6; }
3018 if test "${ac_cv_prog_CC+set}" = set; then :
3019 $as_echo_n "(cached) " >&6
3021 if test -n "$CC"; then
3022 ac_cv_prog_CC="$CC" # Let the user override the test.
3024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028 test -z "$as_dir" && as_dir=.
3029 for ac_exec_ext in '' $ac_executable_extensions; do
3030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3031 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3042 if test -n "$CC"; then
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3044 $as_echo "$CC" >&6; }
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3047 $as_echo "no" >&6; }
3052 if test -z "$ac_cv_prog_CC"; then
3054 # Extract the first word of "gcc", so it can be a program name with args.
3055 set dummy gcc; ac_word=$2
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3057 $as_echo_n "checking for $ac_word... " >&6; }
3058 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3059 $as_echo_n "(cached) " >&6
3061 if test -n "$ac_ct_CC"; then
3062 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068 test -z "$as_dir" && as_dir=.
3069 for ac_exec_ext in '' $ac_executable_extensions; do
3070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3071 ac_cv_prog_ac_ct_CC="gcc"
3072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3081 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3082 if test -n "$ac_ct_CC"; then
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3084 $as_echo "$ac_ct_CC" >&6; }
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3087 $as_echo "no" >&6; }
3090 if test "x$ac_ct_CC" = x; then
3093 case $cross_compiling:$ac_tool_warned in
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3097 ac_tool_warned=yes ;;
3105 if test -z "$CC"; then
3106 if test -n "$ac_tool_prefix"; then
3107 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3108 set dummy ${ac_tool_prefix}cc; ac_word=$2
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3110 $as_echo_n "checking for $ac_word... " >&6; }
3111 if test "${ac_cv_prog_CC+set}" = set; then :
3112 $as_echo_n "(cached) " >&6
3114 if test -n "$CC"; then
3115 ac_cv_prog_CC="$CC" # Let the user override the test.
3117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121 test -z "$as_dir" && as_dir=.
3122 for ac_exec_ext in '' $ac_executable_extensions; do
3123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3124 ac_cv_prog_CC="${ac_tool_prefix}cc"
3125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3135 if test -n "$CC"; then
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3137 $as_echo "$CC" >&6; }
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3140 $as_echo "no" >&6; }
3146 if test -z "$CC"; then
3147 # Extract the first word of "cc", so it can be a program name with args.
3148 set dummy cc; ac_word=$2
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3150 $as_echo_n "checking for $ac_word... " >&6; }
3151 if test "${ac_cv_prog_CC+set}" = set; then :
3152 $as_echo_n "(cached) " >&6
3154 if test -n "$CC"; then
3155 ac_cv_prog_CC="$CC" # Let the user override the test.
3158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162 test -z "$as_dir" && as_dir=.
3163 for ac_exec_ext in '' $ac_executable_extensions; do
3164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3165 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3166 ac_prog_rejected=yes
3170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3177 if test $ac_prog_rejected = yes; then
3178 # We found a bogon in the path, so make sure we never use it.
3179 set dummy $ac_cv_prog_CC
3181 if test $# != 0; then
3182 # We chose a different compiler from the bogus one.
3183 # However, it has the same basename, so the bogon will be chosen
3184 # first if we set CC to just the basename; use the full file name.
3186 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3192 if test -n "$CC"; then
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3194 $as_echo "$CC" >&6; }
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197 $as_echo "no" >&6; }
3202 if test -z "$CC"; then
3203 if test -n "$ac_tool_prefix"; then
3204 for ac_prog in cl.exe
3206 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3207 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3209 $as_echo_n "checking for $ac_word... " >&6; }
3210 if test "${ac_cv_prog_CC+set}" = set; then :
3211 $as_echo_n "(cached) " >&6
3213 if test -n "$CC"; then
3214 ac_cv_prog_CC="$CC" # Let the user override the test.
3216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220 test -z "$as_dir" && as_dir=.
3221 for ac_exec_ext in '' $ac_executable_extensions; do
3222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3223 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3234 if test -n "$CC"; then
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3236 $as_echo "$CC" >&6; }
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3239 $as_echo "no" >&6; }
3243 test -n "$CC" && break
3246 if test -z "$CC"; then
3248 for ac_prog in cl.exe
3250 # Extract the first word of "$ac_prog", so it can be a program name with args.
3251 set dummy $ac_prog; ac_word=$2
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3253 $as_echo_n "checking for $ac_word... " >&6; }
3254 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3255 $as_echo_n "(cached) " >&6
3257 if test -n "$ac_ct_CC"; then
3258 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264 test -z "$as_dir" && as_dir=.
3265 for ac_exec_ext in '' $ac_executable_extensions; do
3266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3267 ac_cv_prog_ac_ct_CC="$ac_prog"
3268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3277 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3278 if test -n "$ac_ct_CC"; then
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3280 $as_echo "$ac_ct_CC" >&6; }
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3283 $as_echo "no" >&6; }
3287 test -n "$ac_ct_CC" && break
3290 if test "x$ac_ct_CC" = x; then
3293 case $cross_compiling:$ac_tool_warned in
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3297 ac_tool_warned=yes ;;
3306 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3308 as_fn_error "no acceptable C compiler found in \$PATH
3309 See \`config.log' for more details." "$LINENO" 5; }
3311 # Provide some information about the compiler.
3312 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3315 for ac_option in --version -v -V -qversion; do
3316 { { ac_try="$ac_compiler $ac_option >&5"
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3321 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3322 $as_echo "$ac_try_echo"; } >&5
3323 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3325 if test -s conftest.err; then
3327 ... rest of stderr output deleted ...
3328 10q' conftest.err >conftest.er1
3329 cat conftest.er1 >&5
3331 rm -f conftest.er1 conftest.err
3332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3333 test $ac_status = 0; }
3336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3337 /* end confdefs.h. */
3347 ac_clean_files_save=$ac_clean_files
3348 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3349 # Try to create an executable without -o first, disregard a.out.
3350 # It will help us diagnose broken compilers, and finding out an intuition
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3353 $as_echo_n "checking whether the C compiler works... " >&6; }
3354 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3356 # The possible output files:
3357 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3360 for ac_file in $ac_files
3363 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3364 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3369 if { { ac_try="$ac_link_default"
3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372 *) ac_try_echo=$ac_try;;
3374 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3375 $as_echo "$ac_try_echo"; } >&5
3376 (eval "$ac_link_default") 2>&5
3378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3379 test $ac_status = 0; }; then :
3380 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3381 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3382 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3383 # so that the user can short-circuit this test for compilers unknown to
3385 for ac_file in $ac_files ''
3387 test -f "$ac_file" || continue
3389 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3392 # We found the default executable, but exeext='' is most
3396 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3398 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3400 # We set ac_cv_exeext here because the later test for it is not
3401 # safe: cross compilers may not add the suffix if given an `-o'
3402 # argument, so we may need to know it at that point already.
3403 # Even if this section looks crufty: it has the advantage of
3410 test "$ac_cv_exeext" = no && ac_cv_exeext=
3415 if test -z "$ac_file"; then :
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3417 $as_echo "no" >&6; }
3418 $as_echo "$as_me: failed program was:" >&5
3419 sed 's/^/| /' conftest.$ac_ext >&5
3421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3423 { as_fn_set_status 77
3424 as_fn_error "C compiler cannot create executables
3425 See \`config.log' for more details." "$LINENO" 5; }; }
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3428 $as_echo "yes" >&6; }
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3431 $as_echo_n "checking for C compiler default output file name... " >&6; }
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3433 $as_echo "$ac_file" >&6; }
3434 ac_exeext=$ac_cv_exeext
3436 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3437 ac_clean_files=$ac_clean_files_save
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3439 $as_echo_n "checking for suffix of executables... " >&6; }
3440 if { { ac_try="$ac_link"
3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443 *) ac_try_echo=$ac_try;;
3445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3446 $as_echo "$ac_try_echo"; } >&5
3447 (eval "$ac_link") 2>&5
3449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3450 test $ac_status = 0; }; then :
3451 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3452 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3453 # work properly (i.e., refer to `conftest.exe'), while it won't with
3455 for ac_file in conftest.exe conftest conftest.*; do
3456 test -f "$ac_file" || continue
3458 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3459 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3465 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3467 as_fn_error "cannot compute suffix of executables: cannot compile and link
3468 See \`config.log' for more details." "$LINENO" 5; }
3470 rm -f conftest conftest$ac_cv_exeext
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3472 $as_echo "$ac_cv_exeext" >&6; }
3474 rm -f conftest.$ac_ext
3475 EXEEXT=$ac_cv_exeext
3477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478 /* end confdefs.h. */
3483 FILE *f = fopen ("conftest.out", "w");
3484 return ferror (f) || fclose (f) != 0;
3490 ac_clean_files="$ac_clean_files conftest.out"
3491 # Check that the compiler produces executables we can run. If not, either
3492 # the compiler is broken, or we cross compile.
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3494 $as_echo_n "checking whether we are cross compiling... " >&6; }
3495 if test "$cross_compiling" != yes; then
3496 { { ac_try="$ac_link"
3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3502 $as_echo "$ac_try_echo"; } >&5
3503 (eval "$ac_link") 2>&5
3505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3506 test $ac_status = 0; }
3507 if { ac_try='./conftest$ac_cv_exeext'
3508 { { case "(($ac_try" in
3509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510 *) ac_try_echo=$ac_try;;
3512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3513 $as_echo "$ac_try_echo"; } >&5
3514 (eval "$ac_try") 2>&5
3516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3517 test $ac_status = 0; }; }; then
3520 if test "$cross_compiling" = maybe; then
3523 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3525 as_fn_error "cannot run C compiled programs.
3526 If you meant to cross compile, use \`--host'.
3527 See \`config.log' for more details." "$LINENO" 5; }
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3532 $as_echo "$cross_compiling" >&6; }
3534 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3535 ac_clean_files=$ac_clean_files_save
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3537 $as_echo_n "checking for suffix of object files... " >&6; }
3538 if test "${ac_cv_objext+set}" = set; then :
3539 $as_echo_n "(cached) " >&6
3541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542 /* end confdefs.h. */
3552 rm -f conftest.o conftest.obj
3553 if { { ac_try="$ac_compile"
3555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3556 *) ac_try_echo=$ac_try;;
3558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3559 $as_echo "$ac_try_echo"; } >&5
3560 (eval "$ac_compile") 2>&5
3562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3563 test $ac_status = 0; }; then :
3564 for ac_file in conftest.o conftest.obj conftest.*; do
3565 test -f "$ac_file" || continue;
3567 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3568 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3573 $as_echo "$as_me: failed program was:" >&5
3574 sed 's/^/| /' conftest.$ac_ext >&5
3576 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3578 as_fn_error "cannot compute suffix of object files: cannot compile
3579 See \`config.log' for more details." "$LINENO" 5; }
3581 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3584 $as_echo "$ac_cv_objext" >&6; }
3585 OBJEXT=$ac_cv_objext
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3588 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3589 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3590 $as_echo_n "(cached) " >&6
3592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3593 /* end confdefs.h. */
3606 if ac_fn_c_try_compile "$LINENO"; then :
3611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3612 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3616 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3617 if test $ac_compiler_gnu = yes; then
3622 ac_test_CFLAGS=${CFLAGS+set}
3623 ac_save_CFLAGS=$CFLAGS
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3625 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3626 if test "${ac_cv_prog_cc_g+set}" = set; then :
3627 $as_echo_n "(cached) " >&6
3629 ac_save_c_werror_flag=$ac_c_werror_flag
3630 ac_c_werror_flag=yes
3633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3634 /* end confdefs.h. */
3644 if ac_fn_c_try_compile "$LINENO"; then :
3648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649 /* end confdefs.h. */
3659 if ac_fn_c_try_compile "$LINENO"; then :
3662 ac_c_werror_flag=$ac_save_c_werror_flag
3664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665 /* end confdefs.h. */
3675 if ac_fn_c_try_compile "$LINENO"; then :
3678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3683 ac_c_werror_flag=$ac_save_c_werror_flag
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3686 $as_echo "$ac_cv_prog_cc_g" >&6; }
3687 if test "$ac_test_CFLAGS" = set; then
3688 CFLAGS=$ac_save_CFLAGS
3689 elif test $ac_cv_prog_cc_g = yes; then
3690 if test "$GCC" = yes; then
3696 if test "$GCC" = yes; then
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3703 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3704 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3705 $as_echo_n "(cached) " >&6
3707 ac_cv_prog_cc_c89=no
3709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3710 /* end confdefs.h. */
3713 #include <sys/types.h>
3714 #include <sys/stat.h>
3715 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3716 struct buf { int x; };
3717 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3718 static char *e (p, i)
3724 static char *f (char * (*g) (char **, int), char **p, ...)
3729 s = g (p, va_arg (v,int));
3734 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3735 function prototypes and stuff, but not '\xHH' hex character constants.
3736 These don't provoke an error unfortunately, instead are silently treated
3737 as 'x'. The following induces an error, until -std is added to get
3738 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3739 array size at least. It's necessary to write '\x00'==0 to get something
3740 that's true only with -std. */
3741 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3743 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3744 inside strings and character constants. */
3746 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3748 int test (int i, double x);
3749 struct s1 {int (*f) (int a);};
3750 struct s2 {int (*f) (double a);};
3751 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3757 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3762 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3763 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3765 CC="$ac_save_CC $ac_arg"
3766 if ac_fn_c_try_compile "$LINENO"; then :
3767 ac_cv_prog_cc_c89=$ac_arg
3769 rm -f core conftest.err conftest.$ac_objext
3770 test "x$ac_cv_prog_cc_c89" != "xno" && break
3772 rm -f conftest.$ac_ext
3777 case "x$ac_cv_prog_cc_c89" in
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3780 $as_echo "none needed" >&6; } ;;
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3783 $as_echo "unsupported" >&6; } ;;
3785 CC="$CC $ac_cv_prog_cc_c89"
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3787 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3789 if test "x$ac_cv_prog_cc_c89" != xno; then :
3794 ac_cpp='$CPP $CPPFLAGS'
3795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3798 DEPDIR="${am__leading_dot}deps"
3800 ac_config_commands="$ac_config_commands depfiles"
3803 am_make=${MAKE-make}
3804 cat > confinc << 'END'
3806 @echo this is the am__doit target
3809 # If we don't find an include directive, just comment out the code.
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3811 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3815 # First try GNU make style include.
3816 echo "include confinc" > confmf
3817 # Ignore all kinds of additional output from `make'.
3818 case `$am_make -s -f confmf 2> /dev/null` in #(
3819 *the\ am__doit\ target*)
3825 # Now try BSD make style include.
3826 if test "$am__include" = "#"; then
3827 echo '.include "confinc"' > confmf
3828 case `$am_make -s -f confmf 2> /dev/null` in #(
3829 *the\ am__doit\ target*)
3830 am__include=.include
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3839 $as_echo "$_am_result" >&6; }
3840 rm -f confinc confmf
3842 # Check whether --enable-dependency-tracking was given.
3843 if test "${enable_dependency_tracking+set}" = set; then :
3844 enableval=$enable_dependency_tracking;
3847 if test "x$enable_dependency_tracking" != xno; then
3848 am_depcomp="$ac_aux_dir/depcomp"
3851 if test "x$enable_dependency_tracking" != xno; then
3861 depcc="$CC" am_compiler_list=
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3864 $as_echo_n "checking dependency style of $depcc... " >&6; }
3865 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3866 $as_echo_n "(cached) " >&6
3868 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3869 # We make a subdir and do the tests there. Otherwise we can end up
3870 # making bogus files that we don't know about and never remove. For
3871 # instance it was reported that on HP-UX the gcc test will end up
3872 # making a dummy file named `D' -- because `-MD' means `put the output
3875 # Copy depcomp to subdir because otherwise we won't find it if we're
3876 # using a relative directory.
3877 cp "$am_depcomp" conftest.dir
3879 # We will build objects and dependencies in a subdirectory because
3880 # it helps to detect inapplicable dependency modes. For instance
3881 # both Tru64's cc and ICC support -MD to output dependencies as a
3882 # side effect of compilation, but ICC will put the dependencies in
3883 # the current directory while Tru64 will put them in the object
3887 am_cv_CC_dependencies_compiler_type=none
3888 if test "$am_compiler_list" = ""; then
3889 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3892 case " $depcc " in #(
3893 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3896 for depmode in $am_compiler_list; do
3897 # Setup a source with many dependencies, because some compilers
3898 # like to wrap large dependency lists on column 80 (with \), and
3899 # we should not choose a depcomp mode which is confused by this.
3901 # We need to recreate these files for each test, as the compiler may
3902 # overwrite some of them when testing with obscure command lines.
3903 # This happens at least with the AIX C compiler.
3905 for i in 1 2 3 4 5 6; do
3906 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3907 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3908 # Solaris 8's {/usr,}/bin/sh.
3909 touch sub/conftst$i.h
3911 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3913 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3914 # mode. It turns out that the SunPro C++ compiler does not properly
3915 # handle `-M -o', and we need to detect this. Also, some Intel
3916 # versions had trouble with output in subdirs
3917 am__obj=sub/conftest.${OBJEXT-o}
3918 am__minus_obj="-o $am__obj"
3921 # This depmode causes a compiler race in universal mode.
3922 test "$am__universal" = false || continue
3925 # after this tag, mechanisms are not by side-effect, so they'll
3926 # only be used when explicitly requested
3927 if test "x$enable_dependency_tracking" = xyes; then
3933 msvisualcpp | msvcmsys)
3934 # This compiler won't grok `-c -o', but also, the minuso test has
3935 # not run yet. These depmodes are late enough in the game, and
3936 # so weak that their functioning should not be impacted.
3937 am__obj=conftest.${OBJEXT-o}
3942 if depmode=$depmode \
3943 source=sub/conftest.c object=$am__obj \
3944 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3945 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3946 >/dev/null 2>conftest.err &&
3947 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3948 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3949 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3950 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3951 # icc doesn't choke on unknown options, it will just issue warnings
3952 # or remarks (even with -Werror). So we grep stderr for any message
3953 # that says an option was ignored or not supported.
3954 # When given -MP, icc 7.0 and 7.1 complain thusly:
3955 # icc: Command line warning: ignoring option '-M'; no argument required
3956 # The diagnosis changed in icc 8.0:
3957 # icc: Command line remark: option '-MP' not supported
3958 if (grep 'ignoring option' conftest.err ||
3959 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3960 am_cv_CC_dependencies_compiler_type=$depmode
3969 am_cv_CC_dependencies_compiler_type=none
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3974 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3975 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3978 test "x$enable_dependency_tracking" != xno \
3979 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3981 am__fastdepCC_FALSE='#'
3983 am__fastdepCC_TRUE='#'
3984 am__fastdepCC_FALSE=
3989 ac_cpp='$CPP $CPPFLAGS'
3990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3994 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3995 # On Suns, sometimes $CPP names a directory.
3996 if test -n "$CPP" && test -d "$CPP"; then
3999 if test -z "$CPP"; then
4000 if test "${ac_cv_prog_CPP+set}" = set; then :
4001 $as_echo_n "(cached) " >&6
4003 # Double quotes because CPP needs to be expanded
4004 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4007 for ac_c_preproc_warn_flag in '' yes
4009 # Use a header file that comes with gcc, so configuring glibc
4010 # with a fresh cross-compiler works.
4011 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4012 # <limits.h> exists even on freestanding compilers.
4013 # On the NeXT, cc -E runs the code through the compiler's parser,
4014 # not just through cpp. "Syntax error" is here to catch this case.
4015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4016 /* end confdefs.h. */
4018 # include <limits.h>
4020 # include <assert.h>
4024 if ac_fn_c_try_cpp "$LINENO"; then :
4027 # Broken: fails on valid input.
4030 rm -f conftest.err conftest.$ac_ext
4032 # OK, works on sane cases. Now check whether nonexistent headers
4033 # can be detected and how.
4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h. */
4036 #include <ac_nonexistent.h>
4038 if ac_fn_c_try_cpp "$LINENO"; then :
4039 # Broken: success on invalid input.
4042 # Passes both tests.
4046 rm -f conftest.err conftest.$ac_ext
4049 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4050 rm -f conftest.err conftest.$ac_ext
4051 if $ac_preproc_ok; then :
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4064 $as_echo "$CPP" >&6; }
4066 for ac_c_preproc_warn_flag in '' yes
4068 # Use a header file that comes with gcc, so configuring glibc
4069 # with a fresh cross-compiler works.
4070 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4071 # <limits.h> exists even on freestanding compilers.
4072 # On the NeXT, cc -E runs the code through the compiler's parser,
4073 # not just through cpp. "Syntax error" is here to catch this case.
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4077 # include <limits.h>
4079 # include <assert.h>
4083 if ac_fn_c_try_cpp "$LINENO"; then :
4086 # Broken: fails on valid input.
4089 rm -f conftest.err conftest.$ac_ext
4091 # OK, works on sane cases. Now check whether nonexistent headers
4092 # can be detected and how.
4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094 /* end confdefs.h. */
4095 #include <ac_nonexistent.h>
4097 if ac_fn_c_try_cpp "$LINENO"; then :
4098 # Broken: success on invalid input.
4101 # Passes both tests.
4105 rm -f conftest.err conftest.$ac_ext
4108 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4109 rm -f conftest.err conftest.$ac_ext
4110 if $ac_preproc_ok; then :
4113 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4114 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4115 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4116 See \`config.log' for more details." "$LINENO" 5; }
4120 ac_cpp='$CPP $CPPFLAGS'
4121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4126 # Make sure we can run config.sub.
4127 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4128 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4131 $as_echo_n "checking build system type... " >&6; }
4132 if test "${ac_cv_build+set}" = set; then :
4133 $as_echo_n "(cached) " >&6
4135 ac_build_alias=$build_alias
4136 test "x$ac_build_alias" = x &&
4137 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4138 test "x$ac_build_alias" = x &&
4139 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4140 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4141 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4145 $as_echo "$ac_cv_build" >&6; }
4146 case $ac_cv_build in
4148 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4151 ac_save_IFS=$IFS; IFS='-'
4157 # Remember, the first character of IFS is used to create $*,
4158 # except with old shells:
4161 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4165 $as_echo_n "checking host system type... " >&6; }
4166 if test "${ac_cv_host+set}" = set; then :
4167 $as_echo_n "(cached) " >&6
4169 if test "x$host_alias" = x; then
4170 ac_cv_host=$ac_cv_build
4172 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4173 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4178 $as_echo "$ac_cv_host" >&6; }
4181 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4184 ac_save_IFS=$IFS; IFS='-'
4190 # Remember, the first character of IFS is used to create $*,
4191 # except with old shells:
4194 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4200 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4201 if test "${ac_cv_path_GREP+set}" = set; then :
4202 $as_echo_n "(cached) " >&6
4204 if test -z "$GREP"; then
4205 ac_path_GREP_found=false
4206 # Loop through the user's path and test for each of PROGNAME-LIST
4207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4211 test -z "$as_dir" && as_dir=.
4212 for ac_prog in grep ggrep; do
4213 for ac_exec_ext in '' $ac_executable_extensions; do
4214 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4215 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4216 # Check for GNU ac_path_GREP and select it if it is found.
4217 # Check for GNU $ac_path_GREP
4218 case `"$ac_path_GREP" --version 2>&1` in
4220 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4223 $as_echo_n 0123456789 >"conftest.in"
4226 cat "conftest.in" "conftest.in" >"conftest.tmp"
4227 mv "conftest.tmp" "conftest.in"
4228 cp "conftest.in" "conftest.nl"
4229 $as_echo 'GREP' >> "conftest.nl"
4230 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4231 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4232 as_fn_arith $ac_count + 1 && ac_count=$as_val
4233 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4234 # Best one so far, save it but keep looking for a better one
4235 ac_cv_path_GREP="$ac_path_GREP"
4236 ac_path_GREP_max=$ac_count
4238 # 10*(2^10) chars as input seems more than enough
4239 test $ac_count -gt 10 && break
4241 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4244 $ac_path_GREP_found && break 3
4249 if test -z "$ac_cv_path_GREP"; then
4250 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4253 ac_cv_path_GREP=$GREP
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4258 $as_echo "$ac_cv_path_GREP" >&6; }
4259 GREP="$ac_cv_path_GREP"
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4263 $as_echo_n "checking for egrep... " >&6; }
4264 if test "${ac_cv_path_EGREP+set}" = set; then :
4265 $as_echo_n "(cached) " >&6
4267 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4268 then ac_cv_path_EGREP="$GREP -E"
4270 if test -z "$EGREP"; then
4271 ac_path_EGREP_found=false
4272 # Loop through the user's path and test for each of PROGNAME-LIST
4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4277 test -z "$as_dir" && as_dir=.
4278 for ac_prog in egrep; do
4279 for ac_exec_ext in '' $ac_executable_extensions; do
4280 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4281 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4282 # Check for GNU ac_path_EGREP and select it if it is found.
4283 # Check for GNU $ac_path_EGREP
4284 case `"$ac_path_EGREP" --version 2>&1` in
4286 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4289 $as_echo_n 0123456789 >"conftest.in"
4292 cat "conftest.in" "conftest.in" >"conftest.tmp"
4293 mv "conftest.tmp" "conftest.in"
4294 cp "conftest.in" "conftest.nl"
4295 $as_echo 'EGREP' >> "conftest.nl"
4296 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4297 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4298 as_fn_arith $ac_count + 1 && ac_count=$as_val
4299 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4300 # Best one so far, save it but keep looking for a better one
4301 ac_cv_path_EGREP="$ac_path_EGREP"
4302 ac_path_EGREP_max=$ac_count
4304 # 10*(2^10) chars as input seems more than enough
4305 test $ac_count -gt 10 && break
4307 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4310 $ac_path_EGREP_found && break 3
4315 if test -z "$ac_cv_path_EGREP"; then
4316 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4319 ac_cv_path_EGREP=$EGREP
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4325 $as_echo "$ac_cv_path_EGREP" >&6; }
4326 EGREP="$ac_cv_path_EGREP"
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4330 $as_echo_n "checking for ANSI C header files... " >&6; }
4331 if test "${ac_cv_header_stdc+set}" = set; then :
4332 $as_echo_n "(cached) " >&6
4334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335 /* end confdefs.h. */
4349 if ac_fn_c_try_compile "$LINENO"; then :
4350 ac_cv_header_stdc=yes
4352 ac_cv_header_stdc=no
4354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4356 if test $ac_cv_header_stdc = yes; then
4357 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359 /* end confdefs.h. */
4363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4364 $EGREP "memchr" >/dev/null 2>&1; then :
4367 ac_cv_header_stdc=no
4373 if test $ac_cv_header_stdc = yes; then
4374 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376 /* end confdefs.h. */
4380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4381 $EGREP "free" >/dev/null 2>&1; then :
4384 ac_cv_header_stdc=no
4390 if test $ac_cv_header_stdc = yes; then
4391 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4392 if test "$cross_compiling" = yes; then :
4395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396 /* end confdefs.h. */
4399 #if ((' ' & 0x0FF) == 0x020)
4400 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4401 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4403 # define ISLOWER(c) \
4404 (('a' <= (c) && (c) <= 'i') \
4405 || ('j' <= (c) && (c) <= 'r') \
4406 || ('s' <= (c) && (c) <= 'z'))
4407 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4410 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4415 for (i = 0; i < 256; i++)
4416 if (XOR (islower (i), ISLOWER (i))
4417 || toupper (i) != TOUPPER (i))
4422 if ac_fn_c_try_run "$LINENO"; then :
4425 ac_cv_header_stdc=no
4427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4428 conftest.$ac_objext conftest.beam conftest.$ac_ext
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4434 $as_echo "$ac_cv_header_stdc" >&6; }
4435 if test $ac_cv_header_stdc = yes; then
4437 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4441 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4442 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4443 inttypes.h stdint.h unistd.h
4445 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4446 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4448 eval as_val=\$$as_ac_Header
4449 if test "x$as_val" = x""yes; then :
4450 cat >>confdefs.h <<_ACEOF
4451 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4460 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4461 if test "${ac_cv_c_bigendian+set}" = set; then :
4462 $as_echo_n "(cached) " >&6
4464 ac_cv_c_bigendian=unknown
4465 # See if we're dealing with a universal compiler.
4466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4467 /* end confdefs.h. */
4468 #ifndef __APPLE_CC__
4469 not a universal capable compiler
4474 if ac_fn_c_try_compile "$LINENO"; then :
4476 # Check for potential -arch flags. It is not universal unless
4477 # there are at least two -arch flags with different values.
4480 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4481 if test -n "$ac_prev"; then
4483 i?86 | x86_64 | ppc | ppc64)
4484 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4487 ac_cv_c_bigendian=universal
4493 elif test "x$ac_word" = "x-arch"; then
4498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4499 if test $ac_cv_c_bigendian = unknown; then
4500 # See if sys/param.h defines the BYTE_ORDER macro.
4501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4502 /* end confdefs.h. */
4503 #include <sys/types.h>
4504 #include <sys/param.h>
4509 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4510 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4519 if ac_fn_c_try_compile "$LINENO"; then :
4520 # It does; now see whether it defined to BIG_ENDIAN or not.
4521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4522 /* end confdefs.h. */
4523 #include <sys/types.h>
4524 #include <sys/param.h>
4529 #if BYTE_ORDER != BIG_ENDIAN
4537 if ac_fn_c_try_compile "$LINENO"; then :
4538 ac_cv_c_bigendian=yes
4540 ac_cv_c_bigendian=no
4542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4546 if test $ac_cv_c_bigendian = unknown; then
4547 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4549 /* end confdefs.h. */
4555 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4563 if ac_fn_c_try_compile "$LINENO"; then :
4564 # It does; now see whether it defined to _BIG_ENDIAN or not.
4565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566 /* end confdefs.h. */
4580 if ac_fn_c_try_compile "$LINENO"; then :
4581 ac_cv_c_bigendian=yes
4583 ac_cv_c_bigendian=no
4585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4589 if test $ac_cv_c_bigendian = unknown; then
4590 # Compile a test program.
4591 if test "$cross_compiling" = yes; then :
4592 # Try to guess by grepping values from an object file.
4593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4594 /* end confdefs.h. */
4595 short int ascii_mm[] =
4596 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4597 short int ascii_ii[] =
4598 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4599 int use_ascii (int i) {
4600 return ascii_mm[i] + ascii_ii[i];
4602 short int ebcdic_ii[] =
4603 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4604 short int ebcdic_mm[] =
4605 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4606 int use_ebcdic (int i) {
4607 return ebcdic_mm[i] + ebcdic_ii[i];
4614 return use_ascii (foo) == use_ebcdic (foo);
4619 if ac_fn_c_try_compile "$LINENO"; then :
4620 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4621 ac_cv_c_bigendian=yes
4623 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4624 if test "$ac_cv_c_bigendian" = unknown; then
4625 ac_cv_c_bigendian=no
4627 # finding both strings is unlikely to happen, but who knows?
4628 ac_cv_c_bigendian=unknown
4632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4635 /* end confdefs.h. */
4636 $ac_includes_default
4641 /* Are we little or big endian? From Harbison&Steele. */
4645 char c[sizeof (long int)];
4648 return u.c[sizeof (long int) - 1] == 1;
4654 if ac_fn_c_try_run "$LINENO"; then :
4655 ac_cv_c_bigendian=no
4657 ac_cv_c_bigendian=yes
4659 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4660 conftest.$ac_objext conftest.beam conftest.$ac_ext
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4666 $as_echo "$ac_cv_c_bigendian" >&6; }
4667 case $ac_cv_c_bigendian in #(
4669 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4675 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4679 as_fn_error "unknown endianness
4680 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4684 $as_echo_n "checking for inline... " >&6; }
4685 if test "${ac_cv_c_inline+set}" = set; then :
4686 $as_echo_n "(cached) " >&6
4689 for ac_kw in inline __inline__ __inline; do
4690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4691 /* end confdefs.h. */
4694 static $ac_kw foo_t static_foo () {return 0; }
4695 $ac_kw foo_t foo () {return 0; }
4699 if ac_fn_c_try_compile "$LINENO"; then :
4700 ac_cv_c_inline=$ac_kw
4702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4703 test "$ac_cv_c_inline" != no && break
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4708 $as_echo "$ac_cv_c_inline" >&6; }
4710 case $ac_cv_c_inline in
4713 case $ac_cv_c_inline in
4715 *) ac_val=$ac_cv_c_inline;;
4717 cat >>confdefs.h <<_ACEOF
4719 #define inline $ac_val
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4726 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4727 if test "${ac_cv_c_const+set}" = set; then :
4728 $as_echo_n "(cached) " >&6
4730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4731 /* end confdefs.h. */
4736 /* FIXME: Include the comments suggested by Paul. */
4738 /* Ultrix mips cc rejects this. */
4739 typedef int charset[2];
4741 /* SunOS 4.1.1 cc rejects this. */
4742 char const *const *pcpcc;
4744 /* NEC SVR4.0.2 mips cc rejects this. */
4745 struct point {int x, y;};
4746 static struct point const zero = {0,0};
4747 /* AIX XL C 1.02.0.0 rejects this.
4748 It does not let you subtract one const X* pointer from another in
4749 an arm of an if-expression whose if-part is not a constant
4751 const char *g = "string";
4752 pcpcc = &g + (g ? g-g : 0);
4753 /* HPUX 7.0 cc rejects these. */
4755 ppc = (char**) pcpcc;
4756 pcpcc = (char const *const *) ppc;
4757 { /* SCO 3.2v4 cc rejects this. */
4759 char const *s = 0 ? (char *) 0 : (char const *) 0;
4764 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4766 const int *foo = &x[0];
4769 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4770 typedef const int *iptr;
4774 { /* AIX XL C 1.02.0.0 rejects this saying
4775 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4776 struct s { int j; const int *ap[3]; };
4777 struct s *b; b->j = 5;
4779 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4783 return !cs[0] && !zero.x;
4790 if ac_fn_c_try_compile "$LINENO"; then :
4795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4798 $as_echo "$ac_cv_c_const" >&6; }
4799 if test $ac_cv_c_const = no; then
4801 $as_echo "#define const /**/" >>confdefs.h
4805 # The cast to long int works around a bug in the HP C Compiler
4806 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4807 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4808 # This bug is HP SR number 8606223364.
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short int" >&5
4810 $as_echo_n "checking size of unsigned short int... " >&6; }
4811 if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then :
4812 $as_echo_n "(cached) " >&6
4814 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short int))" "ac_cv_sizeof_unsigned_short_int" "$ac_includes_default"; then :
4817 if test "$ac_cv_type_unsigned_short_int" = yes; then
4818 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4820 { as_fn_set_status 77
4821 as_fn_error "cannot compute sizeof (unsigned short int)
4822 See \`config.log' for more details." "$LINENO" 5; }; }
4824 ac_cv_sizeof_unsigned_short_int=0
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short_int" >&5
4830 $as_echo "$ac_cv_sizeof_unsigned_short_int" >&6; }
4834 cat >>confdefs.h <<_ACEOF
4835 #define SIZEOF_UNSIGNED_SHORT_INT $ac_cv_sizeof_unsigned_short_int
4839 # The cast to long int works around a bug in the HP C Compiler
4840 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4841 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4842 # This bug is HP SR number 8606223364.
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
4844 $as_echo_n "checking size of unsigned int... " >&6; }
4845 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
4846 $as_echo_n "(cached) " >&6
4848 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
4851 if test "$ac_cv_type_unsigned_int" = yes; then
4852 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4853 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4854 { as_fn_set_status 77
4855 as_fn_error "cannot compute sizeof (unsigned int)
4856 See \`config.log' for more details." "$LINENO" 5; }; }
4858 ac_cv_sizeof_unsigned_int=0
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
4864 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
4868 cat >>confdefs.h <<_ACEOF
4869 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
4873 # The cast to long int works around a bug in the HP C Compiler
4874 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4875 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4876 # This bug is HP SR number 8606223364.
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long int" >&5
4878 $as_echo_n "checking size of unsigned long int... " >&6; }
4879 if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then :
4880 $as_echo_n "(cached) " >&6
4882 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long int))" "ac_cv_sizeof_unsigned_long_int" "$ac_includes_default"; then :
4885 if test "$ac_cv_type_unsigned_long_int" = yes; then
4886 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4887 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4888 { as_fn_set_status 77
4889 as_fn_error "cannot compute sizeof (unsigned long int)
4890 See \`config.log' for more details." "$LINENO" 5; }; }
4892 ac_cv_sizeof_unsigned_long_int=0
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_int" >&5
4898 $as_echo "$ac_cv_sizeof_unsigned_long_int" >&6; }
4902 cat >>confdefs.h <<_ACEOF
4903 #define SIZEOF_UNSIGNED_LONG_INT $ac_cv_sizeof_unsigned_long_int
4907 # The cast to long int works around a bug in the HP C Compiler
4908 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4909 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4910 # This bug is HP SR number 8606223364.
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long int" >&5
4912 $as_echo_n "checking size of unsigned long long int... " >&6; }
4913 if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then :
4914 $as_echo_n "(cached) " >&6
4916 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long int))" "ac_cv_sizeof_unsigned_long_long_int" "$ac_includes_default"; then :
4919 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
4920 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4922 { as_fn_set_status 77
4923 as_fn_error "cannot compute sizeof (unsigned long long int)
4924 See \`config.log' for more details." "$LINENO" 5; }; }
4926 ac_cv_sizeof_unsigned_long_long_int=0
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
4932 $as_echo "$ac_cv_sizeof_unsigned_long_long_int" >&6; }
4936 cat >>confdefs.h <<_ACEOF
4937 #define SIZEOF_UNSIGNED_LONG_LONG_INT $ac_cv_sizeof_unsigned_long_long_int
4941 for ac_func in llseek alarm gethostbyname inet_ntoa memset socket strerror strstr
4943 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4944 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4945 eval as_val=\$$as_ac_var
4946 if test "x$as_val" = x""yes; then :
4947 cat >>confdefs.h <<_ACEOF
4948 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4954 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
4955 if test "x$ac_cv_type_pid_t" = x""yes; then :
4959 cat >>confdefs.h <<_ACEOF
4965 for ac_header in vfork.h
4967 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
4968 if test "x$ac_cv_header_vfork_h" = x""yes; then :
4969 cat >>confdefs.h <<_ACEOF
4970 #define HAVE_VFORK_H 1
4977 for ac_func in fork vfork
4979 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4980 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4981 eval as_val=\$$as_ac_var
4982 if test "x$as_val" = x""yes; then :
4983 cat >>confdefs.h <<_ACEOF
4984 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4990 if test "x$ac_cv_func_fork" = xyes; then
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
4992 $as_echo_n "checking for working fork... " >&6; }
4993 if test "${ac_cv_func_fork_works+set}" = set; then :
4994 $as_echo_n "(cached) " >&6
4996 if test "$cross_compiling" = yes; then :
4997 ac_cv_func_fork_works=cross
4999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5000 /* end confdefs.h. */
5001 $ac_includes_default
5006 /* By Ruediger Kuhlmann. */
5013 if ac_fn_c_try_run "$LINENO"; then :
5014 ac_cv_func_fork_works=yes
5016 ac_cv_func_fork_works=no
5018 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5019 conftest.$ac_objext conftest.beam conftest.$ac_ext
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5024 $as_echo "$ac_cv_func_fork_works" >&6; }
5027 ac_cv_func_fork_works=$ac_cv_func_fork
5029 if test "x$ac_cv_func_fork_works" = xcross; then
5031 *-*-amigaos* | *-*-msdosdjgpp*)
5032 # Override, as these systems have only a dummy fork() stub
5033 ac_cv_func_fork_works=no
5036 ac_cv_func_fork_works=yes
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5040 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5042 ac_cv_func_vfork_works=$ac_cv_func_vfork
5043 if test "x$ac_cv_func_vfork" = xyes; then
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5045 $as_echo_n "checking for working vfork... " >&6; }
5046 if test "${ac_cv_func_vfork_works+set}" = set; then :
5047 $as_echo_n "(cached) " >&6
5049 if test "$cross_compiling" = yes; then :
5050 ac_cv_func_vfork_works=cross
5052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053 /* end confdefs.h. */
5054 /* Thanks to Paul Eggert for this test. */
5055 $ac_includes_default
5056 #include <sys/wait.h>
5060 /* On some sparc systems, changes by the child to local and incoming
5061 argument registers are propagated back to the parent. The compiler
5062 is told about this with #include <vfork.h>, but some compilers
5063 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5064 static variable whose address is put into a register that is
5065 clobbered by the vfork. */
5068 sparc_address_test (int arg)
5070 sparc_address_test (arg) int arg;
5091 pid_t parent = getpid ();
5094 sparc_address_test (0);
5099 /* Here is another test for sparc vfork register problems. This
5100 test uses lots of local variables, at least as many local
5101 variables as main has allocated so far including compiler
5102 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5103 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5104 reuse the register of parent for one of the local variables,
5105 since it will think that parent can't possibly be used any more
5106 in this routine. Assigning to the local variable will thus
5107 munge parent in the parent process. */
5109 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5110 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5111 /* Convince the compiler that p..p7 are live; otherwise, it might
5112 use the same hardware register for all 8 local variables. */
5113 if (p != p1 || p != p2 || p != p3 || p != p4
5114 || p != p5 || p != p6 || p != p7)
5117 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5118 from child file descriptors. If the child closes a descriptor
5119 before it execs or exits, this munges the parent's descriptor
5120 as well. Test for this by closing stdout in the child. */
5121 _exit(close(fileno(stdout)) != 0);
5126 while (wait(&status) != child)
5129 /* Was there some problem with vforking? */
5132 /* Did the child fail? (This shouldn't happen.) */
5135 /* Did the vfork/compiler bug occur? */
5136 || parent != getpid()
5138 /* Did the file descriptor bug occur? */
5139 || fstat(fileno(stdout), &st) != 0
5144 if ac_fn_c_try_run "$LINENO"; then :
5145 ac_cv_func_vfork_works=yes
5147 ac_cv_func_vfork_works=no
5149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5150 conftest.$ac_objext conftest.beam conftest.$ac_ext
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5155 $as_echo "$ac_cv_func_vfork_works" >&6; }
5158 if test "x$ac_cv_func_fork_works" = xcross; then
5159 ac_cv_func_vfork_works=$ac_cv_func_vfork
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5161 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5164 if test "x$ac_cv_func_vfork_works" = xyes; then
5166 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
5170 $as_echo "#define vfork fork" >>confdefs.h
5173 if test "x$ac_cv_func_fork_works" = xyes; then
5175 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
5179 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
5180 $as_echo_n "(cached) " >&6
5182 ac_cv_func_setvbuf_reversed=no
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether client should be built" >&5
5187 $as_echo_n "checking whether client should be built... " >&6; }
5189 linux*) sbin_PROGRAMS="$sbin_PROGRAMS nbd-client"
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5191 $as_echo "yes" >&6; }
5193 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5194 $as_echo "no" >&6; } ;;
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find a working nbd.h" >&5
5197 $as_echo_n "checking where to find a working nbd.h... " >&6; }
5198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h. */
5206 #define UNUSED __attribute__((__unused__))
5214 int UNUSED foo=NBD_CMD_DISC
5219 if ac_fn_c_try_compile "$LINENO"; then :
5221 $as_echo "#define NBD_H_LOCAL 1" >>confdefs.h
5225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5226 /* end confdefs.h. */
5231 #include <linux/nbd.h>
5233 #define UNUSED __attribute__((__unused__))
5241 int UNUSED foo=NBD_CMD_DISC
5246 if ac_fn_c_try_compile "$LINENO"; then :
5248 $as_echo "#define NBD_H_LINUX 1" >>confdefs.h
5250 NBD_H='<linux/nbd.h>'
5252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5253 /* end confdefs.h. */
5254 #include <linux/nbd.h>
5256 #define UNUSED __attribute__((__unused__))
5264 int UNUSED foo=NBD_CMD_DISC
5269 if ac_fn_c_try_compile "$LINENO"; then :
5271 $as_echo "#define NBD_H_LINUX 1" >>confdefs.h
5273 NBD_H='<linux/nbd.h>'
5275 as_fn_error "Could not find an nbd.h from 2.6 or above." "$LINENO" 5
5278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5287 if test "$NBD_H" = '<linux/nbd.h>'
5289 { $as_echo "$as_me:${as_lineno-$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
5290 $as_echo "$as_me: WARNING: there is a local nbd.h, but it is from the 2.4-series of kernels. Using the system-provided, working, nbd.h" >&2;}
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NBD_H" >&5
5294 $as_echo "$NBD_H" >&6; }
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind" >&5
5296 $as_echo_n "checking for library containing bind... " >&6; }
5297 if test "${ac_cv_search_bind+set}" = set; then :
5298 $as_echo_n "(cached) " >&6
5300 ac_func_search_save_LIBS=$LIBS
5301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5302 /* end confdefs.h. */
5304 /* Override any GCC internal prototype to avoid an error.
5305 Use char because int might match the return type of a GCC
5306 builtin and then its argument prototype would still apply. */
5319 for ac_lib in '' socket; do
5320 if test -z "$ac_lib"; then
5321 ac_res="none required"
5324 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5326 if ac_fn_c_try_link "$LINENO"; then :
5327 ac_cv_search_bind=$ac_res
5329 rm -f core conftest.err conftest.$ac_objext \
5331 if test "${ac_cv_search_bind+set}" = set; then :
5335 if test "${ac_cv_search_bind+set}" = set; then :
5338 ac_cv_search_bind=no
5341 LIBS=$ac_func_search_save_LIBS
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind" >&5
5344 $as_echo "$ac_cv_search_bind" >&6; }
5345 ac_res=$ac_cv_search_bind
5346 if test "$ac_res" != no; then :
5347 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5350 as_fn_error "Could not find an implementation of the bind() system call" "$LINENO" 5
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
5354 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
5355 if test "${ac_cv_search_inet_ntoa+set}" = set; then :
5356 $as_echo_n "(cached) " >&6
5358 ac_func_search_save_LIBS=$LIBS
5359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5360 /* end confdefs.h. */
5362 /* Override any GCC internal prototype to avoid an error.
5363 Use char because int might match the return type of a GCC
5364 builtin and then its argument prototype would still apply. */
5372 return inet_ntoa ();
5377 for ac_lib in '' nsl; do
5378 if test -z "$ac_lib"; then
5379 ac_res="none required"
5382 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5384 if ac_fn_c_try_link "$LINENO"; then :
5385 ac_cv_search_inet_ntoa=$ac_res
5387 rm -f core conftest.err conftest.$ac_objext \
5389 if test "${ac_cv_search_inet_ntoa+set}" = set; then :
5393 if test "${ac_cv_search_inet_ntoa+set}" = set; then :
5396 ac_cv_search_inet_ntoa=no
5399 LIBS=$ac_func_search_save_LIBS
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
5402 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
5403 ac_res=$ac_cv_search_inet_ntoa
5404 if test "$ac_res" != no; then :
5405 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5408 as_fn_error "Could not find an implementation of the inet_ntoa() system call" "$LINENO" 5
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing daemon" >&5
5412 $as_echo_n "checking for library containing daemon... " >&6; }
5413 if test "${ac_cv_search_daemon+set}" = set; then :
5414 $as_echo_n "(cached) " >&6
5416 ac_func_search_save_LIBS=$LIBS
5417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5418 /* end confdefs.h. */
5420 /* Override any GCC internal prototype to avoid an error.
5421 Use char because int might match the return type of a GCC
5422 builtin and then its argument prototype would still apply. */
5435 for ac_lib in '' resolv; do
5436 if test -z "$ac_lib"; then
5437 ac_res="none required"
5440 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5442 if ac_fn_c_try_link "$LINENO"; then :
5443 ac_cv_search_daemon=$ac_res
5445 rm -f core conftest.err conftest.$ac_objext \
5447 if test "${ac_cv_search_daemon+set}" = set; then :
5451 if test "${ac_cv_search_daemon+set}" = set; then :
5454 ac_cv_search_daemon=no
5457 LIBS=$ac_func_search_save_LIBS
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_daemon" >&5
5460 $as_echo "$ac_cv_search_daemon" >&6; }
5461 ac_res=$ac_cv_search_daemon
5462 if test "$ac_res" != no; then :
5463 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5466 as_fn_error "Could not find an implementation of the daemon() system call" "$LINENO" 5
5469 for ac_header in sys/mount.h
5471 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
5474 if test "x$ac_cv_header_sys_mount_h" = x""yes; then :
5475 cat >>confdefs.h <<_ACEOF
5476 #define HAVE_SYS_MOUNT_H 1
5483 for ac_header in arpa/inet.h fcntl.h netdb.h netinet/in.h sys/ioctl.h sys/socket.h syslog.h linux/types.h
5485 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5486 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5487 eval as_val=\$$as_ac_Header
5488 if test "x$as_val" = x""yes; then :
5489 cat >>confdefs.h <<_ACEOF
5490 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5497 # Check whether --enable-glibtest was given.
5498 if test "${enable_glibtest+set}" = set; then :
5499 enableval=$enable_glibtest;
5505 pkg_config_args=glib-2.0
5510 pkg_config_args="$pkg_config_args gmodule-2.0"
5513 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
5516 pkg_config_args="$pkg_config_args gobject-2.0"
5519 pkg_config_args="$pkg_config_args gthread-2.0"
5522 pkg_config_args="$pkg_config_args $module-2.0"
5529 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5530 if test -n "$ac_tool_prefix"; then
5531 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5532 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5534 $as_echo_n "checking for $ac_word... " >&6; }
5535 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5536 $as_echo_n "(cached) " >&6
5540 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5547 test -z "$as_dir" && as_dir=.
5548 for ac_exec_ext in '' $ac_executable_extensions; do
5549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5550 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5561 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5562 if test -n "$PKG_CONFIG"; then
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5564 $as_echo "$PKG_CONFIG" >&6; }
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5567 $as_echo "no" >&6; }
5572 if test -z "$ac_cv_path_PKG_CONFIG"; then
5573 ac_pt_PKG_CONFIG=$PKG_CONFIG
5574 # Extract the first word of "pkg-config", so it can be a program name with args.
5575 set dummy pkg-config; ac_word=$2
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5577 $as_echo_n "checking for $ac_word... " >&6; }
5578 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
5579 $as_echo_n "(cached) " >&6
5581 case $ac_pt_PKG_CONFIG in
5583 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5590 test -z "$as_dir" && as_dir=.
5591 for ac_exec_ext in '' $ac_executable_extensions; do
5592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5593 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5604 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5605 if test -n "$ac_pt_PKG_CONFIG"; then
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5607 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5610 $as_echo "no" >&6; }
5613 if test "x$ac_pt_PKG_CONFIG" = x; then
5616 case $cross_compiling:$ac_tool_warned in
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5620 ac_tool_warned=yes ;;
5622 PKG_CONFIG=$ac_pt_PKG_CONFIG
5625 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5629 if test -n "$PKG_CONFIG"; then
5630 _pkg_min_version=0.16
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5632 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5633 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5635 $as_echo "yes" >&6; }
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5638 $as_echo "no" >&6; }
5646 if test "x$PKG_CONFIG" = x ; then
5651 min_glib_version=2.6.0
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
5653 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
5655 if test x$PKG_CONFIG != xno ; then
5656 ## don't try to run the test against uninstalled libtool libs
5657 if $PKG_CONFIG --uninstalled $pkg_config_args; then
5658 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
5662 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
5669 if test x"$no_glib" = x ; then
5670 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
5671 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
5672 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
5674 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
5675 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
5676 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
5677 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
5678 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
5679 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
5680 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
5681 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
5682 if test "x$enable_glibtest" = "xyes" ; then
5683 ac_save_CFLAGS="$CFLAGS"
5684 ac_save_LIBS="$LIBS"
5685 CFLAGS="$CFLAGS $GLIB_CFLAGS"
5686 LIBS="$GLIB_LIBS $LIBS"
5688 if test "$cross_compiling" = yes; then :
5689 echo $ac_n "cross compiling; assumed OK... $ac_c"
5691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5692 /* end confdefs.h. */
5701 int major, minor, micro;
5705 ignored = system ("touch conf.glibtest");
5707 /* HP/UX 9 (%@#!) writes to sscanf strings */
5708 tmp_version = g_strdup("$min_glib_version");
5709 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
5710 printf("%s, bad version string\n", "$min_glib_version");
5714 if ((glib_major_version != $glib_config_major_version) ||
5715 (glib_minor_version != $glib_config_minor_version) ||
5716 (glib_micro_version != $glib_config_micro_version))
5718 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
5719 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
5720 glib_major_version, glib_minor_version, glib_micro_version);
5721 printf ("*** was found! If pkg-config was correct, then it is best\n");
5722 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
5723 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
5724 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
5725 printf("*** required on your system.\n");
5726 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
5727 printf("*** to point to the correct configuration files\n");
5729 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
5730 (glib_minor_version != GLIB_MINOR_VERSION) ||
5731 (glib_micro_version != GLIB_MICRO_VERSION))
5733 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
5734 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
5735 printf("*** library (version %d.%d.%d)\n",
5736 glib_major_version, glib_minor_version, glib_micro_version);
5740 if ((glib_major_version > major) ||
5741 ((glib_major_version == major) && (glib_minor_version > minor)) ||
5742 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
5748 printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
5749 glib_major_version, glib_minor_version, glib_micro_version);
5750 printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
5751 major, minor, micro);
5752 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
5754 printf("*** If you have already installed a sufficiently new version, this error\n");
5755 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
5756 printf("*** being found. The easiest way to fix this is to remove the old version\n");
5757 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
5758 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
5759 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
5760 printf("*** so that the correct libraries are found at run-time))\n");
5767 if ac_fn_c_try_run "$LINENO"; then :
5772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5773 conftest.$ac_objext conftest.beam conftest.$ac_ext
5776 CFLAGS="$ac_save_CFLAGS"
5777 LIBS="$ac_save_LIBS"
5780 if test "x$no_glib" = x ; then
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
5782 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5786 $as_echo "no" >&6; }
5787 if test "$PKG_CONFIG" = "no" ; then
5788 echo "*** A new enough version of pkg-config was not found."
5789 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
5791 if test -f conf.glibtest ; then
5794 echo "*** Could not run GLIB test program, checking why..."
5795 ac_save_CFLAGS="$CFLAGS"
5796 ac_save_LIBS="$LIBS"
5797 CFLAGS="$CFLAGS $GLIB_CFLAGS"
5798 LIBS="$LIBS $GLIB_LIBS"
5799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5800 /* end confdefs.h. */
5808 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
5813 if ac_fn_c_try_link "$LINENO"; then :
5814 echo "*** The test program compiled, but did not run. This usually means"
5815 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
5816 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
5817 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
5818 echo "*** to the installed location Also, make sure you have run ldconfig if that"
5819 echo "*** is required on your system"
5821 echo "*** If you have an old version installed, it is best to remove it, although"
5822 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
5824 echo "*** The test program failed to compile or link. See the file config.log for the"
5825 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
5827 rm -f core conftest.err conftest.$ac_objext \
5828 conftest$ac_exeext conftest.$ac_ext
5829 CFLAGS="$ac_save_CFLAGS"
5830 LIBS="$ac_save_LIBS"
5838 as_fn_error "Missing glib" "$LINENO" 5
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
5848 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
5849 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
5850 $as_echo_n "(cached) " >&6
5852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5853 /* end confdefs.h. */
5854 #include <sys/types.h>
5855 #include <sys/wait.h>
5857 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5860 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5868 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5873 if ac_fn_c_try_compile "$LINENO"; then :
5874 ac_cv_header_sys_wait_h=yes
5876 ac_cv_header_sys_wait_h=no
5878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
5881 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
5882 if test $ac_cv_header_sys_wait_h = yes; then
5884 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
5888 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5889 if test "x$ac_cv_type_off_t" = x""yes; then :
5893 cat >>confdefs.h <<_ACEOF
5894 #define off_t long int
5899 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5900 if test "x$ac_cv_type_pid_t" = x""yes; then :
5904 cat >>confdefs.h <<_ACEOF
5911 nbd_server_CPPFLAGS=$nbd_server_CPPFLAGS" -DSYSCONFDIR='\"$sysconfdir\"'"
5913 ac_config_headers="$ac_config_headers config.h"
5915 ac_config_files="$ac_config_files Makefile Doxyfile nbd-server.1 nbd-server.5 nbd-client.8"
5917 cat >confcache <<\_ACEOF
5918 # This file is a shell script that caches the results of configure
5919 # tests run on this system so they can be shared between configure
5920 # scripts and configure runs, see configure's option --config-cache.
5921 # It is not useful on other systems. If it contains results you don't
5922 # want to keep, you may remove or edit it.
5924 # config.status only pays attention to the cache file if you give it
5925 # the --recheck option to rerun configure.
5927 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5928 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5933 # The following way of writing the cache mishandles newlines in values,
5934 # but we know of no workaround that is simple, portable, and efficient.
5935 # So, we kill variables containing newlines.
5936 # Ultrix sh set writes to stderr and can't be redirected directly,
5937 # and sets the high bit in the cache file unless we assign to the vars.
5939 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5940 eval ac_val=\$$ac_var
5944 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5945 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5948 _ | IFS | as_nl) ;; #(
5949 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5950 *) { eval $ac_var=; unset $ac_var;} ;;
5956 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5957 *${as_nl}ac_space=\ *)
5958 # `set' does not quote correctly, so add quotes: double-quote
5959 # substitution turns \\\\ into \\, and sed turns \\ into \.
5962 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5965 # `set' quotes correctly as required by POSIX, so do not add quotes.
5966 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5975 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5977 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5979 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5980 if test -w "$cache_file"; then
5981 test "x$cache_file" != "x/dev/null" &&
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5983 $as_echo "$as_me: updating cache $cache_file" >&6;}
5984 cat confcache >$cache_file
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5987 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5992 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5993 # Let make expand exec_prefix.
5994 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5996 DEFS=-DHAVE_CONFIG_H
6000 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6001 # 1. Remove the extension, and $U if already installed.
6002 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6003 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6004 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6005 # will be set to the directory where LIBOBJS objects are built.
6006 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6007 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6011 LTLIBOBJS=$ac_ltlibobjs
6014 if test -n "$EXEEXT"; then
6016 am__EXEEXT_FALSE='#'
6022 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6023 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
6024 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6026 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6027 as_fn_error "conditional \"AMDEP\" was never defined.
6028 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6030 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6031 as_fn_error "conditional \"am__fastdepCC\" was never defined.
6032 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6036 : ${CONFIG_STATUS=./config.status}
6038 ac_clean_files_save=$ac_clean_files
6039 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6041 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6043 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6045 # Generated by $as_me.
6046 # Run this file to recreate the current configuration.
6047 # Compiler output produced by configure, useful for debugging
6048 # configure, is in config.log if it exists.
6054 SHELL=\${CONFIG_SHELL-$SHELL}
6057 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6058 ## -------------------- ##
6059 ## M4sh Initialization. ##
6060 ## -------------------- ##
6062 # Be more Bourne compatible
6063 DUALCASE=1; export DUALCASE # for MKS sh
6064 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6067 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6068 # is contrary to our usage. Disable this feature.
6069 alias -g '${1+"$@"}'='"$@"'
6070 setopt NO_GLOB_SUBST
6072 case `(set -o) 2>/dev/null` in #(
6084 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6085 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6086 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6087 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6088 # Prefer a ksh shell builtin over an external printf program on Solaris,
6089 # but without wasting forks for bash or zsh.
6090 if test -z "$BASH_VERSION$ZSH_VERSION" \
6091 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6092 as_echo='print -r --'
6093 as_echo_n='print -rn --'
6094 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6095 as_echo='printf %s\n'
6096 as_echo_n='printf %s'
6098 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6099 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6100 as_echo_n='/usr/ucb/echo -n'
6102 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6103 as_echo_n_body='eval
6107 expr "X$arg" : "X\\(.*\\)$as_nl";
6108 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6110 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6112 export as_echo_n_body
6113 as_echo_n='sh -c $as_echo_n_body as_echo'
6116 as_echo='sh -c $as_echo_body as_echo'
6119 # The user is always right.
6120 if test "${PATH_SEPARATOR+set}" != set; then
6122 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6123 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6130 # We need space, tab and new line, in precisely that order. Quoting is
6131 # there to prevent editors from complaining about space-tab.
6132 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6133 # splitting by setting IFS to empty value.)
6136 # Find who we are. Look in the path if we contain no directory separator.
6138 *[\\/]* ) as_myself=$0 ;;
6139 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143 test -z "$as_dir" && as_dir=.
6144 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6150 # We did not find ourselves, most probably we were run as `sh COMMAND'
6151 # in which case we are not to be found in the path.
6152 if test "x$as_myself" = x; then
6155 if test ! -f "$as_myself"; then
6156 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6160 # Unset variables that we do not need and which cause bugs (e.g. in
6161 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6162 # suppresses any "Segmentation fault" message there. '((' could
6163 # trigger a bug in pdksh 5.2.14.
6164 for as_var in BASH_ENV ENV MAIL MAILPATH
6165 do eval test x\${$as_var+set} = xset \
6166 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6179 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6182 # as_fn_error ERROR [LINENO LOG_FD]
6183 # ---------------------------------
6184 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6185 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6186 # script with status $?, using 1 if that was 0.
6189 as_status=$?; test $as_status -eq 0 && as_status=1
6191 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6192 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6194 $as_echo "$as_me: error: $1" >&2
6195 as_fn_exit $as_status
6199 # as_fn_set_status STATUS
6200 # -----------------------
6201 # Set $? to STATUS, without forking.
6205 } # as_fn_set_status
6209 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6219 # Portably unset VAR.
6222 { eval $1=; unset $1;}
6224 as_unset=as_fn_unset
6225 # as_fn_append VAR VALUE
6226 # ----------------------
6227 # Append the text in VALUE to the end of the definition contained in VAR. Take
6228 # advantage of any shell optimizations that allow amortized linear growth over
6229 # repeated appends, instead of the typical quadratic growth present in naive
6231 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6232 eval 'as_fn_append ()
6243 # as_fn_arith ARG...
6244 # ------------------
6245 # Perform arithmetic evaluation on the ARGs, and store the result in the
6246 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6247 # must be portable across $(()) and expr.
6248 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6249 eval 'as_fn_arith ()
6256 as_val=`expr "$@" || test $? -eq 1`
6261 if expr a : '\(a\)' >/dev/null 2>&1 &&
6262 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6268 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6269 as_basename=basename
6274 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6280 as_me=`$as_basename -- "$0" ||
6281 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6282 X"$0" : 'X\(//\)$' \| \
6283 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6285 sed '/^.*\/\([^/][^/]*\)\/*$/{
6299 # Avoid depending upon Character Ranges.
6300 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6301 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6302 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6303 as_cr_digits='0123456789'
6304 as_cr_alnum=$as_cr_Letters$as_cr_digits
6306 ECHO_C= ECHO_N= ECHO_T=
6307 case `echo -n x` in #(((((
6309 case `echo 'xy\c'` in
6310 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6312 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6319 rm -f conf$$ conf$$.exe conf$$.file
6320 if test -d conf$$.dir; then
6321 rm -f conf$$.dir/conf$$.file
6324 mkdir conf$$.dir 2>/dev/null
6326 if (echo >conf$$.file) 2>/dev/null; then
6327 if ln -s conf$$.file conf$$ 2>/dev/null; then
6329 # ... but there are two gotchas:
6330 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6331 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6332 # In both cases, we have to default to `cp -p'.
6333 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6335 elif ln conf$$.file conf$$ 2>/dev/null; then
6343 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6344 rmdir conf$$.dir 2>/dev/null
6349 # Create "$as_dir" as a directory, including parents if necessary.
6354 -*) as_dir=./$as_dir;;
6356 test -d "$as_dir" || eval $as_mkdir_p || {
6360 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6361 *) as_qdir=$as_dir;;
6363 as_dirs="'$as_qdir' $as_dirs"
6364 as_dir=`$as_dirname -- "$as_dir" ||
6365 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6366 X"$as_dir" : 'X\(//\)[^/]' \| \
6367 X"$as_dir" : 'X\(//\)$' \| \
6368 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6369 $as_echo X"$as_dir" |
6370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6387 test -d "$as_dir" && break
6389 test -z "$as_dirs" || eval "mkdir $as_dirs"
6390 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
6394 if mkdir -p . 2>/dev/null; then
6395 as_mkdir_p='mkdir -p "$as_dir"'
6397 test -d ./-p && rmdir ./-p
6401 if test -x / >/dev/null 2>&1; then
6404 if ls -dL / >/dev/null 2>&1; then
6411 if test -d "$1"; then
6417 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6418 ???[sx]*):;;*)false;;esac;fi
6422 as_executable_p=$as_test_x
6424 # Sed expression to map a string onto a valid CPP name.
6425 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6427 # Sed expression to map a string onto a valid variable name.
6428 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6432 ## ----------------------------------- ##
6433 ## Main body of $CONFIG_STATUS script. ##
6434 ## ----------------------------------- ##
6436 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6439 # Save the log message, to keep $0 and so on meaningful, and to
6440 # report actual input values of CONFIG_FILES etc. instead of their
6441 # values after options handling.
6443 This file was extended by nbd $as_me 2.9.15, which was
6444 generated by GNU Autoconf 2.65. Invocation command line was
6446 CONFIG_FILES = $CONFIG_FILES
6447 CONFIG_HEADERS = $CONFIG_HEADERS
6448 CONFIG_LINKS = $CONFIG_LINKS
6449 CONFIG_COMMANDS = $CONFIG_COMMANDS
6452 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6457 case $ac_config_files in *"
6458 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6461 case $ac_config_headers in *"
6462 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6467 # Files that config.status was made for.
6468 config_files="$ac_config_files"
6469 config_headers="$ac_config_headers"
6470 config_commands="$ac_config_commands"
6474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6476 \`$as_me' instantiates files and other configuration actions
6477 from templates according to the current configuration. Unless the files
6478 and actions are specified as TAGs, all are instantiated by default.
6480 Usage: $0 [OPTION]... [TAG]...
6482 -h, --help print this help, then exit
6483 -V, --version print version number and configuration settings, then exit
6484 --config print configuration, then exit
6485 -q, --quiet, --silent
6486 do not print progress messages
6487 -d, --debug don't remove temporary files
6488 --recheck update $as_me by reconfiguring in the same conditions
6489 --file=FILE[:TEMPLATE]
6490 instantiate the configuration file FILE
6491 --header=FILE[:TEMPLATE]
6492 instantiate the configuration header FILE
6494 Configuration files:
6497 Configuration headers:
6500 Configuration commands:
6503 Report bugs to <wouter@debian.org>."
6506 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6507 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6509 nbd config.status 2.9.15
6510 configured by $0, generated by GNU Autoconf 2.65,
6511 with options \\"\$ac_cs_config\\"
6513 Copyright (C) 2009 Free Software Foundation, Inc.
6514 This config.status script is free software; the Free Software Foundation
6515 gives unlimited permission to copy, distribute and modify it."
6522 test -n "\$AWK" || AWK=awk
6525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6526 # The default lists apply if the user does not specify any file.
6532 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6533 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6544 # Handling of the options.
6545 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6547 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6548 $as_echo "$ac_cs_version"; exit ;;
6549 --config | --confi | --conf | --con | --co | --c )
6550 $as_echo "$ac_cs_config"; exit ;;
6551 --debug | --debu | --deb | --de | --d | -d )
6553 --file | --fil | --fi | --f )
6556 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6558 as_fn_append CONFIG_FILES " '$ac_optarg'"
6559 ac_need_defaults=false;;
6560 --header | --heade | --head | --hea )
6563 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6565 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6566 ac_need_defaults=false;;
6568 # Conflict between --help and --header
6569 as_fn_error "ambiguous option: \`$1'
6570 Try \`$0 --help' for more information.";;
6571 --help | --hel | -h )
6572 $as_echo "$ac_cs_usage"; exit ;;
6573 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6574 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6578 -*) as_fn_error "unrecognized option: \`$1'
6579 Try \`$0 --help' for more information." ;;
6581 *) as_fn_append ac_config_targets " $1"
6582 ac_need_defaults=false ;;
6588 ac_configure_extra_args=
6590 if $ac_cs_silent; then
6592 ac_configure_extra_args="$ac_configure_extra_args --silent"
6596 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6597 if \$ac_cs_recheck; then
6598 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6600 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6601 CONFIG_SHELL='$SHELL'
6607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6611 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6612 ## Running $as_me. ##
6618 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6622 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6628 # Handling of arguments.
6629 for ac_config_target in $ac_config_targets
6631 case $ac_config_target in
6632 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6633 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6634 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6635 "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
6636 "nbd-server.1") CONFIG_FILES="$CONFIG_FILES nbd-server.1" ;;
6637 "nbd-server.5") CONFIG_FILES="$CONFIG_FILES nbd-server.5" ;;
6638 "nbd-client.8") CONFIG_FILES="$CONFIG_FILES nbd-client.8" ;;
6640 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6645 # If the user did not use the arguments to specify the items to instantiate,
6646 # then the envvar interface is used. Set only those that are not.
6647 # We use the long form for the default assignment because of an extremely
6648 # bizarre bug on SunOS 4.1.3.
6649 if $ac_need_defaults; then
6650 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6651 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6652 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6655 # Have a temporary directory for convenience. Make it in the build tree
6656 # simply because there is no reason against having it here, and in addition,
6657 # creating and moving files from /tmp can sometimes cause problems.
6658 # Hook for its removal unless debugging.
6659 # Note that there is a small window in which the directory will not be cleaned:
6660 # after its creation but before its name has been assigned to `$tmp'.
6664 trap 'exit_status=$?
6665 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6667 trap 'as_fn_exit 1' 1 2 13 15
6669 # Create a (secure) tmp directory for tmp files.
6672 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6673 test -n "$tmp" && test -d "$tmp"
6676 tmp=./conf$$-$RANDOM
6677 (umask 077 && mkdir "$tmp")
6678 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
6680 # Set up the scripts for CONFIG_FILES section.
6681 # No need to generate them if there are no CONFIG_FILES.
6682 # This happens for instance with `./config.status config.h'.
6683 if test -n "$CONFIG_FILES"; then
6686 ac_cr=`echo X | tr X '\015'`
6687 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6688 # But we know of no other shell where ac_cr would be empty at this
6689 # point, so we can use a bashism as a fallback.
6690 if test "x$ac_cr" = x; then
6691 eval ac_cr=\$\'\\r\'
6693 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6694 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6700 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6705 echo "cat >conf$$subs.awk <<_ACEOF" &&
6706 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6709 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6710 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6712 for ac_last_try in false false false false false :; do
6713 . ./conf$$subs.sh ||
6714 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6716 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6717 if test $ac_delim_n = $ac_delim_num; then
6719 elif $ac_last_try; then
6720 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6722 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6727 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6728 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6732 s/^/S["/; s/!.*/"]=/
6742 s/\(.\{148\}\)..*/\1/
6744 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6749 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6756 s/\(.\{148\}\)..*/\1/
6758 s/["\\]/\\&/g; s/^/"/; s/$/"/
6762 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6767 ' <conf$$subs.awk | sed '
6772 ' >>$CONFIG_STATUS || ac_write_fail=1
6773 rm -f conf$$subs.awk
6774 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6776 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6777 for (key in S) S_is_set[key] = 1
6783 nfields = split(line, field, "@")
6785 len = length(field[1])
6786 for (i = 2; i < nfields; i++) {
6788 keylen = length(key)
6789 if (S_is_set[key]) {
6791 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6792 len += length(value) + length(field[++i])
6803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6804 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6805 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6808 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6809 || as_fn_error "could not setup config files machinery" "$LINENO" 5
6812 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6813 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6814 # trailing colons and then remove the whole line if VPATH becomes empty
6815 # (actually we leave an empty line to preserve line numbers).
6816 if test "x$srcdir" = x.; then
6817 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6821 s/^\([^=]*=[ ]*\):*/\1/
6827 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6828 fi # test -n "$CONFIG_FILES"
6830 # Set up the scripts for CONFIG_HEADERS section.
6831 # No need to generate them if there are no CONFIG_HEADERS.
6832 # This happens for instance with `./config.status Makefile'.
6833 if test -n "$CONFIG_HEADERS"; then
6834 cat >"$tmp/defines.awk" <<\_ACAWK ||
6838 # Transform confdefs.h into an awk script `defines.awk', embedded as
6839 # here-document in config.status, that substitutes the proper values into
6840 # config.h.in to produce config.h.
6842 # Create a delimiter string that does not exist in confdefs.h, to ease
6843 # handling of long lines.
6845 for ac_last_try in false false :; do
6846 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6847 if test -z "$ac_t"; then
6849 elif $ac_last_try; then
6850 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
6852 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6856 # For the awk script, D is an array of macro values keyed by name,
6857 # likewise P contains macro parameters if any. Preserve backslash
6858 # newline sequences.
6860 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6862 s/.\{148\}/&'"$ac_delim"'/g
6865 s/^[ ]*#[ ]*define[ ][ ]*/ /
6872 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6874 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6878 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6879 D["\1"]=" \3\\\\\\n"\\/p
6881 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6886 s/.\{148\}/&'"$ac_delim"'/g
6891 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6894 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6896 ' <confdefs.h | sed '
6897 s/'"$ac_delim"'/"\\\
6898 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6900 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6901 for (key in D) D_is_set[key] = 1
6904 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6906 split(line, arg, " ")
6907 if (arg[1] == "#") {
6911 defundef = substr(arg[1], 2)
6914 split(mac1, mac2, "(") #)
6916 prefix = substr(line, 1, index(line, defundef) - 1)
6917 if (D_is_set[macro]) {
6918 # Preserve the white space surrounding the "#".
6919 print prefix "define", macro P[macro] D[macro]
6922 # Replace #undef with comments. This is necessary, for example,
6923 # in the case of _POSIX_SOURCE, which is predefined and required
6924 # on some systems where configure will not decide to define it.
6925 if (defundef == "undef") {
6926 print "/*", prefix defundef, macro, "*/"
6934 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6935 as_fn_error "could not setup config headers machinery" "$LINENO" 5
6936 fi # test -n "$CONFIG_HEADERS"
6939 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6944 :[FHLC]) ac_mode=$ac_tag; continue;;
6946 case $ac_mode$ac_tag in
6948 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
6949 :[FH]-) ac_tag=-:-;;
6950 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6967 -) ac_f="$tmp/stdin";;
6968 *) # Look for the file first in the build tree, then in the source tree
6969 # (if the path is not absolute). The absolute path cannot be DOS-style,
6970 # because $ac_f cannot contain `:'.
6974 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6976 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6978 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6979 as_fn_append ac_file_inputs " '$ac_f'"
6982 # Let's still pretend it is `configure' which instantiates (i.e., don't
6983 # use $as_me), people would be surprised to read:
6984 # /* config.h. Generated by config.status. */
6985 configure_input='Generated from '`
6986 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6988 if test x"$ac_file" != x-; then
6989 configure_input="$ac_file. $configure_input"
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6991 $as_echo "$as_me: creating $ac_file" >&6;}
6993 # Neutralize special characters interpreted by sed in replacement strings.
6994 case $configure_input in #(
6995 *\&* | *\|* | *\\* )
6996 ac_sed_conf_input=`$as_echo "$configure_input" |
6997 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6998 *) ac_sed_conf_input=$configure_input;;
7002 *:-:* | *:-) cat >"$tmp/stdin" \
7003 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
7008 ac_dir=`$as_dirname -- "$ac_file" ||
7009 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7010 X"$ac_file" : 'X\(//\)[^/]' \| \
7011 X"$ac_file" : 'X\(//\)$' \| \
7012 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7013 $as_echo X"$ac_file" |
7014 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7031 as_dir="$ac_dir"; as_fn_mkdir_p
7035 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7037 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7038 # A ".." for each directory in $ac_dir_suffix.
7039 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7040 case $ac_top_builddir_sub in
7041 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7042 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7045 ac_abs_top_builddir=$ac_pwd
7046 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7047 # for backward compatibility:
7048 ac_top_builddir=$ac_top_build_prefix
7051 .) # We are building in place.
7053 ac_top_srcdir=$ac_top_builddir_sub
7054 ac_abs_top_srcdir=$ac_pwd ;;
7055 [\\/]* | ?:[\\/]* ) # Absolute name.
7056 ac_srcdir=$srcdir$ac_dir_suffix;
7057 ac_top_srcdir=$srcdir
7058 ac_abs_top_srcdir=$srcdir ;;
7060 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7061 ac_top_srcdir=$ac_top_build_prefix$srcdir
7062 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7064 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7074 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7075 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7079 [\\/$]* | ?:[\\/]* ) ;;
7080 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7084 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7085 # If the template does not know about datarootdir, expand it.
7086 # FIXME: This hack should be removed a few years after 2.60.
7087 ac_datarootdir_hack=; ac_datarootdir_seen=
7098 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7099 *datarootdir*) ac_datarootdir_seen=yes;;
7100 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7102 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7104 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7105 ac_datarootdir_hack='
7106 s&@datadir@&$datadir&g
7107 s&@docdir@&$docdir&g
7108 s&@infodir@&$infodir&g
7109 s&@localedir@&$localedir&g
7110 s&@mandir@&$mandir&g
7111 s&\\\${datarootdir}&$datarootdir&g' ;;
7115 # Neutralize VPATH when `$srcdir' = `.'.
7116 # Shell code in configure.ac might set extrasub.
7117 # FIXME: do we really want to maintain this feature?
7118 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7119 ac_sed_extra="$ac_vpsub
7122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7124 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7125 s|@configure_input@|$ac_sed_conf_input|;t t
7126 s&@top_builddir@&$ac_top_builddir_sub&;t t
7127 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7128 s&@srcdir@&$ac_srcdir&;t t
7129 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7130 s&@top_srcdir@&$ac_top_srcdir&;t t
7131 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7132 s&@builddir@&$ac_builddir&;t t
7133 s&@abs_builddir@&$ac_abs_builddir&;t t
7134 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7135 s&@INSTALL@&$ac_INSTALL&;t t
7136 s&@MKDIR_P@&$ac_MKDIR_P&;t t
7137 $ac_datarootdir_hack
7139 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7140 || as_fn_error "could not create $ac_file" "$LINENO" 5
7142 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7143 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7144 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7146 which seems to be undefined. Please make sure it is defined." >&5
7147 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7148 which seems to be undefined. Please make sure it is defined." >&2;}
7152 -) cat "$tmp/out" && rm -f "$tmp/out";;
7153 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7155 || as_fn_error "could not create $ac_file" "$LINENO" 5
7161 if test x"$ac_file" != x-; then
7163 $as_echo "/* $configure_input */" \
7164 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7165 } >"$tmp/config.h" \
7166 || as_fn_error "could not create $ac_file" "$LINENO" 5
7167 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7169 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7172 mv "$tmp/config.h" "$ac_file" \
7173 || as_fn_error "could not create $ac_file" "$LINENO" 5
7176 $as_echo "/* $configure_input */" \
7177 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7178 || as_fn_error "could not create -" "$LINENO" 5
7180 # Compute "$ac_file"'s index in $config_headers.
7183 for _am_header in $config_headers :; do
7185 $_am_arg | $_am_arg:* )
7188 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7191 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7192 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7193 X"$_am_arg" : 'X\(//\)[^/]' \| \
7194 X"$_am_arg" : 'X\(//\)$' \| \
7195 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
7196 $as_echo X"$_am_arg" |
7197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7213 s/.*/./; q'`/stamp-h$_am_stamp_count
7216 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7217 $as_echo "$as_me: executing $ac_file commands" >&6;}
7222 case $ac_file$ac_mode in
7223 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
7224 # Autoconf 2.62 quotes --file arguments for eval, but not when files
7225 # are listed without --file. Let's play safe and only enable the eval
7226 # if we detect the quoting.
7227 case $CONFIG_FILES in
7228 *\'*) eval set x "$CONFIG_FILES" ;;
7229 *) set x $CONFIG_FILES ;;
7234 # Strip MF so we end up with the name of the file.
7235 mf=`echo "$mf" | sed -e 's/:.*$//'`
7236 # Check whether this is an Automake generated Makefile or not.
7237 # We used to match only the files named `Makefile.in', but
7238 # some people rename them; so instead we look at the file content.
7239 # Grep'ing the first line is not enough: some people post-process
7240 # each Makefile.in and add a new line on top of each file to say so.
7241 # Grep'ing the whole file is not good either: AIX grep has a line
7242 # limit of 2048, but all sed's we know have understand at least 4000.
7243 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7244 dirpart=`$as_dirname -- "$mf" ||
7245 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7246 X"$mf" : 'X\(//\)[^/]' \| \
7247 X"$mf" : 'X\(//\)$' \| \
7248 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
7250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7270 # Extract the definition of DEPDIR, am__include, and am__quote
7271 # from the Makefile without running `make'.
7272 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7273 test -z "$DEPDIR" && continue
7274 am__include=`sed -n 's/^am__include = //p' < "$mf"`
7275 test -z "am__include" && continue
7276 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7277 # When using ansi2knr, U may be empty or an underscore; expand it
7278 U=`sed -n 's/^U = //p' < "$mf"`
7279 # Find all dependency output files, they are included files with
7280 # $(DEPDIR) in their names. We invoke sed twice because it is the
7281 # simplest approach to changing $(DEPDIR) to its actual value in the
7283 for file in `sed -n "
7284 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7285 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7286 # Make sure the directory exists.
7287 test -f "$dirpart/$file" && continue
7288 fdir=`$as_dirname -- "$file" ||
7289 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7290 X"$file" : 'X\(//\)[^/]' \| \
7291 X"$file" : 'X\(//\)$' \| \
7292 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
7294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7311 as_dir=$dirpart/$fdir; as_fn_mkdir_p
7312 # echo "creating $dirpart/$file"
7313 echo '# dummy' > "$dirpart/$file"
7325 ac_clean_files=$ac_clean_files_save
7327 test $ac_write_fail = 0 ||
7328 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
7331 # configure is writing to config.log, and then calls config.status.
7332 # config.status does its own redirection, appending to config.log.
7333 # Unfortunately, on DOS this fails, as config.log is still kept open
7334 # by configure, so config.status won't be able to write to it; its
7335 # output is simply discarded. So we exec the FD to /dev/null,
7336 # effectively closing config.log, so it can be properly (re)opened and
7337 # appended to by config.status. When coming back to configure, we
7338 # need to make the FD available again.
7339 if test "$no_create" != yes; then
7341 ac_config_status_args=
7342 test "$silent" = yes &&
7343 ac_config_status_args="$ac_config_status_args --quiet"
7345 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7347 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7348 # would make configure fail if this is the last instruction.
7349 $ac_cs_success || as_fn_exit $?
7351 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7353 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}