2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for nbd 2.9.14.
5 # Report bugs to <wouter@debian.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x
; then
137 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required
="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev
/null
; then :
180 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
185 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir
=.
192 for as_base
in sh bash ksh sh5
; do
193 # Try only shells that exist, to save several forks.
194 as_shell
=$as_dir/$as_base
195 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
197 CONFIG_SHELL
=$as_shell as_have_required
=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
206 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
208 CONFIG_SHELL
=$SHELL as_have_required
=yes
213 if test "x$CONFIG_SHELL" != x
; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x
$as_have_required = xno
; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x
${ZSH_VERSION+set} = xset
; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org and wouter@debian.org
232 $0: about your system, including any error possibly output
233 $0: before this message. Then install a modern shell, or
234 $0: manually run the script under such a shell if you do
241 SHELL
=${CONFIG_SHELL-/bin/sh}
243 # Unset more variables known to interfere with behavior of common tools.
244 CLICOLOR_FORCE
= GREP_OPTIONS
=
245 unset CLICOLOR_FORCE GREP_OPTIONS
247 ## --------------------- ##
248 ## M4sh Shell Functions. ##
249 ## --------------------- ##
252 # Portably unset VAR.
255 { eval $1=; unset $1;}
259 # as_fn_set_status STATUS
260 # -----------------------
261 # Set $? to STATUS, without forking.
269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
279 # Create "$as_dir" as a directory, including parents if necessary.
284 -*) as_dir
=.
/$as_dir;;
286 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
290 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 as_dirs
="'$as_qdir' $as_dirs"
294 as_dir
=`$as_dirname -- "$as_dir" ||
295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296 X"$as_dir" : 'X\(//\)[^/]' \| \
297 X"$as_dir" : 'X\(//\)$' \| \
298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299 $as_echo X"$as_dir" |
300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
317 test -d "$as_dir" && break
319 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
320 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
324 # as_fn_append VAR VALUE
325 # ----------------------
326 # Append the text in VALUE to the end of the definition contained in VAR. Take
327 # advantage of any shell optimizations that allow amortized linear growth over
328 # repeated appends, instead of the typical quadratic growth present in naive
330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
331 eval 'as_fn_append ()
344 # Perform arithmetic evaluation on the ARGs, and store the result in the
345 # global $as_val. Take advantage of shells that can avoid forks. The arguments
346 # must be portable across $(()) and expr.
347 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
355 as_val
=`expr "$@" || test $? -eq 1`
360 # as_fn_error ERROR [LINENO LOG_FD]
361 # ---------------------------------
362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364 # script with status $?, using 1 if that was 0.
367 as_status
=$?
; test $as_status -eq 0 && as_status
=1
369 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
372 $as_echo "$as_me: error: $1" >&2
373 as_fn_exit
$as_status
376 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
377 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
383 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
395 as_me
=`$as_basename -- "$0" ||
396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397 X"$0" : 'X\(//\)$' \| \
398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
400 sed '/^.*\/\([^/][^/]*\)\/*$/{
414 # Avoid depending upon Character Ranges.
415 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
416 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
418 as_cr_digits
='0123456789'
419 as_cr_alnum
=$as_cr_Letters$as_cr_digits
422 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
423 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
424 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
426 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442 chmod +x
"$as_me.lineno" ||
443 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
445 # Don't try to exec as it changes $[0], causing all sort of problems
446 # (the dirname of $[0] is not the place where we might find the
447 # original and so on. Autoconf is especially sensitive to this).
449 # Exit status is that of the last command.
453 ECHO_C
= ECHO_N
= ECHO_T
=
454 case `echo -n x` in #(((((
456 case `echo 'xy\c'` in
457 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
459 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
466 rm -f conf$$ conf$$.exe conf$$.
file
467 if test -d conf$$.dir
; then
468 rm -f conf$$.dir
/conf$$.
file
471 mkdir conf$$.dir
2>/dev
/null
473 if (echo >conf$$.
file) 2>/dev
/null
; then
474 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
476 # ... but there are two gotchas:
477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479 # In both cases, we have to default to `cp -p'.
480 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
482 elif ln conf$$.
file conf$$
2>/dev
/null
; then
490 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
491 rmdir conf$$.dir
2>/dev
/null
493 if mkdir
-p .
2>/dev
/null
; then
494 as_mkdir_p
='mkdir -p "$as_dir"'
496 test -d .
/-p && rmdir .
/-p
500 if test -x / >/dev
/null
2>&1; then
503 if ls -dL / >/dev
/null
2>&1; then
510 if test -d "$1"; then
516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517 ???[sx]*):;;*)false;;esac;fi
521 as_executable_p
=$as_test_x
523 # Sed expression to map a string onto a valid CPP name.
524 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
526 # Sed expression to map a string onto a valid variable name.
527 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530 exec 7<&0 </dev
/null
6>&1
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix
=/usr
/local
542 ac_config_libobj_dir
=.
549 # Identity of this package.
551 PACKAGE_TARNAME
='nbd'
552 PACKAGE_VERSION
='2.9.14'
553 PACKAGE_STRING
='nbd 2.9.14'
554 PACKAGE_BUGREPORT
='wouter@debian.org'
557 # Factoring default headers for most tests.
558 ac_includes_default
="\
560 #ifdef HAVE_SYS_TYPES_H
561 # include <sys/types.h>
563 #ifdef HAVE_SYS_STAT_H
564 # include <sys/stat.h>
570 # ifdef HAVE_STDLIB_H
575 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
580 #ifdef HAVE_STRINGS_H
581 # include <strings.h>
583 #ifdef HAVE_INTTYPES_H
584 # include <inttypes.h>
593 ac_subst_vars
='am__EXEEXT_FALSE
633 MAINTAINER_MODE_FALSE
643 INSTALL_STRIP_PROGRAM
685 program_transform_name
698 enable_option_checking
699 enable_maintainer_mode
704 enable_dependency_tracking
707 ac_precious_vars
='build_alias
719 # Initialize some variables set by options.
721 ac_init_version
=false
722 ac_unrecognized_opts
=
724 # The variables have the same names as the options, with
725 # dashes changed to underlines.
733 program_transform_name
=s
,x
,x
,
741 # Installation directory options.
742 # These are left unexpanded so users can "make install exec_prefix=/foo"
743 # and all the variables that are supposed to be based on exec_prefix
744 # by default will actually change.
745 # Use braces instead of parens because sh, perl, etc. also accept them.
746 # (The list follows the same order as the GNU Coding Standards.)
747 bindir
='${exec_prefix}/bin'
748 sbindir
='${exec_prefix}/sbin'
749 libexecdir
='${exec_prefix}/libexec'
750 datarootdir
='${prefix}/share'
751 datadir
='${datarootdir}'
752 sysconfdir
='${prefix}/etc'
753 sharedstatedir
='${prefix}/com'
754 localstatedir
='${prefix}/var'
755 includedir
='${prefix}/include'
756 oldincludedir
='/usr/include'
757 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
758 infodir
='${datarootdir}/info'
763 libdir
='${exec_prefix}/lib'
764 localedir
='${datarootdir}/locale'
765 mandir
='${datarootdir}/man'
771 # If the previous option needs an argument, assign it.
772 if test -n "$ac_prev"; then
773 eval $ac_prev=\
$ac_option
779 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
783 # Accept the important Cygnus configure options, so we can diagnose typos.
785 case $ac_dashdash$ac_option in
789 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
791 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
794 -build |
--build |
--buil |
--bui |
--bu)
795 ac_prev
=build_alias
;;
796 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
797 build_alias
=$ac_optarg ;;
799 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
800 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
801 ac_prev
=cache_file
;;
802 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
803 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
804 cache_file
=$ac_optarg ;;
807 cache_file
=config.cache
;;
809 -datadir |
--datadir |
--datadi |
--datad)
811 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
812 datadir
=$ac_optarg ;;
814 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
815 |
--dataroo |
--dataro |
--datar)
816 ac_prev
=datarootdir
;;
817 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
818 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
819 datarootdir
=$ac_optarg ;;
821 -disable-* |
--disable-*)
822 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
823 # Reject names that are not valid shell variable names.
824 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
825 as_fn_error
"invalid feature name: $ac_useropt"
826 ac_useropt_orig
=$ac_useropt
827 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
828 case $ac_user_opts in
832 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
833 ac_unrecognized_sep
=', ';;
835 eval enable_
$ac_useropt=no
;;
837 -docdir |
--docdir |
--docdi |
--doc |
--do)
839 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
842 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
844 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
847 -enable-* |
--enable-*)
848 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
849 # Reject names that are not valid shell variable names.
850 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
851 as_fn_error
"invalid feature name: $ac_useropt"
852 ac_useropt_orig
=$ac_useropt
853 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
854 case $ac_user_opts in
858 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
859 ac_unrecognized_sep
=', ';;
861 eval enable_
$ac_useropt=\
$ac_optarg ;;
863 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
864 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
865 |
--exec |
--exe |
--ex)
866 ac_prev
=exec_prefix
;;
867 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
868 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
869 |
--exec=* |
--exe=* |
--ex=*)
870 exec_prefix
=$ac_optarg ;;
872 -gas |
--gas |
--ga |
--g)
873 # Obsolete; use --with-gas.
876 -help |
--help |
--hel |
--he |
-h)
878 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
879 ac_init_help
=recursive
;;
880 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
881 ac_init_help
=short
;;
883 -host |
--host |
--hos |
--ho)
884 ac_prev
=host_alias
;;
885 -host=* |
--host=* |
--hos=* |
--ho=*)
886 host_alias
=$ac_optarg ;;
888 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
890 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
892 htmldir
=$ac_optarg ;;
894 -includedir |
--includedir |
--includedi |
--included |
--include \
895 |
--includ |
--inclu |
--incl |
--inc)
896 ac_prev
=includedir
;;
897 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
898 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
899 includedir
=$ac_optarg ;;
901 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
903 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
904 infodir
=$ac_optarg ;;
906 -libdir |
--libdir |
--libdi |
--libd)
908 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
911 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
912 |
--libexe |
--libex |
--libe)
913 ac_prev
=libexecdir
;;
914 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
915 |
--libexe=* |
--libex=* |
--libe=*)
916 libexecdir
=$ac_optarg ;;
918 -localedir |
--localedir |
--localedi |
--localed |
--locale)
920 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
921 localedir
=$ac_optarg ;;
923 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
924 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
925 ac_prev
=localstatedir
;;
926 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
927 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
928 localstatedir
=$ac_optarg ;;
930 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
932 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
936 # Obsolete; use --without-fp.
939 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
940 |
--no-cr |
--no-c |
-n)
943 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
944 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
947 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
948 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
949 |
--oldin |
--oldi |
--old |
--ol |
--o)
950 ac_prev
=oldincludedir
;;
951 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
952 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
953 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
954 oldincludedir
=$ac_optarg ;;
956 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
958 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
961 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
962 |
--program-pre |
--program-pr |
--program-p)
963 ac_prev
=program_prefix
;;
964 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
965 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
966 program_prefix
=$ac_optarg ;;
968 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
969 |
--program-suf |
--program-su |
--program-s)
970 ac_prev
=program_suffix
;;
971 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
972 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
973 program_suffix
=$ac_optarg ;;
975 -program-transform-name |
--program-transform-name \
976 |
--program-transform-nam |
--program-transform-na \
977 |
--program-transform-n |
--program-transform- \
978 |
--program-transform |
--program-transfor \
979 |
--program-transfo |
--program-transf \
980 |
--program-trans |
--program-tran \
981 |
--progr-tra |
--program-tr |
--program-t)
982 ac_prev
=program_transform_name
;;
983 -program-transform-name=* |
--program-transform-name=* \
984 |
--program-transform-nam=* |
--program-transform-na=* \
985 |
--program-transform-n=* |
--program-transform-=* \
986 |
--program-transform=* |
--program-transfor=* \
987 |
--program-transfo=* |
--program-transf=* \
988 |
--program-trans=* |
--program-tran=* \
989 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
990 program_transform_name
=$ac_optarg ;;
992 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
994 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
997 -psdir |
--psdir |
--psdi |
--psd |
--ps)
999 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1002 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1003 |
-silent |
--silent |
--silen |
--sile |
--sil)
1006 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1008 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1010 sbindir
=$ac_optarg ;;
1012 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1013 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1014 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1016 ac_prev
=sharedstatedir
;;
1017 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1018 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1019 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1021 sharedstatedir
=$ac_optarg ;;
1023 -site |
--site |
--sit)
1025 -site=* |
--site=* |
--sit=*)
1028 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1030 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1031 srcdir
=$ac_optarg ;;
1033 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1034 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1035 ac_prev
=sysconfdir
;;
1036 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1037 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1038 sysconfdir
=$ac_optarg ;;
1040 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1041 ac_prev
=target_alias
;;
1042 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1043 target_alias
=$ac_optarg ;;
1045 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1048 -version |
--version |
--versio |
--versi |
--vers |
-V)
1049 ac_init_version
=: ;;
1052 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1055 as_fn_error
"invalid package name: $ac_useropt"
1056 ac_useropt_orig
=$ac_useropt
1057 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1062 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1063 ac_unrecognized_sep
=', ';;
1065 eval with_
$ac_useropt=\
$ac_optarg ;;
1067 -without-* |
--without-*)
1068 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1071 as_fn_error
"invalid package name: $ac_useropt"
1072 ac_useropt_orig
=$ac_useropt
1073 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074 case $ac_user_opts in
1078 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1079 ac_unrecognized_sep
=', ';;
1081 eval with_
$ac_useropt=no
;;
1084 # Obsolete; use --with-x.
1087 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1088 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1089 ac_prev
=x_includes
;;
1090 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1091 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1092 x_includes
=$ac_optarg ;;
1094 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1095 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1096 ac_prev
=x_libraries
;;
1097 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1098 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1099 x_libraries
=$ac_optarg ;;
1101 -*) as_fn_error
"unrecognized option: \`$ac_option'
1102 Try \`$0 --help' for more information."
1106 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1107 # Reject names that are not valid shell variable names.
1108 case $ac_envvar in #(
1109 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1110 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1112 eval $ac_envvar=\
$ac_optarg
1113 export $ac_envvar ;;
1116 # FIXME: should be removed in autoconf 3.0.
1117 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1118 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1119 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1120 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1126 if test -n "$ac_prev"; then
1127 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1128 as_fn_error
"missing argument to $ac_option"
1131 if test -n "$ac_unrecognized_opts"; then
1132 case $enable_option_checking in
1134 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1135 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1139 # Check all directory arguments for consistency.
1140 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1141 datadir sysconfdir sharedstatedir localstatedir includedir \
1142 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1143 libdir localedir mandir
1145 eval ac_val
=\$
$ac_var
1146 # Remove trailing slashes.
1149 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1150 eval $ac_var=\
$ac_val;;
1152 # Be sure to have absolute directory names.
1154 [\\/$
]* | ?
:[\\/]* ) continue;;
1155 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1157 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1160 # There might be people who depend on the old broken behavior: `$host'
1161 # used to hold the argument of --host etc.
1162 # FIXME: To remove some day.
1165 target
=$target_alias
1167 # FIXME: To remove some day.
1168 if test "x$host_alias" != x
; then
1169 if test "x$build_alias" = x
; then
1170 cross_compiling
=maybe
1171 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1172 If a cross compiler is detected then cross compile mode will be used." >&2
1173 elif test "x$build_alias" != "x$host_alias"; then
1179 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1181 test "$silent" = yes && exec 6>/dev
/null
1184 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1185 ac_ls_di
=`ls -di .` &&
1186 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1187 as_fn_error
"working directory cannot be determined"
1188 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1189 as_fn_error
"pwd does not report name of working directory"
1192 # Find the source files, if location was not specified.
1193 if test -z "$srcdir"; then
1194 ac_srcdir_defaulted
=yes
1195 # Try the directory containing this script, then the parent directory.
1196 ac_confdir
=`$as_dirname -- "$as_myself" ||
1197 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1198 X"$as_myself" : 'X\(//\)[^/]' \| \
1199 X"$as_myself" : 'X\(//\)$' \| \
1200 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1201 $as_echo X"$as_myself" |
1202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1220 if test ! -r "$srcdir/$ac_unique_file"; then
1224 ac_srcdir_defaulted
=no
1226 if test ! -r "$srcdir/$ac_unique_file"; then
1227 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1228 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1230 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1232 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1234 # When building in place, set srcdir=.
1235 if test "$ac_abs_confdir" = "$ac_pwd"; then
1238 # Remove unnecessary trailing slashes from srcdir.
1239 # Double slashes in file names in object file debugging info
1240 # mess up M-x gdb in Emacs.
1242 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1244 for ac_var
in $ac_precious_vars; do
1245 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1246 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1247 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1248 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1252 # Report the --help message.
1254 if test "$ac_init_help" = "long"; then
1255 # Omit some internal or obsolete options to make the list less imposing.
1256 # This message is too long to be a string in the A/UX 3.1 sh.
1258 \`configure' configures nbd 2.9.14 to adapt to many kinds of systems.
1260 Usage: $0 [OPTION]... [VAR=VALUE]...
1262 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1263 VAR=VALUE. See below for descriptions of some of the useful variables.
1265 Defaults for the options are specified in brackets.
1268 -h, --help display this help and exit
1269 --help=short display options specific to this package
1270 --help=recursive display the short help of all the included packages
1271 -V, --version display version information and exit
1272 -q, --quiet, --silent do not print \`checking...' messages
1273 --cache-file=FILE cache test results in FILE [disabled]
1274 -C, --config-cache alias for \`--cache-file=config.cache'
1275 -n, --no-create do not create output files
1276 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1278 Installation directories:
1279 --prefix=PREFIX install architecture-independent files in PREFIX
1280 [$ac_default_prefix]
1281 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1284 By default, \`make install' will install all the files in
1285 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1286 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1287 for instance \`--prefix=\$HOME'.
1289 For better control, use the options below.
1291 Fine tuning of the installation directories:
1292 --bindir=DIR user executables [EPREFIX/bin]
1293 --sbindir=DIR system admin executables [EPREFIX/sbin]
1294 --libexecdir=DIR program executables [EPREFIX/libexec]
1295 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1296 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1297 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1298 --libdir=DIR object code libraries [EPREFIX/lib]
1299 --includedir=DIR C header files [PREFIX/include]
1300 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1301 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1302 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1303 --infodir=DIR info documentation [DATAROOTDIR/info]
1304 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1305 --mandir=DIR man documentation [DATAROOTDIR/man]
1306 --docdir=DIR documentation root [DATAROOTDIR/doc/nbd]
1307 --htmldir=DIR html documentation [DOCDIR]
1308 --dvidir=DIR dvi documentation [DOCDIR]
1309 --pdfdir=DIR pdf documentation [DOCDIR]
1310 --psdir=DIR ps documentation [DOCDIR]
1316 --program-prefix=PREFIX prepend PREFIX to installed program names
1317 --program-suffix=SUFFIX append SUFFIX to installed program names
1318 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1321 --build=BUILD configure
for building on BUILD
[guessed
]
1322 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1326 if test -n "$ac_init_help"; then
1327 case $ac_init_help in
1328 short | recursive
) echo "Configuration of nbd 2.9.14:";;
1333 --disable-option-checking ignore unrecognized
--enable/--with options
1334 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1335 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1336 --enable-maintainer-mode enable make rules and dependencies not useful
1337 (and sometimes confusing
) to the casual installer
1338 --disable-lfs Disable Large File Support
(default on
)
1339 --enable-syslog Enable Syslog logging
1340 --enable-debug Build a debugging version of the server
1341 --enable-sdp Build a version of nbd-server with support
for the
1342 Socket Direct Protocol
(SDP
). Requires you to build
1343 and
install a kernel with the InfiniBand patches
1345 --disable-dependency-tracking speeds up one-time build
1346 --enable-dependency-tracking do not reject slow dependency extractors
1347 --disable-glibtest do not try to compile and run a
test GLIB program
1349 Some influential environment variables
:
1350 CC C compiler
command
1351 CFLAGS C compiler flags
1352 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1353 nonstandard directory
<lib dir
>
1354 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1355 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1356 you have headers
in a nonstandard directory
<include dir
>
1358 PKG_CONFIG path to pkg-config utility
1360 Use these variables to override the choices made by
`configure' or to help
1361 it to find libraries and programs with nonstandard names/locations.
1363 Report bugs to <wouter@debian.org>.
1368 if test "$ac_init_help" = "recursive"; then
1369 # If there are subdirs, report their specific --help.
1370 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1371 test -d "$ac_dir" ||
1372 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1377 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1379 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1380 # A ".." for each directory in $ac_dir_suffix.
1381 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1382 case $ac_top_builddir_sub in
1383 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1384 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1387 ac_abs_top_builddir=$ac_pwd
1388 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1389 # for backward compatibility:
1390 ac_top_builddir=$ac_top_build_prefix
1393 .) # We are building in place.
1395 ac_top_srcdir=$ac_top_builddir_sub
1396 ac_abs_top_srcdir=$ac_pwd ;;
1397 [\\/]* | ?:[\\/]* ) # Absolute name.
1398 ac_srcdir=$srcdir$ac_dir_suffix;
1399 ac_top_srcdir=$srcdir
1400 ac_abs_top_srcdir=$srcdir ;;
1402 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1403 ac_top_srcdir=$ac_top_build_prefix$srcdir
1404 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1406 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1408 cd "$ac_dir" || { ac_status=$?; continue; }
1409 # Check for guested configure.
1410 if test -f "$ac_srcdir/configure.gnu"; then
1412 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1413 elif test -f "$ac_srcdir/configure"; then
1415 $SHELL "$ac_srcdir/configure" --help=recursive
1417 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1419 cd "$ac_pwd" || { ac_status=$?; break; }
1423 test -n "$ac_init_help" && exit $ac_status
1424 if $ac_init_version; then
1426 nbd configure 2.9.14
1427 generated by GNU Autoconf 2.64
1429 Copyright (C) 2009 Free Software Foundation, Inc.
1430 This configure script is free software; the Free Software Foundation
1431 gives unlimited permission to copy, distribute and modify it.
1436 ## ------------------------ ##
1437 ## Autoconf initialization. ##
1438 ## ------------------------ ##
1440 # ac_fn_c_try_compile LINENO
1441 # --------------------------
1442 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1443 ac_fn_c_try_compile ()
1445 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1446 rm -f conftest.$ac_objext
1447 if { { ac_try="$ac_compile"
1449 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1450 *) ac_try_echo
=$ac_try;;
1452 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1453 $as_echo "$ac_try_echo"; } >&5
1454 (eval "$ac_compile") 2>conftest.err
1456 if test -s conftest.err
; then
1457 grep -v '^ *+' conftest.err
>conftest.er1
1458 cat conftest.er1
>&5
1459 mv -f conftest.er1 conftest.err
1461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1462 test $ac_status = 0; } && {
1463 test -z "$ac_c_werror_flag" ||
1464 test ! -s conftest.err
1465 } && test -s conftest.
$ac_objext; then :
1468 $as_echo "$as_me: failed program was:" >&5
1469 sed 's/^/| /' conftest.
$ac_ext >&5
1473 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1476 } # ac_fn_c_try_compile
1478 # ac_fn_c_try_cpp LINENO
1479 # ----------------------
1480 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1483 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1484 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1486 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1487 *) ac_try_echo=$ac_try;;
1489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1490 $as_echo "$ac_try_echo"; } >&5
1491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1493 if test -s conftest.err; then
1494 grep -v '^ *+' conftest.err >conftest.er1
1495 cat conftest.er1 >&5
1496 mv -f conftest.er1 conftest.err
1498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1499 test $ac_status = 0; } >/dev/null && {
1500 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1501 test ! -s conftest.err
1505 $as_echo "$as_me: failed program was:" >&5
1506 sed 's/^/| /' conftest.$ac_ext >&5
1510 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1515 # ac_fn_c_try_run LINENO
1516 # ----------------------
1517 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1518 # that executables *can* be run.
1521 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1522 if { { ac_try="$ac_link"
1524 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1525 *) ac_try_echo
=$ac_try;;
1527 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1528 $as_echo "$ac_try_echo"; } >&5
1529 (eval "$ac_link") 2>&5
1531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1532 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1533 { { case "(($ac_try" in
1534 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1535 *) ac_try_echo=$ac_try;;
1537 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1538 $as_echo "$ac_try_echo"; } >&5
1539 (eval "$ac_try") 2>&5
1541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1542 test $ac_status = 0; }; }; then :
1545 $as_echo "$as_me: program exited with status $ac_status" >&5
1546 $as_echo "$as_me: failed program was:" >&5
1547 sed 's/^/| /' conftest.$ac_ext >&5
1549 ac_retval=$ac_status
1551 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1552 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1557 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1558 # -------------------------------------------------------
1559 # Tests whether HEADER exists and can be compiled using the include files in
1560 # INCLUDES, setting the cache variable VAR accordingly.
1561 ac_fn_c_check_header_compile ()
1563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1565 $as_echo_n "checking for $2... " >&6; }
1566 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1567 $as_echo_n "(cached) " >&6
1569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1570 /* end confdefs.h. */
1574 if ac_fn_c_try_compile "$LINENO"; then :
1579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1583 $as_echo "$ac_res" >&6; }
1584 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1586 } # ac_fn_c_check_header_compile
1588 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1589 # --------------------------------------------
1590 # Tries to find the compile-time value of EXPR in a program that includes
1591 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1593 ac_fn_c_compute_int ()
1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596 if test "$cross_compiling" = yes; then
1597 # Depending upon the size, compute the lo and hi bounds.
1598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1599 /* end confdefs.h. */
1604 static int test_array [1 - 2 * !(($2) >= 0)];
1611 if ac_fn_c_try_compile "$LINENO"; then :
1614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1615 /* end confdefs.h. */
1620 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1627 if ac_fn_c_try_compile "$LINENO"; then :
1628 ac_hi=$ac_mid; break
1630 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1631 if test $ac_lo -le $ac_mid; then
1635 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1641 /* end confdefs.h. */
1646 static int test_array [1 - 2 * !(($2) < 0)];
1653 if ac_fn_c_try_compile "$LINENO"; then :
1656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1657 /* end confdefs.h. */
1662 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1669 if ac_fn_c_try_compile "$LINENO"; then :
1670 ac_lo=$ac_mid; break
1672 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1673 if test $ac_mid -le $ac_hi; then
1677 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1687 # Binary search between lo and hi bounds.
1688 while test "x$ac_lo" != "x$ac_hi"; do
1689 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1691 /* end confdefs.h. */
1696 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1703 if ac_fn_c_try_compile "$LINENO"; then :
1706 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1711 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716 /* end confdefs.h. */
1718 static long int longval () { return $2; }
1719 static unsigned long int ulongval () { return $2; }
1726 FILE *f = fopen ("conftest.val", "w");
1731 long int i = longval ();
1734 fprintf (f, "%ld", i);
1738 unsigned long int i = ulongval ();
1741 fprintf (f, "%lu", i);
1743 /* Do not output a trailing newline, as this causes \r\n confusion
1744 on some platforms. */
1745 return ferror (f) || fclose (f) != 0;
1751 if ac_fn_c_try_run "$LINENO"; then :
1752 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1756 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1757 conftest.$ac_objext conftest.beam conftest.$ac_ext
1761 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1764 } # ac_fn_c_compute_int
1766 # ac_fn_c_try_link LINENO
1767 # -----------------------
1768 # Try to link conftest.$ac_ext, and return whether this succeeded.
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 rm -f conftest.$ac_objext conftest$ac_exeext
1773 if { { ac_try="$ac_link"
1775 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1776 *) ac_try_echo
=$ac_try;;
1778 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779 $as_echo "$ac_try_echo"; } >&5
1780 (eval "$ac_link") 2>conftest.err
1782 if test -s conftest.err
; then
1783 grep -v '^ *+' conftest.err
>conftest.er1
1784 cat conftest.er1
>&5
1785 mv -f conftest.er1 conftest.err
1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788 test $ac_status = 0; } && {
1789 test -z "$ac_c_werror_flag" ||
1790 test ! -s conftest.err
1791 } && test -s conftest
$ac_exeext && {
1792 test "$cross_compiling" = yes ||
1793 $as_test_x conftest
$ac_exeext
1797 $as_echo "$as_me: failed program was:" >&5
1798 sed 's/^/| /' conftest.
$ac_ext >&5
1802 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1803 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1804 # interfere with the next link command; also delete a directory that is
1805 # left behind by Apple's compiler. We do this before executing the actions.
1806 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1807 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1810 } # ac_fn_c_try_link
1812 # ac_fn_c_check_func LINENO FUNC VAR
1813 # ----------------------------------
1814 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1815 ac_fn_c_check_func
()
1817 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1819 $as_echo_n "checking for $2... " >&6; }
1820 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1821 $as_echo_n "(cached) " >&6
1823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1824 /* end confdefs.h. */
1825 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1827 #define $2 innocuous_$2
1829 /* System header to define __stub macros and hopefully few prototypes,
1830 which can conflict with char $2 (); below.
1831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1832 <limits.h> exists even on freestanding compilers. */
1835 # include <limits.h>
1837 # include <assert.h>
1842 /* Override any GCC internal prototype to avoid an error.
1843 Use char because int might match the return type of a GCC
1844 builtin and then its argument prototype would still apply. */
1849 /* The GNU C library defines this for functions which it implements
1850 to always fail with ENOSYS. Some functions are actually named
1851 something starting with __ and the normal name is an alias. */
1852 #if defined __stub_$2 || defined __stub___$2
1864 if ac_fn_c_try_link
"$LINENO"; then :
1869 rm -f core conftest.err conftest.
$ac_objext \
1870 conftest
$ac_exeext conftest.
$ac_ext
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1874 $as_echo "$ac_res" >&6; }
1875 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1877 } # ac_fn_c_check_func
1879 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1880 # -------------------------------------------
1881 # Tests whether TYPE exists after having included INCLUDES, setting cache
1882 # variable VAR accordingly.
1883 ac_fn_c_check_type
()
1885 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887 $as_echo_n "checking for $2... " >&6; }
1888 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1889 $as_echo_n "(cached) " >&6
1892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1893 /* end confdefs.h. */
1904 if ac_fn_c_try_compile
"$LINENO"; then :
1905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h. */
1917 if ac_fn_c_try_compile
"$LINENO"; then :
1922 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1924 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928 $as_echo "$ac_res" >&6; }
1929 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1931 } # ac_fn_c_check_type
1933 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1934 # -------------------------------------------------------
1935 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1936 # the include files in INCLUDES and setting the cache variable VAR
1938 ac_fn_c_check_header_mongrel
()
1940 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1941 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1943 $as_echo_n "checking for $2... " >&6; }
1944 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1945 $as_echo_n "(cached) " >&6
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1949 $as_echo "$ac_res" >&6; }
1951 # Is the header compilable?
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1953 $as_echo_n "checking $2 usability... " >&6; }
1954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1955 /* end confdefs.h. */
1959 if ac_fn_c_try_compile
"$LINENO"; then :
1960 ac_header_compiler
=yes
1962 ac_header_compiler
=no
1964 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1966 $as_echo "$ac_header_compiler" >&6; }
1968 # Is the header present?
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1970 $as_echo_n "checking $2 presence... " >&6; }
1971 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1972 /* end confdefs.h. */
1975 if ac_fn_c_try_cpp
"$LINENO"; then :
1976 ac_header_preproc
=yes
1978 ac_header_preproc
=no
1980 rm -f conftest.err conftest.
$ac_ext
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1982 $as_echo "$ac_header_preproc" >&6; }
1984 # So? What about this header?
1985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1988 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1990 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1994 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1996 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1998 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2000 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2002 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2004 ## -------------------------------- ##
2005 ## Report this to wouter@debian.org ##
2006 ## -------------------------------- ##
2008 ) |
sed "s/^/$as_me: WARNING: /" >&2
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2012 $as_echo_n "checking for $2... " >&6; }
2013 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2014 $as_echo_n "(cached) " >&6
2016 eval "$3=\$ac_header_compiler"
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2020 $as_echo "$ac_res" >&6; }
2022 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2024 } # ac_fn_c_check_header_mongrel
2025 cat >config.log
<<_ACEOF
2026 This file contains any messages produced by compilers while
2027 running configure, to aid debugging if configure makes a mistake.
2029 It was created by nbd $as_me 2.9.14, which was
2030 generated by GNU Autoconf 2.64. Invocation command line was
2042 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2043 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2044 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2045 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2046 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2048 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2049 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2051 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2052 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2053 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2054 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2055 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2056 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2057 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2061 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2065 test -z "$as_dir" && as_dir
=.
2066 $as_echo "PATH: $as_dir"
2082 # Keep a trace of the command line.
2083 # Strip out --no-create and --no-recursion so they do not pile up.
2084 # Strip out --silent because we don't want to record it for future runs.
2085 # Also quote any args containing shell meta-characters.
2086 # Make two passes to allow for proper duplicate-argument suppression.
2090 ac_must_keep_next
=false
2096 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2097 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2098 |
-silent |
--silent |
--silen |
--sile |
--sil)
2101 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2104 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2106 as_fn_append ac_configure_args1
" '$ac_arg'"
2107 if test $ac_must_keep_next = true
; then
2108 ac_must_keep_next
=false
# Got value, back to normal.
2111 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2112 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2113 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2114 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2115 case "$ac_configure_args0 " in
2116 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2119 -* ) ac_must_keep_next
=true
;;
2122 as_fn_append ac_configure_args
" '$ac_arg'"
2127 { ac_configure_args0
=; unset ac_configure_args0
;}
2128 { ac_configure_args1
=; unset ac_configure_args1
;}
2130 # When interrupted or exit'd, cleanup temporary files, and complete
2131 # config.log. We remove comments because anyway the quotes in there
2132 # would cause problems or look ugly.
2133 # WARNING: Use '\'' to represent an apostrophe within the trap.
2134 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2135 trap 'exit_status=$?
2136 # Save into config.log some information that might help in debugging.
2141 ## ---------------- ##
2142 ## Cache variables. ##
2143 ## ---------------- ##
2146 # The following way of writing the cache mishandles newlines in values,
2148 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2149 eval ac_val=\$$ac_var
2153 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2154 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2157 _ | IFS | as_nl) ;; #(
2158 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2159 *) { eval $ac_var=; unset $ac_var;} ;;
2164 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2165 *${as_nl}ac_space=\ *)
2167 "s/'\''/'\''\\\\'\'''\''/g;
2168 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2171 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2179 ## ----------------- ##
2180 ## Output variables. ##
2181 ## ----------------- ##
2184 for ac_var in $ac_subst_vars
2186 eval ac_val=\$$ac_var
2188 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2190 $as_echo "$ac_var='\''$ac_val'\''"
2194 if test -n "$ac_subst_files"; then
2196 ## ------------------- ##
2197 ## File substitutions. ##
2198 ## ------------------- ##
2201 for ac_var
in $ac_subst_files
2203 eval ac_val
=\$
$ac_var
2205 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2207 $as_echo "$ac_var='\''$ac_val'\''"
2212 if test -s confdefs.h; then
2222 test "$ac_signal" != 0 &&
2223 $as_echo "$as_me: caught signal $ac_signal"
2224 $as_echo "$as_me: exit $exit_status"
2226 rm -f core *.core core.conftest.* &&
2227 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2230 for ac_signal
in 1 2 13 15; do
2231 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2235 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2236 rm -f -r conftest
* confdefs.h
2238 $as_echo "/* confdefs.h */" > confdefs.h
2240 # Predefined preprocessor variables.
2242 cat >>confdefs.h
<<_ACEOF
2243 #define PACKAGE_NAME "$PACKAGE_NAME"
2246 cat >>confdefs.h
<<_ACEOF
2247 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2250 cat >>confdefs.h
<<_ACEOF
2251 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2254 cat >>confdefs.h
<<_ACEOF
2255 #define PACKAGE_STRING "$PACKAGE_STRING"
2258 cat >>confdefs.h
<<_ACEOF
2259 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2262 cat >>confdefs.h
<<_ACEOF
2263 #define PACKAGE_URL "$PACKAGE_URL"
2267 # Let the site file select an alternate cache file if it wants to.
2268 # Prefer an explicitly selected file to automatically selected ones.
2271 if test -n "$CONFIG_SITE"; then
2272 ac_site_file1
=$CONFIG_SITE
2273 elif test "x$prefix" != xNONE
; then
2274 ac_site_file1
=$prefix/share
/config.site
2275 ac_site_file2
=$prefix/etc
/config.site
2277 ac_site_file1
=$ac_default_prefix/share
/config.site
2278 ac_site_file2
=$ac_default_prefix/etc
/config.site
2280 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2282 test "x$ac_site_file" = xNONE
&& continue
2283 if test -r "$ac_site_file"; then
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2285 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2286 sed 's/^/| /' "$ac_site_file" >&5
2291 if test -r "$cache_file"; then
2292 # Some versions of bash will fail to source /dev/null (special
2293 # files actually), so we avoid doing that.
2294 if test -f "$cache_file"; then
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2296 $as_echo "$as_me: loading cache $cache_file" >&6;}
2298 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2299 *) .
"./$cache_file";;
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2304 $as_echo "$as_me: creating cache $cache_file" >&6;}
2308 # Check that the precious variables saved in the cache have kept the same
2310 ac_cache_corrupted
=false
2311 for ac_var
in $ac_precious_vars; do
2312 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2313 eval ac_new_set
=\
$ac_env_${ac_var}_set
2314 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2315 eval ac_new_val
=\
$ac_env_${ac_var}_value
2316 case $ac_old_set,$ac_new_set in
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2319 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2320 ac_cache_corrupted
=: ;;
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2323 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2324 ac_cache_corrupted
=: ;;
2327 if test "x$ac_old_val" != "x$ac_new_val"; then
2328 # differences in whitespace do not lead to failure.
2329 ac_old_val_w
=`echo x $ac_old_val`
2330 ac_new_val_w
=`echo x $ac_new_val`
2331 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2333 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2334 ac_cache_corrupted
=:
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2337 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2338 eval $ac_var=\
$ac_old_val
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2341 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2343 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2346 # Pass precious variables to config.status.
2347 if test "$ac_new_set" = set; then
2349 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2350 *) ac_arg
=$ac_var=$ac_new_val ;;
2352 case " $ac_configure_args " in
2353 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2354 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2358 if $ac_cache_corrupted; then
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2360 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2362 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2363 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2365 ## -------------------- ##
2366 ## Main body of script. ##
2367 ## -------------------- ##
2370 ac_cpp
='$CPP $CPPFLAGS'
2371 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2372 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2373 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2376 am__api_version
='1.11'
2379 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2380 for ac_t
in install-sh
install.sh shtool
; do
2381 if test -f "$ac_dir/$ac_t"; then
2383 ac_install_sh
="$ac_aux_dir/$ac_t -c"
2388 if test -z "$ac_aux_dir"; then
2389 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2392 # These three variables are undocumented and unsupported,
2393 # and are intended to be withdrawn in a future Autoconf release.
2394 # They can cause serious problems if a builder's source tree is in a directory
2395 # whose full name contains unusual characters.
2396 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2397 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2398 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2401 # Find a good install program. We prefer a C program (faster),
2402 # so one script is as good as another. But avoid the broken or
2403 # incompatible versions:
2404 # SysV /etc/install, /usr/sbin/install
2405 # SunOS /usr/etc/install
2406 # IRIX /sbin/install
2408 # AmigaOS /C/install, which installs bootblocks on floppy discs
2409 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2410 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2411 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2412 # OS/2's system install, which has a completely different semantic
2413 # ./install, which can be erroneously created by make from ./install.sh.
2414 # Reject install programs that cannot install multiple files.
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2416 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2417 if test -z "$INSTALL"; then
2418 if test "${ac_cv_path_install+set}" = set; then :
2419 $as_echo_n "(cached) " >&6
2421 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2425 test -z "$as_dir" && as_dir
=.
2426 # Account for people who put trailing slashes in PATH elements.
2427 case $as_dir/ in #((
2428 .
/ | .
// |
/[cC
]/* | \
2429 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2430 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2433 # OSF1 and SCO ODT 3.0 have their own names for install.
2434 # Don't use installbsd from OSF since it installs stuff as root
2436 for ac_prog
in ginstall scoinst
install; do
2437 for ac_exec_ext
in '' $ac_executable_extensions; do
2438 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2439 if test $ac_prog = install &&
2440 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2441 # AIX install. It has an incompatible calling convention.
2443 elif test $ac_prog = install &&
2444 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2445 # program-specific install script used by HP pwplus--don't use.
2448 rm -rf conftest.one conftest.two conftest.dir
2449 echo one
> conftest.one
2450 echo two
> conftest.two
2452 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2453 test -s conftest.one
&& test -s conftest.two
&&
2454 test -s conftest.dir
/conftest.one
&&
2455 test -s conftest.dir
/conftest.two
2457 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2470 rm -rf conftest.one conftest.two conftest.dir
2473 if test "${ac_cv_path_install+set}" = set; then
2474 INSTALL
=$ac_cv_path_install
2476 # As a last resort, use the slow shell script. Don't cache a
2477 # value for INSTALL within a source directory, because that will
2478 # break other packages using the cache if that directory is
2479 # removed, or if the value is a relative name.
2480 INSTALL
=$ac_install_sh
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2484 $as_echo "$INSTALL" >&6; }
2486 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2487 # It thinks the first close brace ends the variable substitution.
2488 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2490 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2492 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2495 $as_echo_n "checking whether build environment is sane... " >&6; }
2498 echo timestamp
> conftest.
file
2499 # Reject unsafe characters in $srcdir or the absolute working directory
2500 # name. Accept space and tab only in the latter.
2504 *[\\\"\
#\$\&\'\`$am_lf]*)
2505 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
2508 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2509 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2512 # Do `set' in a subshell so we don't clobber the current shell's
2513 # arguments. Must try -L first in case configure is actually a
2514 # symlink; some systems play weird games with the mod time of symlinks
2515 # (eg FreeBSD returns the mod time of the symlink's containing
2518 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2519 if test "$*" = "X"; then
2521 set X
`ls -t "$srcdir/configure" conftest.file`
2524 if test "$*" != "X $srcdir/configure conftest.file" \
2525 && test "$*" != "X conftest.file $srcdir/configure"; then
2527 # If neither matched, then we have a broken ls. This can happen
2528 # if, for instance, CONFIG_SHELL is bash and it inherits a
2529 # broken ls alias from the environment. This has actually
2530 # happened. Such a system could not be considered "sane".
2531 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
2532 alias in your environment" "$LINENO" 5
2535 test "$2" = conftest.
file
2541 as_fn_error
"newly created file is older than distributed files!
2542 Check your system clock" "$LINENO" 5
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2545 $as_echo "yes" >&6; }
2546 test "$program_prefix" != NONE
&&
2547 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2548 # Use a double $ so make ignores it.
2549 test "$program_suffix" != NONE
&&
2550 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2551 # Double any \ or $.
2552 # By default was `s,x,x', remove it if useless.
2553 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2554 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2556 # expand $ac_aux_dir to an absolute path
2557 am_aux_dir
=`cd $ac_aux_dir && pwd`
2559 if test x
"${MISSING+set}" != xset
; then
2562 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2564 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2567 # Use eval to expand $SHELL
2568 if eval "$MISSING --run true"; then
2569 am_missing_run
="$MISSING --run "
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2573 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2576 if test x
"${install_sh}" != xset
; then
2579 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2581 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2585 # Installed binaries are usually stripped using `strip' when the user
2586 # run `make install-strip'. However `strip' might not be the right
2587 # tool to use in cross-compilation environments, therefore Automake
2588 # will honor the `STRIP' environment variable to overrule this program.
2589 if test "$cross_compiling" != no
; then
2590 if test -n "$ac_tool_prefix"; then
2591 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2592 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2594 $as_echo_n "checking for $ac_word... " >&6; }
2595 if test "${ac_cv_prog_STRIP+set}" = set; then :
2596 $as_echo_n "(cached) " >&6
2598 if test -n "$STRIP"; then
2599 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2601 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2605 test -z "$as_dir" && as_dir
=.
2606 for ac_exec_ext
in '' $ac_executable_extensions; do
2607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2608 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2618 STRIP
=$ac_cv_prog_STRIP
2619 if test -n "$STRIP"; then
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2621 $as_echo "$STRIP" >&6; }
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2624 $as_echo "no" >&6; }
2629 if test -z "$ac_cv_prog_STRIP"; then
2631 # Extract the first word of "strip", so it can be a program name with args.
2632 set dummy strip
; ac_word
=$2
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2634 $as_echo_n "checking for $ac_word... " >&6; }
2635 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2636 $as_echo_n "(cached) " >&6
2638 if test -n "$ac_ct_STRIP"; then
2639 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2641 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2645 test -z "$as_dir" && as_dir
=.
2646 for ac_exec_ext
in '' $ac_executable_extensions; do
2647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2648 ac_cv_prog_ac_ct_STRIP
="strip"
2649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2658 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2659 if test -n "$ac_ct_STRIP"; then
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2661 $as_echo "$ac_ct_STRIP" >&6; }
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2664 $as_echo "no" >&6; }
2667 if test "x$ac_ct_STRIP" = x
; then
2670 case $cross_compiling:$ac_tool_warned in
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2673 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2674 ac_tool_warned
=yes ;;
2679 STRIP
="$ac_cv_prog_STRIP"
2683 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2686 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2687 if test -z "$MKDIR_P"; then
2688 if test "${ac_cv_path_mkdir+set}" = set; then :
2689 $as_echo_n "(cached) " >&6
2691 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2692 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2695 test -z "$as_dir" && as_dir
=.
2696 for ac_prog
in mkdir gmkdir
; do
2697 for ac_exec_ext
in '' $ac_executable_extensions; do
2698 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
2699 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2700 'mkdir (GNU coreutils) '* | \
2701 'mkdir (coreutils) '* | \
2702 'mkdir (fileutils) '4.1*)
2703 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2713 if test "${ac_cv_path_mkdir+set}" = set; then
2714 MKDIR_P
="$ac_cv_path_mkdir -p"
2716 # As a last resort, use the slow shell script. Don't cache a
2717 # value for MKDIR_P within a source directory, because that will
2718 # break other packages using the cache if that directory is
2719 # removed, or if the value is a relative name.
2720 test -d .
/--version && rmdir .
/--version
2721 MKDIR_P
="$ac_install_sh -d"
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2725 $as_echo "$MKDIR_P" >&6; }
2729 [\\/$
]* | ?
:[\\/]*) ;;
2730 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
2733 for ac_prog
in gawk mawk nawk
awk
2735 # Extract the first word of "$ac_prog", so it can be a program name with args.
2736 set dummy
$ac_prog; ac_word
=$2
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2738 $as_echo_n "checking for $ac_word... " >&6; }
2739 if test "${ac_cv_prog_AWK+set}" = set; then :
2740 $as_echo_n "(cached) " >&6
2742 if test -n "$AWK"; then
2743 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2745 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2749 test -z "$as_dir" && as_dir
=.
2750 for ac_exec_ext
in '' $ac_executable_extensions; do
2751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2752 ac_cv_prog_AWK
="$ac_prog"
2753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2763 if test -n "$AWK"; then
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2765 $as_echo "$AWK" >&6; }
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2768 $as_echo "no" >&6; }
2772 test -n "$AWK" && break
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2776 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2778 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2779 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2780 $as_echo_n "(cached) " >&6
2782 cat >conftest.
make <<\_ACEOF
2785 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2787 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2788 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2790 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2792 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2796 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2798 $as_echo "yes" >&6; }
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802 $as_echo "no" >&6; }
2803 SET_MAKE
="MAKE=${MAKE-make}"
2806 rm -rf .tst
2>/dev
/null
2807 mkdir .tst
2>/dev
/null
2808 if test -d .tst
; then
2813 rmdir .tst
2>/dev
/null
2815 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2816 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2817 # is not polluted with repeated "-I."
2818 am__isrc
=' -I$(srcdir)'
2819 # test to see if srcdir already configured
2820 if test -f $srcdir/config.status
; then
2821 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2825 # test whether we have cygpath
2826 if test -z "$CYGPATH_W"; then
2827 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2828 CYGPATH_W
='cygpath -w'
2835 # Define the identity of the package.
2840 cat >>confdefs.h
<<_ACEOF
2841 #define PACKAGE "$PACKAGE"
2845 cat >>confdefs.h
<<_ACEOF
2846 #define VERSION "$VERSION"
2849 # Some tools Automake needs.
2851 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2854 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
2857 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2860 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
2863 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
2865 # We need awk for the "check" target. The system "awk" is bad on
2867 # Always define AMTAR for backward compatibility.
2869 AMTAR
=${AMTAR-"${am_missing_run}tar"}
2871 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2879 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2880 # Check whether --enable-maintainer-mode was given.
2881 if test "${enable_maintainer_mode+set}" = set; then :
2882 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2884 USE_MAINTAINER_MODE
=no
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2888 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2889 if test $USE_MAINTAINER_MODE = yes; then
2890 MAINTAINER_MODE_TRUE
=
2891 MAINTAINER_MODE_FALSE
='#'
2893 MAINTAINER_MODE_TRUE
='#'
2894 MAINTAINER_MODE_FALSE
=
2897 MAINT
=$MAINTAINER_MODE_TRUE
2901 # Check whether --enable-lfs was given.
2902 if test "${enable_lfs+set}" = set; then :
2903 enableval
=$enable_lfs;
2904 if test "x$enableval" = "xyes" ; then
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Large File Support should be enabled" >&5
2916 $as_echo_n "checking whether Large File Support should be enabled... " >&6; }
2917 if test $NBD_LFS -eq 1; then
2919 $as_echo "#define NBD_LFS 1" >>confdefs.h
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2922 $as_echo "yes" >&6; }
2924 $as_echo "#define NBD_LFS 0" >>confdefs.h
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2927 $as_echo "no" >&6; }
2930 # Check whether --enable-syslog was given.
2931 if test "${enable_syslog+set}" = set; then :
2932 enableval
=$enable_syslog;
2933 if test "x$enableval" = "xyes" ; then
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether syslog logging is requested" >&5
2946 $as_echo_n "checking whether syslog logging is requested... " >&6; }
2947 if test $ISSERVER -eq 1; then
2949 $as_echo "#define ISSERVER 1" >>confdefs.h
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2952 $as_echo "yes" >&6; }
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2955 $as_echo "no" >&6; }
2958 # Check whether --enable-debug was given.
2959 if test "${enable_debug+set}" = set; then :
2960 enableval
=$enable_debug;
2961 if test "x$enableval" = "xyes"; then
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a debugging version is requested" >&5
2974 $as_echo_n "checking whether a debugging version is requested... " >&6; }
2975 if test $DODBG -eq 1; then
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2977 $as_echo "yes" >&6; }
2978 if test $ISSERVER -eq 1; then
2979 as_fn_error
"You requested both syslog logging and a debugging version of the server. Bad idea!" "$LINENO" 5
2982 $as_echo "#define DODBG 1" >>confdefs.h
2985 $as_echo "#define NOFORK 1" >>confdefs.h
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989 $as_echo "no" >&6; }
2992 # Check whether --enable-sdp was given.
2993 if test "${enable_sdp+set}" = set; then :
2994 enableval
=$enable_sdp;
2995 if test "x$enableval" = "xyes"; then
2997 $as_echo "#define WITH_SDP 1" >>confdefs.h
3006 ac_cpp
='$CPP $CPPFLAGS'
3007 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3008 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3009 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3010 if test -n "$ac_tool_prefix"; then
3011 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3012 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3014 $as_echo_n "checking for $ac_word... " >&6; }
3015 if test "${ac_cv_prog_CC+set}" = set; then :
3016 $as_echo_n "(cached) " >&6
3018 if test -n "$CC"; then
3019 ac_cv_prog_CC
="$CC" # Let the user override the test.
3021 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3025 test -z "$as_dir" && as_dir
=.
3026 for ac_exec_ext
in '' $ac_executable_extensions; do
3027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3028 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3039 if test -n "$CC"; then
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3041 $as_echo "$CC" >&6; }
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3044 $as_echo "no" >&6; }
3049 if test -z "$ac_cv_prog_CC"; then
3051 # Extract the first word of "gcc", so it can be a program name with args.
3052 set dummy gcc
; ac_word
=$2
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3054 $as_echo_n "checking for $ac_word... " >&6; }
3055 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3056 $as_echo_n "(cached) " >&6
3058 if test -n "$ac_ct_CC"; then
3059 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3061 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3065 test -z "$as_dir" && as_dir
=.
3066 for ac_exec_ext
in '' $ac_executable_extensions; do
3067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3068 ac_cv_prog_ac_ct_CC
="gcc"
3069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3078 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3079 if test -n "$ac_ct_CC"; then
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3081 $as_echo "$ac_ct_CC" >&6; }
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3084 $as_echo "no" >&6; }
3087 if test "x$ac_ct_CC" = x
; then
3090 case $cross_compiling:$ac_tool_warned in
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3093 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3094 ac_tool_warned
=yes ;;
3102 if test -z "$CC"; then
3103 if test -n "$ac_tool_prefix"; then
3104 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3105 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3107 $as_echo_n "checking for $ac_word... " >&6; }
3108 if test "${ac_cv_prog_CC+set}" = set; then :
3109 $as_echo_n "(cached) " >&6
3111 if test -n "$CC"; then
3112 ac_cv_prog_CC
="$CC" # Let the user override the test.
3114 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3118 test -z "$as_dir" && as_dir
=.
3119 for ac_exec_ext
in '' $ac_executable_extensions; do
3120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3121 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3132 if test -n "$CC"; then
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3134 $as_echo "$CC" >&6; }
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3137 $as_echo "no" >&6; }
3143 if test -z "$CC"; then
3144 # Extract the first word of "cc", so it can be a program name with args.
3145 set dummy cc
; ac_word
=$2
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3147 $as_echo_n "checking for $ac_word... " >&6; }
3148 if test "${ac_cv_prog_CC+set}" = set; then :
3149 $as_echo_n "(cached) " >&6
3151 if test -n "$CC"; then
3152 ac_cv_prog_CC
="$CC" # Let the user override the test.
3155 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3159 test -z "$as_dir" && as_dir
=.
3160 for ac_exec_ext
in '' $ac_executable_extensions; do
3161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3162 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3163 ac_prog_rejected
=yes
3167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3174 if test $ac_prog_rejected = yes; then
3175 # We found a bogon in the path, so make sure we never use it.
3176 set dummy
$ac_cv_prog_CC
3178 if test $# != 0; then
3179 # We chose a different compiler from the bogus one.
3180 # However, it has the same basename, so the bogon will be chosen
3181 # first if we set CC to just the basename; use the full file name.
3183 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3189 if test -n "$CC"; then
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3191 $as_echo "$CC" >&6; }
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3194 $as_echo "no" >&6; }
3199 if test -z "$CC"; then
3200 if test -n "$ac_tool_prefix"; then
3201 for ac_prog
in cl.exe
3203 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3204 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3206 $as_echo_n "checking for $ac_word... " >&6; }
3207 if test "${ac_cv_prog_CC+set}" = set; then :
3208 $as_echo_n "(cached) " >&6
3210 if test -n "$CC"; then
3211 ac_cv_prog_CC
="$CC" # Let the user override the test.
3213 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3217 test -z "$as_dir" && as_dir
=.
3218 for ac_exec_ext
in '' $ac_executable_extensions; do
3219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3220 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3231 if test -n "$CC"; then
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3233 $as_echo "$CC" >&6; }
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236 $as_echo "no" >&6; }
3240 test -n "$CC" && break
3243 if test -z "$CC"; then
3245 for ac_prog
in cl.exe
3247 # Extract the first word of "$ac_prog", so it can be a program name with args.
3248 set dummy
$ac_prog; ac_word
=$2
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3250 $as_echo_n "checking for $ac_word... " >&6; }
3251 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3252 $as_echo_n "(cached) " >&6
3254 if test -n "$ac_ct_CC"; then
3255 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3257 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3261 test -z "$as_dir" && as_dir
=.
3262 for ac_exec_ext
in '' $ac_executable_extensions; do
3263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3264 ac_cv_prog_ac_ct_CC
="$ac_prog"
3265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3274 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3275 if test -n "$ac_ct_CC"; then
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3277 $as_echo "$ac_ct_CC" >&6; }
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3280 $as_echo "no" >&6; }
3284 test -n "$ac_ct_CC" && break
3287 if test "x$ac_ct_CC" = x
; then
3290 case $cross_compiling:$ac_tool_warned in
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3293 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3294 ac_tool_warned
=yes ;;
3303 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3305 as_fn_error
"no acceptable C compiler found in \$PATH
3306 See \`config.log' for more details." "$LINENO" 5; }
3308 # Provide some information about the compiler.
3309 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3312 for ac_option
in --version -v -V -qversion; do
3313 { { ac_try
="$ac_compiler $ac_option >&5"
3315 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3316 *) ac_try_echo=$ac_try;;
3318 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3319 $as_echo "$ac_try_echo"; } >&5
3320 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3322 if test -s conftest.err; then
3324 ... rest of stderr output deleted ...
3325 10q' conftest.err >conftest.er1
3326 cat conftest.er1 >&5
3327 rm -f conftest.er1 conftest.err
3329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3330 test $ac_status = 0; }
3333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3334 /* end confdefs.h. */
3339 FILE *f = fopen ("conftest.out", "w");
3340 return ferror (f) || fclose (f) != 0;
3346 ac_clean_files_save=$ac_clean_files
3347 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3348 # Try to create an executable without -o first, disregard a.out.
3349 # It will help us diagnose broken compilers, and finding out an intuition
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3352 $as_echo_n "checking for C compiler default output file name... " >&6; }
3353 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3355 # The possible output files:
3356 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3359 for ac_file in $ac_files
3362 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3363 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3368 if { { ac_try="$ac_link_default"
3370 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3371 *) ac_try_echo
=$ac_try;;
3373 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3374 $as_echo "$ac_try_echo"; } >&5
3375 (eval "$ac_link_default") 2>&5
3377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3378 test $ac_status = 0; }; then :
3379 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3380 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3381 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3382 # so that the user can short-circuit this test for compilers unknown to
3384 for ac_file
in $ac_files ''
3386 test -f "$ac_file" ||
continue
3388 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3391 # We found the default executable, but exeext='' is most
3395 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3397 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3399 # We set ac_cv_exeext here because the later test for it is not
3400 # safe: cross compilers may not add the suffix if given an `-o'
3401 # argument, so we may need to know it at that point already.
3402 # Even if this section looks crufty: it has the advantage of
3409 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3415 $as_echo "$ac_file" >&6; }
3416 if test -z "$ac_file"; then :
3417 $as_echo "$as_me: failed program was:" >&5
3418 sed 's/^/| /' conftest.
$ac_ext >&5
3420 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3422 { as_fn_set_status
77
3423 as_fn_error
"C compiler cannot create executables
3424 See \`config.log' for more details." "$LINENO" 5; }; }
3426 ac_exeext
=$ac_cv_exeext
3428 # Check that the compiler produces executables we can run. If not, either
3429 # the compiler is broken, or we cross compile.
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3431 $as_echo_n "checking whether the C compiler works... " >&6; }
3432 # If not cross compiling, check that we can run a simple program.
3433 if test "$cross_compiling" != yes; then
3434 if { ac_try
='./$ac_file'
3435 { { case "(($ac_try" in
3436 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3437 *) ac_try_echo=$ac_try;;
3439 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3440 $as_echo "$ac_try_echo"; } >&5
3441 (eval "$ac_try") 2>&5
3443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3444 test $ac_status = 0; }; }; then
3447 if test "$cross_compiling" = maybe; then
3450 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3452 as_fn_error "cannot run C compiled programs.
3453 If you meant to cross compile
, use \
`--host'.
3454 See \`config.log
' for more details." "$LINENO" 5; }
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3459 $as_echo "yes" >&6; }
3461 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3462 ac_clean_files=$ac_clean_files_save
3463 # Check that the compiler produces executables we can run. If not, either
3464 # the compiler is broken, or we cross compile.
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3466 $as_echo_n "checking whether we are cross compiling... " >&6; }
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3468 $as_echo "$cross_compiling" >&6; }
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3471 $as_echo_n "checking for suffix of executables... " >&6; }
3472 if { { ac_try="$ac_link"
3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475 *) ac_try_echo=$ac_try;;
3477 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3478 $as_echo "$ac_try_echo"; } >&5
3479 (eval "$ac_link") 2>&5
3481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3482 test $ac_status = 0; }; then :
3483 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3484 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3485 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3487 for ac_file
in conftest.exe conftest conftest.
*; do
3488 test -f "$ac_file" ||
continue
3490 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3491 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3497 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3499 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3500 See \`config.log' for more details." "$LINENO" 5; }
3502 rm -f conftest
$ac_cv_exeext
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3504 $as_echo "$ac_cv_exeext" >&6; }
3506 rm -f conftest.
$ac_ext
3507 EXEEXT
=$ac_cv_exeext
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3510 $as_echo_n "checking for suffix of object files... " >&6; }
3511 if test "${ac_cv_objext+set}" = set; then :
3512 $as_echo_n "(cached) " >&6
3514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3515 /* end confdefs.h. */
3525 rm -f conftest.o conftest.obj
3526 if { { ac_try
="$ac_compile"
3528 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3532 $as_echo "$ac_try_echo"; } >&5
3533 (eval "$ac_compile") 2>&5
3535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3536 test $ac_status = 0; }; then :
3537 for ac_file in conftest.o conftest.obj conftest.*; do
3538 test -f "$ac_file" || continue;
3540 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3541 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3546 $as_echo "$as_me: failed program was:" >&5
3547 sed 's/^/| /' conftest.$ac_ext >&5
3549 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3551 as_fn_error "cannot compute suffix of object files
: cannot compile
3552 See \
`config.log' for more details." "$LINENO" 5; }
3554 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3557 $as_echo "$ac_cv_objext" >&6; }
3558 OBJEXT=$ac_cv_objext
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3561 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3562 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3563 $as_echo_n "(cached) " >&6
3565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3566 /* end confdefs.h. */
3579 if ac_fn_c_try_compile "$LINENO"; then :
3584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3585 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3589 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3590 if test $ac_compiler_gnu = yes; then
3595 ac_test_CFLAGS=${CFLAGS+set}
3596 ac_save_CFLAGS=$CFLAGS
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3598 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3599 if test "${ac_cv_prog_cc_g+set}" = set; then :
3600 $as_echo_n "(cached) " >&6
3602 ac_save_c_werror_flag=$ac_c_werror_flag
3603 ac_c_werror_flag=yes
3606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3607 /* end confdefs.h. */
3617 if ac_fn_c_try_compile "$LINENO"; then :
3621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622 /* end confdefs.h. */
3632 if ac_fn_c_try_compile "$LINENO"; then :
3635 ac_c_werror_flag=$ac_save_c_werror_flag
3637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3638 /* end confdefs.h. */
3648 if ac_fn_c_try_compile "$LINENO"; then :
3651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3656 ac_c_werror_flag=$ac_save_c_werror_flag
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3659 $as_echo "$ac_cv_prog_cc_g" >&6; }
3660 if test "$ac_test_CFLAGS" = set; then
3661 CFLAGS=$ac_save_CFLAGS
3662 elif test $ac_cv_prog_cc_g = yes; then
3663 if test "$GCC" = yes; then
3669 if test "$GCC" = yes; then
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3676 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3677 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3678 $as_echo_n "(cached) " >&6
3680 ac_cv_prog_cc_c89=no
3682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683 /* end confdefs.h. */
3686 #include <sys/types.h>
3687 #include <sys/stat.h>
3688 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3689 struct buf { int x; };
3690 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3691 static char *e (p, i)
3697 static char *f (char * (*g) (char **, int), char **p, ...)
3702 s = g (p, va_arg (v,int));
3707 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3708 function prototypes and stuff, but not '\xHH' hex character constants.
3709 These don't provoke an error unfortunately, instead are silently treated
3710 as 'x'. The following induces an error, until -std is added to get
3711 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3712 array size at least. It's necessary to write '\x00'==0 to get something
3713 that's true only with -std. */
3714 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3716 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3717 inside strings and character constants. */
3719 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3721 int test (int i, double x);
3722 struct s1 {int (*f) (int a);};
3723 struct s2 {int (*f) (double a);};
3724 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3730 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3735 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3736 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3738 CC="$ac_save_CC $ac_arg"
3739 if ac_fn_c_try_compile "$LINENO"; then :
3740 ac_cv_prog_cc_c89=$ac_arg
3742 rm -f core conftest.err conftest.$ac_objext
3743 test "x$ac_cv_prog_cc_c89" != "xno" && break
3745 rm -f conftest.$ac_ext
3750 case "x$ac_cv_prog_cc_c89" in
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3753 $as_echo "none needed" >&6; } ;;
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3756 $as_echo "unsupported" >&6; } ;;
3758 CC="$CC $ac_cv_prog_cc_c89"
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3760 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3762 if test "x$ac_cv_prog_cc_c89" != xno; then :
3767 ac_cpp='$CPP $CPPFLAGS'
3768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3771 DEPDIR="${am__leading_dot}deps"
3773 ac_config_commands="$ac_config_commands depfiles"
3776 am_make=${MAKE-make}
3777 cat > confinc << 'END'
3779 @echo this is the am__doit target
3782 # If we don't find an include directive, just comment out the code.
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3784 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3788 # First try GNU make style include.
3789 echo "include confinc" > confmf
3790 # Ignore all kinds of additional output from `make'.
3791 case `$am_make -s -f confmf 2> /dev/null` in #(
3792 *the\ am__doit\ target*)
3798 # Now try BSD make style include.
3799 if test "$am__include" = "#"; then
3800 echo '.include
"confinc"' > confmf
3801 case `$am_make -s -f confmf 2> /dev/null` in #(
3802 *the\ am__doit\ target*)
3803 am__include=.include
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3812 $as_echo "$_am_result" >&6; }
3813 rm -f confinc confmf
3815 # Check whether --enable-dependency-tracking was given.
3816 if test "${enable_dependency_tracking+set}" = set; then :
3817 enableval=$enable_dependency_tracking;
3820 if test "x$enable_dependency_tracking" != xno; then
3821 am_depcomp="$ac_aux_dir/depcomp"
3824 if test "x$enable_dependency_tracking" != xno
; then
3834 depcc
="$CC" am_compiler_list
=
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3837 $as_echo_n "checking dependency style of $depcc... " >&6; }
3838 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3839 $as_echo_n "(cached) " >&6
3841 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3842 # We make a subdir and do the tests there. Otherwise we can end up
3843 # making bogus files that we don't know about and never remove. For
3844 # instance it was reported that on HP-UX the gcc test will end up
3845 # making a dummy file named `D' -- because `-MD' means `put the output
3848 # Copy depcomp to subdir because otherwise we won't find it if we're
3849 # using a relative directory.
3850 cp "$am_depcomp" conftest.dir
3852 # We will build objects and dependencies in a subdirectory because
3853 # it helps to detect inapplicable dependency modes. For instance
3854 # both Tru64's cc and ICC support -MD to output dependencies as a
3855 # side effect of compilation, but ICC will put the dependencies in
3856 # the current directory while Tru64 will put them in the object
3860 am_cv_CC_dependencies_compiler_type
=none
3861 if test "$am_compiler_list" = ""; then
3862 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3865 case " $depcc " in #(
3866 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
3869 for depmode
in $am_compiler_list; do
3870 # Setup a source with many dependencies, because some compilers
3871 # like to wrap large dependency lists on column 80 (with \), and
3872 # we should not choose a depcomp mode which is confused by this.
3874 # We need to recreate these files for each test, as the compiler may
3875 # overwrite some of them when testing with obscure command lines.
3876 # This happens at least with the AIX C compiler.
3878 for i
in 1 2 3 4 5 6; do
3879 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3880 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3881 # Solaris 8's {/usr,}/bin/sh.
3882 touch sub
/conftst
$i.h
3884 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3886 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3887 # mode. It turns out that the SunPro C++ compiler does not properly
3888 # handle `-M -o', and we need to detect this. Also, some Intel
3889 # versions had trouble with output in subdirs
3890 am__obj
=sub
/conftest.
${OBJEXT-o}
3891 am__minus_obj
="-o $am__obj"
3894 # This depmode causes a compiler race in universal mode.
3895 test "$am__universal" = false ||
continue
3898 # after this tag, mechanisms are not by side-effect, so they'll
3899 # only be used when explicitly requested
3900 if test "x$enable_dependency_tracking" = xyes
; then
3906 msvisualcpp | msvcmsys
)
3907 # This compiler won't grok `-c -o', but also, the minuso test has
3908 # not run yet. These depmodes are late enough in the game, and
3909 # so weak that their functioning should not be impacted.
3910 am__obj
=conftest.
${OBJEXT-o}
3915 if depmode
=$depmode \
3916 source=sub
/conftest.c object
=$am__obj \
3917 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3918 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
3919 >/dev
/null
2>conftest.err
&&
3920 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3921 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3922 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
3923 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3924 # icc doesn't choke on unknown options, it will just issue warnings
3925 # or remarks (even with -Werror). So we grep stderr for any message
3926 # that says an option was ignored or not supported.
3927 # When given -MP, icc 7.0 and 7.1 complain thusly:
3928 # icc: Command line warning: ignoring option '-M'; no argument required
3929 # The diagnosis changed in icc 8.0:
3930 # icc: Command line remark: option '-MP' not supported
3931 if (grep 'ignoring option' conftest.err ||
3932 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3933 am_cv_CC_dependencies_compiler_type
=$depmode
3942 am_cv_CC_dependencies_compiler_type
=none
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3947 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3948 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3951 test "x$enable_dependency_tracking" != xno \
3952 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3954 am__fastdepCC_FALSE
='#'
3956 am__fastdepCC_TRUE
='#'
3957 am__fastdepCC_FALSE
=
3962 ac_cpp
='$CPP $CPPFLAGS'
3963 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3964 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3965 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3967 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3968 # On Suns, sometimes $CPP names a directory.
3969 if test -n "$CPP" && test -d "$CPP"; then
3972 if test -z "$CPP"; then
3973 if test "${ac_cv_prog_CPP+set}" = set; then :
3974 $as_echo_n "(cached) " >&6
3976 # Double quotes because CPP needs to be expanded
3977 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3980 for ac_c_preproc_warn_flag
in '' yes
3982 # Use a header file that comes with gcc, so configuring glibc
3983 # with a fresh cross-compiler works.
3984 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3985 # <limits.h> exists even on freestanding compilers.
3986 # On the NeXT, cc -E runs the code through the compiler's parser,
3987 # not just through cpp. "Syntax error" is here to catch this case.
3988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3989 /* end confdefs.h. */
3991 # include <limits.h>
3993 # include <assert.h>
3997 if ac_fn_c_try_cpp
"$LINENO"; then :
4000 # Broken: fails on valid input.
4003 rm -f conftest.err conftest.
$ac_ext
4005 # OK, works on sane cases. Now check whether nonexistent headers
4006 # can be detected and how.
4007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4008 /* end confdefs.h. */
4009 #include <ac_nonexistent.h>
4011 if ac_fn_c_try_cpp
"$LINENO"; then :
4012 # Broken: success on invalid input.
4015 # Passes both tests.
4019 rm -f conftest.err conftest.
$ac_ext
4022 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4023 rm -f conftest.err conftest.
$ac_ext
4024 if $ac_preproc_ok; then :
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4037 $as_echo "$CPP" >&6; }
4039 for ac_c_preproc_warn_flag
in '' yes
4041 # Use a header file that comes with gcc, so configuring glibc
4042 # with a fresh cross-compiler works.
4043 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4044 # <limits.h> exists even on freestanding compilers.
4045 # On the NeXT, cc -E runs the code through the compiler's parser,
4046 # not just through cpp. "Syntax error" is here to catch this case.
4047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h. */
4050 # include <limits.h>
4052 # include <assert.h>
4056 if ac_fn_c_try_cpp
"$LINENO"; then :
4059 # Broken: fails on valid input.
4062 rm -f conftest.err conftest.
$ac_ext
4064 # OK, works on sane cases. Now check whether nonexistent headers
4065 # can be detected and how.
4066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4067 /* end confdefs.h. */
4068 #include <ac_nonexistent.h>
4070 if ac_fn_c_try_cpp
"$LINENO"; then :
4071 # Broken: success on invalid input.
4074 # Passes both tests.
4078 rm -f conftest.err conftest.
$ac_ext
4081 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4082 rm -f conftest.err conftest.
$ac_ext
4083 if $ac_preproc_ok; then :
4086 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4088 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4089 See \`config.log' for more details." "$LINENO" 5; }
4093 ac_cpp
='$CPP $CPPFLAGS'
4094 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4095 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4096 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4099 # Make sure we can run config.sub.
4100 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4101 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4104 $as_echo_n "checking build system type... " >&6; }
4105 if test "${ac_cv_build+set}" = set; then :
4106 $as_echo_n "(cached) " >&6
4108 ac_build_alias
=$build_alias
4109 test "x$ac_build_alias" = x
&&
4110 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4111 test "x$ac_build_alias" = x
&&
4112 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4113 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4114 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4118 $as_echo "$ac_cv_build" >&6; }
4119 case $ac_cv_build in
4121 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4124 ac_save_IFS
=$IFS; IFS
='-'
4130 # Remember, the first character of IFS is used to create $*,
4131 # except with old shells:
4134 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4138 $as_echo_n "checking host system type... " >&6; }
4139 if test "${ac_cv_host+set}" = set; then :
4140 $as_echo_n "(cached) " >&6
4142 if test "x$host_alias" = x
; then
4143 ac_cv_host
=$ac_cv_build
4145 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4146 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4151 $as_echo "$ac_cv_host" >&6; }
4154 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4157 ac_save_IFS
=$IFS; IFS
='-'
4163 # Remember, the first character of IFS is used to create $*,
4164 # except with old shells:
4167 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4173 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4174 if test "${ac_cv_path_GREP+set}" = set; then :
4175 $as_echo_n "(cached) " >&6
4177 if test -z "$GREP"; then
4178 ac_path_GREP_found
=false
4179 # Loop through the user's path and test for each of PROGNAME-LIST
4180 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4181 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4184 test -z "$as_dir" && as_dir
=.
4185 for ac_prog
in grep ggrep
; do
4186 for ac_exec_ext
in '' $ac_executable_extensions; do
4187 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4188 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4189 # Check for GNU ac_path_GREP and select it if it is found.
4190 # Check for GNU $ac_path_GREP
4191 case `"$ac_path_GREP" --version 2>&1` in
4193 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4196 $as_echo_n 0123456789 >"conftest.in"
4199 cat "conftest.in" "conftest.in" >"conftest.tmp"
4200 mv "conftest.tmp" "conftest.in"
4201 cp "conftest.in" "conftest.nl"
4202 $as_echo 'GREP' >> "conftest.nl"
4203 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4204 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4205 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4206 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4207 # Best one so far, save it but keep looking for a better one
4208 ac_cv_path_GREP
="$ac_path_GREP"
4209 ac_path_GREP_max
=$ac_count
4211 # 10*(2^10) chars as input seems more than enough
4212 test $ac_count -gt 10 && break
4214 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4217 $ac_path_GREP_found && break 3
4222 if test -z "$ac_cv_path_GREP"; then
4223 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4226 ac_cv_path_GREP
=$GREP
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4231 $as_echo "$ac_cv_path_GREP" >&6; }
4232 GREP
="$ac_cv_path_GREP"
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4236 $as_echo_n "checking for egrep... " >&6; }
4237 if test "${ac_cv_path_EGREP+set}" = set; then :
4238 $as_echo_n "(cached) " >&6
4240 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4241 then ac_cv_path_EGREP
="$GREP -E"
4243 if test -z "$EGREP"; then
4244 ac_path_EGREP_found
=false
4245 # Loop through the user's path and test for each of PROGNAME-LIST
4246 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4247 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4250 test -z "$as_dir" && as_dir
=.
4251 for ac_prog
in egrep; do
4252 for ac_exec_ext
in '' $ac_executable_extensions; do
4253 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4254 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4255 # Check for GNU ac_path_EGREP and select it if it is found.
4256 # Check for GNU $ac_path_EGREP
4257 case `"$ac_path_EGREP" --version 2>&1` in
4259 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4262 $as_echo_n 0123456789 >"conftest.in"
4265 cat "conftest.in" "conftest.in" >"conftest.tmp"
4266 mv "conftest.tmp" "conftest.in"
4267 cp "conftest.in" "conftest.nl"
4268 $as_echo 'EGREP' >> "conftest.nl"
4269 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4270 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4271 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4272 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4273 # Best one so far, save it but keep looking for a better one
4274 ac_cv_path_EGREP
="$ac_path_EGREP"
4275 ac_path_EGREP_max
=$ac_count
4277 # 10*(2^10) chars as input seems more than enough
4278 test $ac_count -gt 10 && break
4280 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4283 $ac_path_EGREP_found && break 3
4288 if test -z "$ac_cv_path_EGREP"; then
4289 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4292 ac_cv_path_EGREP
=$EGREP
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4298 $as_echo "$ac_cv_path_EGREP" >&6; }
4299 EGREP
="$ac_cv_path_EGREP"
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4303 $as_echo_n "checking for ANSI C header files... " >&6; }
4304 if test "${ac_cv_header_stdc+set}" = set; then :
4305 $as_echo_n "(cached) " >&6
4307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4308 /* end confdefs.h. */
4322 if ac_fn_c_try_compile
"$LINENO"; then :
4323 ac_cv_header_stdc
=yes
4325 ac_cv_header_stdc
=no
4327 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4329 if test $ac_cv_header_stdc = yes; then
4330 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4332 /* end confdefs.h. */
4336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4337 $EGREP "memchr" >/dev
/null
2>&1; then :
4340 ac_cv_header_stdc
=no
4346 if test $ac_cv_header_stdc = yes; then
4347 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h. */
4353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4354 $EGREP "free" >/dev
/null
2>&1; then :
4357 ac_cv_header_stdc
=no
4363 if test $ac_cv_header_stdc = yes; then
4364 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4365 if test "$cross_compiling" = yes; then :
4368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4369 /* end confdefs.h. */
4372 #if ((' ' & 0x0FF) == 0x020)
4373 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4374 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4376 # define ISLOWER(c) \
4377 (('a' <= (c) && (c) <= 'i') \
4378 || ('j' <= (c) && (c) <= 'r') \
4379 || ('s' <= (c) && (c) <= 'z'))
4380 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4383 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4388 for (i = 0; i < 256; i++)
4389 if (XOR (islower (i), ISLOWER (i))
4390 || toupper (i) != TOUPPER (i))
4395 if ac_fn_c_try_run
"$LINENO"; then :
4398 ac_cv_header_stdc
=no
4400 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4401 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4407 $as_echo "$ac_cv_header_stdc" >&6; }
4408 if test $ac_cv_header_stdc = yes; then
4410 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4414 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4415 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4416 inttypes.h stdint.h unistd.h
4418 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4419 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4421 eval as_val
=\$
$as_ac_Header
4422 if test "x$as_val" = x
""yes; then :
4423 cat >>confdefs.h
<<_ACEOF
4424 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4433 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4434 if test "${ac_cv_c_bigendian+set}" = set; then :
4435 $as_echo_n "(cached) " >&6
4437 ac_cv_c_bigendian
=unknown
4438 # See if we're dealing with a universal compiler.
4439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4440 /* end confdefs.h. */
4441 #ifndef __APPLE_CC__
4442 not a universal capable compiler
4447 if ac_fn_c_try_compile
"$LINENO"; then :
4449 # Check for potential -arch flags. It is not universal unless
4450 # there are at least two -arch flags with different values.
4453 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4454 if test -n "$ac_prev"; then
4456 i?
86 | x86_64 | ppc | ppc64
)
4457 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
4460 ac_cv_c_bigendian
=universal
4466 elif test "x$ac_word" = "x-arch"; then
4471 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4472 if test $ac_cv_c_bigendian = unknown
; then
4473 # See if sys/param.h defines the BYTE_ORDER macro.
4474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4475 /* end confdefs.h. */
4476 #include <sys/types.h>
4477 #include <sys/param.h>
4482 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4483 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4492 if ac_fn_c_try_compile
"$LINENO"; then :
4493 # It does; now see whether it defined to BIG_ENDIAN or not.
4494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4495 /* end confdefs.h. */
4496 #include <sys/types.h>
4497 #include <sys/param.h>
4502 #if BYTE_ORDER != BIG_ENDIAN
4510 if ac_fn_c_try_compile
"$LINENO"; then :
4511 ac_cv_c_bigendian
=yes
4513 ac_cv_c_bigendian
=no
4515 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4517 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4519 if test $ac_cv_c_bigendian = unknown
; then
4520 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4522 /* end confdefs.h. */
4528 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4536 if ac_fn_c_try_compile
"$LINENO"; then :
4537 # It does; now see whether it defined to _BIG_ENDIAN or not.
4538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4539 /* end confdefs.h. */
4553 if ac_fn_c_try_compile
"$LINENO"; then :
4554 ac_cv_c_bigendian
=yes
4556 ac_cv_c_bigendian
=no
4558 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4560 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4562 if test $ac_cv_c_bigendian = unknown
; then
4563 # Compile a test program.
4564 if test "$cross_compiling" = yes; then :
4565 # Try to guess by grepping values from an object file.
4566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4567 /* end confdefs.h. */
4568 short int ascii_mm[] =
4569 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4570 short int ascii_ii[] =
4571 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4572 int use_ascii (int i) {
4573 return ascii_mm[i] + ascii_ii[i];
4575 short int ebcdic_ii[] =
4576 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4577 short int ebcdic_mm[] =
4578 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4579 int use_ebcdic (int i) {
4580 return ebcdic_mm[i] + ebcdic_ii[i];
4587 return use_ascii (foo) == use_ebcdic (foo);
4592 if ac_fn_c_try_compile
"$LINENO"; then :
4593 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
4594 ac_cv_c_bigendian
=yes
4596 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
4597 if test "$ac_cv_c_bigendian" = unknown
; then
4598 ac_cv_c_bigendian
=no
4600 # finding both strings is unlikely to happen, but who knows?
4601 ac_cv_c_bigendian
=unknown
4605 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4608 /* end confdefs.h. */
4609 $ac_includes_default
4614 /* Are we little or big endian? From Harbison&Steele. */
4618 char c[sizeof (long int)];
4621 return u.c[sizeof (long int) - 1] == 1;
4627 if ac_fn_c_try_run
"$LINENO"; then :
4628 ac_cv_c_bigendian
=no
4630 ac_cv_c_bigendian
=yes
4632 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4633 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4639 $as_echo "$ac_cv_c_bigendian" >&6; }
4640 case $ac_cv_c_bigendian in #(
4642 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4648 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4652 as_fn_error
"unknown endianness
4653 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4657 $as_echo_n "checking for inline... " >&6; }
4658 if test "${ac_cv_c_inline+set}" = set; then :
4659 $as_echo_n "(cached) " >&6
4662 for ac_kw
in inline __inline__ __inline
; do
4663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4664 /* end confdefs.h. */
4667 static $ac_kw foo_t static_foo () {return 0; }
4668 $ac_kw foo_t foo () {return 0; }
4672 if ac_fn_c_try_compile
"$LINENO"; then :
4673 ac_cv_c_inline
=$ac_kw
4675 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4676 test "$ac_cv_c_inline" != no
&& break
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4681 $as_echo "$ac_cv_c_inline" >&6; }
4683 case $ac_cv_c_inline in
4686 case $ac_cv_c_inline in
4688 *) ac_val
=$ac_cv_c_inline;;
4690 cat >>confdefs.h
<<_ACEOF
4692 #define inline $ac_val
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4699 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4700 if test "${ac_cv_c_const+set}" = set; then :
4701 $as_echo_n "(cached) " >&6
4703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4704 /* end confdefs.h. */
4709 /* FIXME: Include the comments suggested by Paul. */
4711 /* Ultrix mips cc rejects this. */
4712 typedef int charset[2];
4714 /* SunOS 4.1.1 cc rejects this. */
4715 char const *const *pcpcc;
4717 /* NEC SVR4.0.2 mips cc rejects this. */
4718 struct point {int x, y;};
4719 static struct point const zero = {0,0};
4720 /* AIX XL C 1.02.0.0 rejects this.
4721 It does not let you subtract one const X* pointer from another in
4722 an arm of an if-expression whose if-part is not a constant
4724 const char *g = "string";
4725 pcpcc = &g + (g ? g-g : 0);
4726 /* HPUX 7.0 cc rejects these. */
4728 ppc = (char**) pcpcc;
4729 pcpcc = (char const *const *) ppc;
4730 { /* SCO 3.2v4 cc rejects this. */
4732 char const *s = 0 ? (char *) 0 : (char const *) 0;
4737 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4739 const int *foo = &x[0];
4742 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4743 typedef const int *iptr;
4747 { /* AIX XL C 1.02.0.0 rejects this saying
4748 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4749 struct s { int j; const int *ap[3]; };
4750 struct s *b; b->j = 5;
4752 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4756 return !cs[0] && !zero.x;
4763 if ac_fn_c_try_compile
"$LINENO"; then :
4768 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4771 $as_echo "$ac_cv_c_const" >&6; }
4772 if test $ac_cv_c_const = no
; then
4774 $as_echo "#define const /**/" >>confdefs.h
4778 # The cast to long int works around a bug in the HP C Compiler
4779 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4780 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4781 # This bug is HP SR number 8606223364.
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short int" >&5
4783 $as_echo_n "checking size of unsigned short int... " >&6; }
4784 if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then :
4785 $as_echo_n "(cached) " >&6
4787 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned short int))" "ac_cv_sizeof_unsigned_short_int" "$ac_includes_default"; then :
4790 if test "$ac_cv_type_unsigned_short_int" = yes; then
4791 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4792 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4793 { as_fn_set_status
77
4794 as_fn_error
"cannot compute sizeof (unsigned short int)
4795 See \`config.log' for more details." "$LINENO" 5; }; }
4797 ac_cv_sizeof_unsigned_short_int
=0
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short_int" >&5
4803 $as_echo "$ac_cv_sizeof_unsigned_short_int" >&6; }
4807 cat >>confdefs.h
<<_ACEOF
4808 #define SIZEOF_UNSIGNED_SHORT_INT $ac_cv_sizeof_unsigned_short_int
4812 # The cast to long int works around a bug in the HP C Compiler
4813 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4814 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4815 # This bug is HP SR number 8606223364.
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
4817 $as_echo_n "checking size of unsigned int... " >&6; }
4818 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
4819 $as_echo_n "(cached) " >&6
4821 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
4824 if test "$ac_cv_type_unsigned_int" = yes; then
4825 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4827 { as_fn_set_status
77
4828 as_fn_error
"cannot compute sizeof (unsigned int)
4829 See \`config.log' for more details." "$LINENO" 5; }; }
4831 ac_cv_sizeof_unsigned_int
=0
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
4837 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
4841 cat >>confdefs.h
<<_ACEOF
4842 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
4846 # The cast to long int works around a bug in the HP C Compiler
4847 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4848 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4849 # This bug is HP SR number 8606223364.
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long int" >&5
4851 $as_echo_n "checking size of unsigned long int... " >&6; }
4852 if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then :
4853 $as_echo_n "(cached) " >&6
4855 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long int))" "ac_cv_sizeof_unsigned_long_int" "$ac_includes_default"; then :
4858 if test "$ac_cv_type_unsigned_long_int" = yes; then
4859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4861 { as_fn_set_status
77
4862 as_fn_error
"cannot compute sizeof (unsigned long int)
4863 See \`config.log' for more details." "$LINENO" 5; }; }
4865 ac_cv_sizeof_unsigned_long_int
=0
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_int" >&5
4871 $as_echo "$ac_cv_sizeof_unsigned_long_int" >&6; }
4875 cat >>confdefs.h
<<_ACEOF
4876 #define SIZEOF_UNSIGNED_LONG_INT $ac_cv_sizeof_unsigned_long_int
4880 # The cast to long int works around a bug in the HP C Compiler
4881 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4882 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4883 # This bug is HP SR number 8606223364.
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long int" >&5
4885 $as_echo_n "checking size of unsigned long long int... " >&6; }
4886 if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then :
4887 $as_echo_n "(cached) " >&6
4889 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 :
4892 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
4893 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4894 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4895 { as_fn_set_status
77
4896 as_fn_error
"cannot compute sizeof (unsigned long long int)
4897 See \`config.log' for more details." "$LINENO" 5; }; }
4899 ac_cv_sizeof_unsigned_long_long_int
=0
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
4905 $as_echo "$ac_cv_sizeof_unsigned_long_long_int" >&6; }
4909 cat >>confdefs.h
<<_ACEOF
4910 #define SIZEOF_UNSIGNED_LONG_LONG_INT $ac_cv_sizeof_unsigned_long_long_int
4914 for ac_func
in llseek alarm gethostbyname inet_ntoa memset socket strerror strstr
4916 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4917 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4918 eval as_val
=\$
$as_ac_var
4919 if test "x$as_val" = x
""yes; then :
4920 cat >>confdefs.h
<<_ACEOF
4921 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4927 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
4928 if test "x$ac_cv_type_pid_t" = x
""yes; then :
4932 cat >>confdefs.h
<<_ACEOF
4938 for ac_header
in vfork.h
4940 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
4941 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
4942 cat >>confdefs.h
<<_ACEOF
4943 #define HAVE_VFORK_H 1
4950 for ac_func
in fork vfork
4952 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4953 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4954 eval as_val
=\$
$as_ac_var
4955 if test "x$as_val" = x
""yes; then :
4956 cat >>confdefs.h
<<_ACEOF
4957 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4963 if test "x$ac_cv_func_fork" = xyes
; then
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
4965 $as_echo_n "checking for working fork... " >&6; }
4966 if test "${ac_cv_func_fork_works+set}" = set; then :
4967 $as_echo_n "(cached) " >&6
4969 if test "$cross_compiling" = yes; then :
4970 ac_cv_func_fork_works
=cross
4972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4973 /* end confdefs.h. */
4974 $ac_includes_default
4979 /* By Ruediger Kuhlmann. */
4986 if ac_fn_c_try_run
"$LINENO"; then :
4987 ac_cv_func_fork_works
=yes
4989 ac_cv_func_fork_works
=no
4991 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4992 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
4997 $as_echo "$ac_cv_func_fork_works" >&6; }
5000 ac_cv_func_fork_works
=$ac_cv_func_fork
5002 if test "x$ac_cv_func_fork_works" = xcross
; then
5004 *-*-amigaos* |
*-*-msdosdjgpp*)
5005 # Override, as these systems have only a dummy fork() stub
5006 ac_cv_func_fork_works
=no
5009 ac_cv_func_fork_works
=yes
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5013 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5015 ac_cv_func_vfork_works
=$ac_cv_func_vfork
5016 if test "x$ac_cv_func_vfork" = xyes
; then
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5018 $as_echo_n "checking for working vfork... " >&6; }
5019 if test "${ac_cv_func_vfork_works+set}" = set; then :
5020 $as_echo_n "(cached) " >&6
5022 if test "$cross_compiling" = yes; then :
5023 ac_cv_func_vfork_works
=cross
5025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5026 /* end confdefs.h. */
5027 /* Thanks to Paul Eggert for this test. */
5028 $ac_includes_default
5029 #include <sys/wait.h>
5033 /* On some sparc systems, changes by the child to local and incoming
5034 argument registers are propagated back to the parent. The compiler
5035 is told about this with #include <vfork.h>, but some compilers
5036 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5037 static variable whose address is put into a register that is
5038 clobbered by the vfork. */
5041 sparc_address_test (int arg)
5043 sparc_address_test (arg) int arg;
5064 pid_t parent = getpid ();
5067 sparc_address_test (0);
5072 /* Here is another test for sparc vfork register problems. This
5073 test uses lots of local variables, at least as many local
5074 variables as main has allocated so far including compiler
5075 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5076 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5077 reuse the register of parent for one of the local variables,
5078 since it will think that parent can't possibly be used any more
5079 in this routine. Assigning to the local variable will thus
5080 munge parent in the parent process. */
5082 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5083 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5084 /* Convince the compiler that p..p7 are live; otherwise, it might
5085 use the same hardware register for all 8 local variables. */
5086 if (p != p1 || p != p2 || p != p3 || p != p4
5087 || p != p5 || p != p6 || p != p7)
5090 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5091 from child file descriptors. If the child closes a descriptor
5092 before it execs or exits, this munges the parent's descriptor
5093 as well. Test for this by closing stdout in the child. */
5094 _exit(close(fileno(stdout)) != 0);
5099 while (wait(&status) != child)
5102 /* Was there some problem with vforking? */
5105 /* Did the child fail? (This shouldn't happen.) */
5108 /* Did the vfork/compiler bug occur? */
5109 || parent != getpid()
5111 /* Did the file descriptor bug occur? */
5112 || fstat(fileno(stdout), &st) != 0
5117 if ac_fn_c_try_run
"$LINENO"; then :
5118 ac_cv_func_vfork_works
=yes
5120 ac_cv_func_vfork_works
=no
5122 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5123 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5128 $as_echo "$ac_cv_func_vfork_works" >&6; }
5131 if test "x$ac_cv_func_fork_works" = xcross
; then
5132 ac_cv_func_vfork_works
=$ac_cv_func_vfork
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5134 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5137 if test "x$ac_cv_func_vfork_works" = xyes
; then
5139 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
5143 $as_echo "#define vfork fork" >>confdefs.h
5146 if test "x$ac_cv_func_fork_works" = xyes
; then
5148 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
5152 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
5153 $as_echo_n "(cached) " >&6
5155 ac_cv_func_setvbuf_reversed
=no
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether client should be built" >&5
5160 $as_echo_n "checking whether client should be built... " >&6; }
5162 linux
*) sbin_PROGRAMS
="$sbin_PROGRAMS nbd-client"
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5164 $as_echo "yes" >&6; }
5166 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5167 $as_echo "no" >&6; } ;;
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find a working nbd.h" >&5
5170 $as_echo_n "checking where to find a working nbd.h... " >&6; }
5171 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5172 /* end confdefs.h. */
5179 #define UNUSED __attribute__((__unused__))
5187 int UNUSED foo=NBD_CMD_DISC
5192 if ac_fn_c_try_compile
"$LINENO"; then :
5194 $as_echo "#define NBD_H_LOCAL 1" >>confdefs.h
5198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h. */
5204 #include <linux/nbd.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_LINUX 1" >>confdefs.h
5223 NBD_H
='<linux/nbd.h>'
5225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5226 /* end confdefs.h. */
5227 #include <linux/nbd.h>
5229 #define UNUSED __attribute__((__unused__))
5237 int UNUSED foo=NBD_CMD_DISC
5242 if ac_fn_c_try_compile
"$LINENO"; then :
5244 $as_echo "#define NBD_H_LINUX 1" >>confdefs.h
5246 NBD_H
='<linux/nbd.h>'
5248 as_fn_error
"Could not find an nbd.h from 2.6 or above." "$LINENO" 5
5251 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5254 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5257 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5260 if test "$NBD_H" = '<linux/nbd.h>'
5262 { $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
5263 $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;}
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NBD_H" >&5
5267 $as_echo "$NBD_H" >&6; }
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind" >&5
5269 $as_echo_n "checking for library containing bind... " >&6; }
5270 if test "${ac_cv_search_bind+set}" = set; then :
5271 $as_echo_n "(cached) " >&6
5273 ac_func_search_save_LIBS
=$LIBS
5274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5275 /* end confdefs.h. */
5277 /* Override any GCC internal prototype to avoid an error.
5278 Use char because int might match the return type of a GCC
5279 builtin and then its argument prototype would still apply. */
5292 for ac_lib
in '' socket
; do
5293 if test -z "$ac_lib"; then
5294 ac_res
="none required"
5297 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5299 if ac_fn_c_try_link
"$LINENO"; then :
5300 ac_cv_search_bind
=$ac_res
5302 rm -f core conftest.err conftest.
$ac_objext \
5304 if test "${ac_cv_search_bind+set}" = set; then :
5308 if test "${ac_cv_search_bind+set}" = set; then :
5311 ac_cv_search_bind
=no
5314 LIBS
=$ac_func_search_save_LIBS
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind" >&5
5317 $as_echo "$ac_cv_search_bind" >&6; }
5318 ac_res
=$ac_cv_search_bind
5319 if test "$ac_res" != no
; then :
5320 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5323 as_fn_error
"Could not find an implementation of the bind() system call" "$LINENO" 5
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
5327 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
5328 if test "${ac_cv_search_inet_ntoa+set}" = set; then :
5329 $as_echo_n "(cached) " >&6
5331 ac_func_search_save_LIBS
=$LIBS
5332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5333 /* end confdefs.h. */
5335 /* Override any GCC internal prototype to avoid an error.
5336 Use char because int might match the return type of a GCC
5337 builtin and then its argument prototype would still apply. */
5345 return inet_ntoa ();
5350 for ac_lib
in '' nsl
; do
5351 if test -z "$ac_lib"; then
5352 ac_res
="none required"
5355 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5357 if ac_fn_c_try_link
"$LINENO"; then :
5358 ac_cv_search_inet_ntoa
=$ac_res
5360 rm -f core conftest.err conftest.
$ac_objext \
5362 if test "${ac_cv_search_inet_ntoa+set}" = set; then :
5366 if test "${ac_cv_search_inet_ntoa+set}" = set; then :
5369 ac_cv_search_inet_ntoa
=no
5372 LIBS
=$ac_func_search_save_LIBS
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
5375 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
5376 ac_res
=$ac_cv_search_inet_ntoa
5377 if test "$ac_res" != no
; then :
5378 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5381 as_fn_error
"Could not find an implementation of the inet_ntoa() system call" "$LINENO" 5
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing daemon" >&5
5385 $as_echo_n "checking for library containing daemon... " >&6; }
5386 if test "${ac_cv_search_daemon+set}" = set; then :
5387 $as_echo_n "(cached) " >&6
5389 ac_func_search_save_LIBS
=$LIBS
5390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5391 /* end confdefs.h. */
5393 /* Override any GCC internal prototype to avoid an error.
5394 Use char because int might match the return type of a GCC
5395 builtin and then its argument prototype would still apply. */
5408 for ac_lib
in '' resolv
; do
5409 if test -z "$ac_lib"; then
5410 ac_res
="none required"
5413 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5415 if ac_fn_c_try_link
"$LINENO"; then :
5416 ac_cv_search_daemon
=$ac_res
5418 rm -f core conftest.err conftest.
$ac_objext \
5420 if test "${ac_cv_search_daemon+set}" = set; then :
5424 if test "${ac_cv_search_daemon+set}" = set; then :
5427 ac_cv_search_daemon
=no
5430 LIBS
=$ac_func_search_save_LIBS
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_daemon" >&5
5433 $as_echo "$ac_cv_search_daemon" >&6; }
5434 ac_res
=$ac_cv_search_daemon
5435 if test "$ac_res" != no
; then :
5436 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5439 as_fn_error
"Could not find an implementation of the daemon() system call" "$LINENO" 5
5442 for ac_header
in sys
/mount.h
5444 ac_fn_c_check_header_compile
"$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
5447 if test "x$ac_cv_header_sys_mount_h" = x
""yes; then :
5448 cat >>confdefs.h
<<_ACEOF
5449 #define HAVE_SYS_MOUNT_H 1
5456 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
5458 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5459 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5460 eval as_val
=\$
$as_ac_Header
5461 if test "x$as_val" = x
""yes; then :
5462 cat >>confdefs.h
<<_ACEOF
5463 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5470 # Check whether --enable-glibtest was given.
5471 if test "${enable_glibtest+set}" = set; then :
5472 enableval
=$enable_glibtest;
5478 pkg_config_args
=glib-2.0
5483 pkg_config_args
="$pkg_config_args gmodule-2.0"
5486 pkg_config_args
="$pkg_config_args gmodule-no-export-2.0"
5489 pkg_config_args
="$pkg_config_args gobject-2.0"
5492 pkg_config_args
="$pkg_config_args gthread-2.0"
5495 pkg_config_args
="$pkg_config_args $module-2.0"
5502 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5503 if test -n "$ac_tool_prefix"; then
5504 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5505 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5507 $as_echo_n "checking for $ac_word... " >&6; }
5508 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5509 $as_echo_n "(cached) " >&6
5513 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
5516 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5520 test -z "$as_dir" && as_dir
=.
5521 for ac_exec_ext
in '' $ac_executable_extensions; do
5522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5523 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5534 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
5535 if test -n "$PKG_CONFIG"; then
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5537 $as_echo "$PKG_CONFIG" >&6; }
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5540 $as_echo "no" >&6; }
5545 if test -z "$ac_cv_path_PKG_CONFIG"; then
5546 ac_pt_PKG_CONFIG
=$PKG_CONFIG
5547 # Extract the first word of "pkg-config", so it can be a program name with args.
5548 set dummy pkg-config
; ac_word
=$2
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5550 $as_echo_n "checking for $ac_word... " >&6; }
5551 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
5552 $as_echo_n "(cached) " >&6
5554 case $ac_pt_PKG_CONFIG in
5556 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5559 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5563 test -z "$as_dir" && as_dir
=.
5564 for ac_exec_ext
in '' $ac_executable_extensions; do
5565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5566 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5577 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
5578 if test -n "$ac_pt_PKG_CONFIG"; then
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5580 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5583 $as_echo "no" >&6; }
5586 if test "x$ac_pt_PKG_CONFIG" = x
; then
5589 case $cross_compiling:$ac_tool_warned in
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5592 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5593 ac_tool_warned
=yes ;;
5595 PKG_CONFIG
=$ac_pt_PKG_CONFIG
5598 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
5602 if test -n "$PKG_CONFIG"; then
5603 _pkg_min_version
=0.16
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5605 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5606 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5608 $as_echo "yes" >&6; }
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5611 $as_echo "no" >&6; }
5619 if test "x$PKG_CONFIG" = x
; then
5624 min_glib_version
=2.6.0
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
5626 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
5628 if test x
$PKG_CONFIG != xno
; then
5629 ## don't try to run the test against uninstalled libtool libs
5630 if $PKG_CONFIG --uninstalled $pkg_config_args; then
5631 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
5635 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
5642 if test x
"$no_glib" = x
; then
5643 GLIB_GENMARSHAL
=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
5644 GOBJECT_QUERY
=`$PKG_CONFIG --variable=gobject_query glib-2.0`
5645 GLIB_MKENUMS
=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
5647 GLIB_CFLAGS
=`$PKG_CONFIG --cflags $pkg_config_args`
5648 GLIB_LIBS
=`$PKG_CONFIG --libs $pkg_config_args`
5649 glib_config_major_version
=`$PKG_CONFIG --modversion glib-2.0 | \
5650 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
5651 glib_config_minor_version
=`$PKG_CONFIG --modversion glib-2.0 | \
5652 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
5653 glib_config_micro_version
=`$PKG_CONFIG --modversion glib-2.0 | \
5654 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
5655 if test "x$enable_glibtest" = "xyes" ; then
5656 ac_save_CFLAGS
="$CFLAGS"
5657 ac_save_LIBS
="$LIBS"
5658 CFLAGS
="$CFLAGS $GLIB_CFLAGS"
5659 LIBS
="$GLIB_LIBS $LIBS"
5661 if test "$cross_compiling" = yes; then :
5662 echo $ac_n "cross compiling; assumed OK... $ac_c"
5664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5665 /* end confdefs.h. */
5674 int major, minor, micro;
5678 ignored = system ("touch conf.glibtest");
5680 /* HP/UX 9 (%@#!) writes to sscanf strings */
5681 tmp_version = g_strdup("$min_glib_version");
5682 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
5683 printf("%s, bad version string\n", "$min_glib_version");
5687 if ((glib_major_version != $glib_config_major_version) ||
5688 (glib_minor_version != $glib_config_minor_version) ||
5689 (glib_micro_version != $glib_config_micro_version))
5691 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
5692 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
5693 glib_major_version, glib_minor_version, glib_micro_version);
5694 printf ("*** was found! If pkg-config was correct, then it is best\n");
5695 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
5696 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
5697 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
5698 printf("*** required on your system.\n");
5699 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
5700 printf("*** to point to the correct configuration files\n");
5702 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
5703 (glib_minor_version != GLIB_MINOR_VERSION) ||
5704 (glib_micro_version != GLIB_MICRO_VERSION))
5706 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
5707 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
5708 printf("*** library (version %d.%d.%d)\n",
5709 glib_major_version, glib_minor_version, glib_micro_version);
5713 if ((glib_major_version > major) ||
5714 ((glib_major_version == major) && (glib_minor_version > minor)) ||
5715 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
5721 printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
5722 glib_major_version, glib_minor_version, glib_micro_version);
5723 printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
5724 major, minor, micro);
5725 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
5727 printf("*** If you have already installed a sufficiently new version, this error\n");
5728 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
5729 printf("*** being found. The easiest way to fix this is to remove the old version\n");
5730 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
5731 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
5732 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
5733 printf("*** so that the correct libraries are found at run-time))\n");
5740 if ac_fn_c_try_run
"$LINENO"; then :
5745 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5746 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5749 CFLAGS
="$ac_save_CFLAGS"
5750 LIBS
="$ac_save_LIBS"
5753 if test "x$no_glib" = x
; then
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
5755 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5759 $as_echo "no" >&6; }
5760 if test "$PKG_CONFIG" = "no" ; then
5761 echo "*** A new enough version of pkg-config was not found."
5762 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
5764 if test -f conf.glibtest
; then
5767 echo "*** Could not run GLIB test program, checking why..."
5768 ac_save_CFLAGS
="$CFLAGS"
5769 ac_save_LIBS
="$LIBS"
5770 CFLAGS
="$CFLAGS $GLIB_CFLAGS"
5771 LIBS
="$LIBS $GLIB_LIBS"
5772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5773 /* end confdefs.h. */
5781 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
5786 if ac_fn_c_try_link
"$LINENO"; then :
5787 echo "*** The test program compiled, but did not run. This usually means"
5788 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
5789 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
5790 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
5791 echo "*** to the installed location Also, make sure you have run ldconfig if that"
5792 echo "*** is required on your system"
5794 echo "*** If you have an old version installed, it is best to remove it, although"
5795 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
5797 echo "*** The test program failed to compile or link. See the file config.log for the"
5798 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
5800 rm -f core conftest.err conftest.
$ac_objext \
5801 conftest
$ac_exeext conftest.
$ac_ext
5802 CFLAGS
="$ac_save_CFLAGS"
5803 LIBS
="$ac_save_LIBS"
5811 as_fn_error
"Missing glib" "$LINENO" 5
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
5821 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
5822 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
5823 $as_echo_n "(cached) " >&6
5825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5826 /* end confdefs.h. */
5827 #include <sys/types.h>
5828 #include <sys/wait.h>
5830 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5833 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5841 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5846 if ac_fn_c_try_compile
"$LINENO"; then :
5847 ac_cv_header_sys_wait_h
=yes
5849 ac_cv_header_sys_wait_h
=no
5851 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
5854 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
5855 if test $ac_cv_header_sys_wait_h = yes; then
5857 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
5861 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5862 if test "x$ac_cv_type_off_t" = x
""yes; then :
5866 cat >>confdefs.h
<<_ACEOF
5867 #define off_t long int
5872 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5873 if test "x$ac_cv_type_pid_t" = x
""yes; then :
5877 cat >>confdefs.h
<<_ACEOF
5884 nbd_server_CPPFLAGS
=$nbd_server_CPPFLAGS" -DSYSCONFDIR='\"$sysconfdir\"'"
5886 ac_config_headers
="$ac_config_headers config.h"
5888 ac_config_files
="$ac_config_files Makefile Doxyfile nbd-server.1 nbd-server.5 nbd-client.8"
5890 cat >confcache
<<\_ACEOF
5891 # This file is a shell script that caches the results of configure
5892 # tests run on this system so they can be shared between configure
5893 # scripts and configure runs, see configure's option --config-cache.
5894 # It is not useful on other systems. If it contains results you don't
5895 # want to keep, you may remove or edit it.
5897 # config.status only pays attention to the cache file if you give it
5898 # the --recheck option to rerun configure.
5900 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5901 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5906 # The following way of writing the cache mishandles newlines in values,
5907 # but we know of no workaround that is simple, portable, and efficient.
5908 # So, we kill variables containing newlines.
5909 # Ultrix sh set writes to stderr and can't be redirected directly,
5910 # and sets the high bit in the cache file unless we assign to the vars.
5912 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5913 eval ac_val
=\$
$ac_var
5917 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5918 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5921 _ | IFS | as_nl
) ;; #(
5922 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
5923 *) { eval $ac_var=; unset $ac_var;} ;;
5929 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5930 *${as_nl}ac_space
=\
*)
5931 # `set' does not quote correctly, so add quotes: double-quote
5932 # substitution turns \\\\ into \\, and sed turns \\ into \.
5935 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5938 # `set' quotes correctly as required by POSIX, so do not add quotes.
5939 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5948 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5950 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5952 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
5953 if test -w "$cache_file"; then
5954 test "x$cache_file" != "x/dev/null" &&
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5956 $as_echo "$as_me: updating cache $cache_file" >&6;}
5957 cat confcache
>$cache_file
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5960 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5965 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5966 # Let make expand exec_prefix.
5967 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5969 DEFS
=-DHAVE_CONFIG_H
5973 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
5974 # 1. Remove the extension, and $U if already installed.
5975 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
5976 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
5977 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5978 # will be set to the directory where LIBOBJS objects are built.
5979 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5980 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
5984 LTLIBOBJS
=$ac_ltlibobjs
5987 if test -n "$EXEEXT"; then
5989 am__EXEEXT_FALSE
='#'
5995 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5996 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
5997 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5999 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6000 as_fn_error
"conditional \"AMDEP\" was never defined.
6001 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6003 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6004 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
6005 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6009 : ${CONFIG_STATUS=./config.status}
6011 ac_clean_files_save
=$ac_clean_files
6012 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6014 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6016 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6018 # Generated by $as_me.
6019 # Run this file to recreate the current configuration.
6020 # Compiler output produced by configure, useful for debugging
6021 # configure, is in config.log if it exists.
6027 SHELL=\${CONFIG_SHELL-$SHELL}
6030 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
6031 ## -------------------- ##
6032 ## M4sh Initialization. ##
6033 ## -------------------- ##
6035 # Be more Bourne compatible
6036 DUALCASE
=1; export DUALCASE
# for MKS sh
6037 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
6040 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6041 # is contrary to our usage. Disable this feature.
6042 alias -g '${1+"$@"}'='"$@"'
6043 setopt NO_GLOB_SUBST
6045 case `(set -o) 2>/dev/null` in #(
6057 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6058 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6059 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6060 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6061 # Prefer a ksh shell builtin over an external printf program on Solaris,
6062 # but without wasting forks for bash or zsh.
6063 if test -z "$BASH_VERSION$ZSH_VERSION" \
6064 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6065 as_echo='print
-r --'
6066 as_echo_n='print
-rn --'
6067 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6068 as_echo='printf %s
\n'
6069 as_echo_n='printf %s
'
6071 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6072 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
6073 as_echo_n='/usr
/ucb
/echo -n'
6075 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6076 as_echo_n_body='eval
6080 expr "X$arg" : "X\\(.*\\)$as_nl";
6081 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6083 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
6085 export as_echo_n_body
6086 as_echo_n='sh
-c $as_echo_n_body as_echo
'
6089 as_echo='sh
-c $as_echo_body as_echo
'
6092 # The user is always right.
6093 if test "${PATH_SEPARATOR+set}" != set; then
6095 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6096 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6103 # We need space, tab and new line, in precisely that order. Quoting is
6104 # there to prevent editors from complaining about space-tab.
6105 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6106 # splitting by setting IFS to empty value.)
6109 # Find who we are. Look in the path if we contain no directory separator.
6111 *[\\/]* ) as_myself=$0 ;;
6112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6116 test -z "$as_dir" && as_dir=.
6117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6123 # We did not find ourselves, most probably we were run as `sh COMMAND'
6124 # in which case we are not to be found in the path.
6125 if test "x$as_myself" = x
; then
6128 if test ! -f "$as_myself"; then
6129 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6133 # Unset variables that we do not need and which cause bugs (e.g. in
6134 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6135 # suppresses any "Segmentation fault" message there. '((' could
6136 # trigger a bug in pdksh 5.2.14.
6137 for as_var
in BASH_ENV ENV MAIL MAILPATH
6138 do eval test x\
${$as_var+set} = xset \
6139 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
6152 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
6155 # as_fn_error ERROR [LINENO LOG_FD]
6156 # ---------------------------------
6157 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6158 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6159 # script with status $?, using 1 if that was 0.
6162 as_status
=$?
; test $as_status -eq 0 && as_status
=1
6164 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
6165 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6167 $as_echo "$as_me: error: $1" >&2
6168 as_fn_exit
$as_status
6172 # as_fn_set_status STATUS
6173 # -----------------------
6174 # Set $? to STATUS, without forking.
6178 } # as_fn_set_status
6182 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6192 # Portably unset VAR.
6195 { eval $1=; unset $1;}
6197 as_unset
=as_fn_unset
6198 # as_fn_append VAR VALUE
6199 # ----------------------
6200 # Append the text in VALUE to the end of the definition contained in VAR. Take
6201 # advantage of any shell optimizations that allow amortized linear growth over
6202 # repeated appends, instead of the typical quadratic growth present in naive
6204 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
6205 eval 'as_fn_append ()
6216 # as_fn_arith ARG...
6217 # ------------------
6218 # Perform arithmetic evaluation on the ARGs, and store the result in the
6219 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6220 # must be portable across $(()) and expr.
6221 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
6222 eval 'as_fn_arith ()
6229 as_val
=`expr "$@" || test $? -eq 1`
6234 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
6235 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
6241 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6242 as_basename
=basename
6247 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
6253 as_me
=`$as_basename -- "$0" ||
6254 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6255 X"$0" : 'X\(//\)$' \| \
6256 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6258 sed '/^.*\/\([^/][^/]*\)\/*$/{
6272 # Avoid depending upon Character Ranges.
6273 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
6274 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6275 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
6276 as_cr_digits
='0123456789'
6277 as_cr_alnum
=$as_cr_Letters$as_cr_digits
6279 ECHO_C
= ECHO_N
= ECHO_T
=
6280 case `echo -n x` in #(((((
6282 case `echo 'xy\c'` in
6283 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
6285 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
6292 rm -f conf$$ conf$$.exe conf$$.
file
6293 if test -d conf$$.dir
; then
6294 rm -f conf$$.dir
/conf$$.
file
6297 mkdir conf$$.dir
2>/dev
/null
6299 if (echo >conf$$.
file) 2>/dev
/null
; then
6300 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
6302 # ... but there are two gotchas:
6303 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6304 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6305 # In both cases, we have to default to `cp -p'.
6306 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
6308 elif ln conf$$.
file conf$$
2>/dev
/null
; then
6316 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
6317 rmdir conf$$.dir
2>/dev
/null
6322 # Create "$as_dir" as a directory, including parents if necessary.
6327 -*) as_dir
=.
/$as_dir;;
6329 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
6333 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6334 *) as_qdir
=$as_dir;;
6336 as_dirs
="'$as_qdir' $as_dirs"
6337 as_dir
=`$as_dirname -- "$as_dir" ||
6338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6339 X"$as_dir" : 'X\(//\)[^/]' \| \
6340 X"$as_dir" : 'X\(//\)$' \| \
6341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6342 $as_echo X"$as_dir" |
6343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6360 test -d "$as_dir" && break
6362 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
6363 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
6367 if mkdir
-p .
2>/dev
/null
; then
6368 as_mkdir_p
='mkdir -p "$as_dir"'
6370 test -d .
/-p && rmdir .
/-p
6374 if test -x / >/dev
/null
2>&1; then
6377 if ls -dL / >/dev
/null
2>&1; then
6384 if test -d "$1"; then
6390 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6391 ???[sx]*):;;*)false;;esac;fi
6395 as_executable_p
=$as_test_x
6397 # Sed expression to map a string onto a valid CPP name.
6398 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6400 # Sed expression to map a string onto a valid variable name.
6401 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6405 ## ----------------------------------- ##
6406 ## Main body of $CONFIG_STATUS script. ##
6407 ## ----------------------------------- ##
6409 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
6411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6412 # Save the log message, to keep $0 and so on meaningful, and to
6413 # report actual input values of CONFIG_FILES etc. instead of their
6414 # values after options handling.
6416 This file was extended by nbd $as_me 2.9.14, which was
6417 generated by GNU Autoconf 2.64. Invocation command line was
6419 CONFIG_FILES = $CONFIG_FILES
6420 CONFIG_HEADERS = $CONFIG_HEADERS
6421 CONFIG_LINKS = $CONFIG_LINKS
6422 CONFIG_COMMANDS = $CONFIG_COMMANDS
6425 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6430 case $ac_config_files in *"
6431 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
6434 case $ac_config_headers in *"
6435 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
6439 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6440 # Files that config.status was made for.
6441 config_files="$ac_config_files"
6442 config_headers="$ac_config_headers"
6443 config_commands="$ac_config_commands"
6447 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6449 \`$as_me' instantiates files and other configuration actions
6450 from templates according to the current configuration. Unless the files
6451 and actions are specified as TAGs, all are instantiated by default.
6453 Usage: $0 [OPTION]... [TAG]...
6455 -h, --help print this help, then exit
6456 -V, --version print version number and configuration settings, then exit
6457 -q, --quiet, --silent
6458 do not print progress messages
6459 -d, --debug don't remove temporary files
6460 --recheck update $as_me by reconfiguring in the same conditions
6461 --file=FILE[:TEMPLATE]
6462 instantiate the configuration file FILE
6463 --header=FILE[:TEMPLATE]
6464 instantiate the configuration header FILE
6466 Configuration files:
6469 Configuration headers:
6472 Configuration commands:
6475 Report bugs to <wouter@debian.org>."
6478 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6480 nbd config.status 2.9.14
6481 configured by $0, generated by GNU Autoconf 2.64,
6482 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6484 Copyright (C) 2009 Free Software Foundation, Inc.
6485 This config.status script is free software; the Free Software Foundation
6486 gives unlimited permission to copy, distribute and modify it."
6493 test -n "\$AWK" || AWK=awk
6496 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6497 # The default lists apply if the user does not specify any file.
6503 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
6504 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
6515 # Handling of the options.
6516 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
6518 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
6519 $as_echo "$ac_cs_version"; exit ;;
6520 --debug |
--debu |
--deb |
--de |
--d |
-d )
6522 --file |
--fil |
--fi |
--f )
6525 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6527 as_fn_append CONFIG_FILES
" '$ac_optarg'"
6528 ac_need_defaults
=false
;;
6529 --header |
--heade |
--head |
--hea )
6532 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6534 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
6535 ac_need_defaults
=false
;;
6537 # Conflict between --help and --header
6538 as_fn_error
"ambiguous option: \`$1'
6539 Try \`$0 --help' for more information.";;
6540 --help |
--hel |
-h )
6541 $as_echo "$ac_cs_usage"; exit ;;
6542 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
6543 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
6547 -*) as_fn_error
"unrecognized option: \`$1'
6548 Try \`$0 --help' for more information." ;;
6550 *) as_fn_append ac_config_targets
" $1"
6551 ac_need_defaults
=false
;;
6557 ac_configure_extra_args
=
6559 if $ac_cs_silent; then
6561 ac_configure_extra_args
="$ac_configure_extra_args --silent"
6565 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6566 if \$ac_cs_recheck; then
6567 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6569 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6570 CONFIG_SHELL='$SHELL'
6576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6580 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6581 ## Running $as_me. ##
6587 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6591 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6595 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6597 # Handling of arguments.
6598 for ac_config_target
in $ac_config_targets
6600 case $ac_config_target in
6601 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
6602 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
6603 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
6604 "Doxyfile") CONFIG_FILES
="$CONFIG_FILES Doxyfile" ;;
6605 "nbd-server.1") CONFIG_FILES
="$CONFIG_FILES nbd-server.1" ;;
6606 "nbd-server.5") CONFIG_FILES
="$CONFIG_FILES nbd-server.5" ;;
6607 "nbd-client.8") CONFIG_FILES
="$CONFIG_FILES nbd-client.8" ;;
6609 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6614 # If the user did not use the arguments to specify the items to instantiate,
6615 # then the envvar interface is used. Set only those that are not.
6616 # We use the long form for the default assignment because of an extremely
6617 # bizarre bug on SunOS 4.1.3.
6618 if $ac_need_defaults; then
6619 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
6620 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
6621 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
6624 # Have a temporary directory for convenience. Make it in the build tree
6625 # simply because there is no reason against having it here, and in addition,
6626 # creating and moving files from /tmp can sometimes cause problems.
6627 # Hook for its removal unless debugging.
6628 # Note that there is a small window in which the directory will not be cleaned:
6629 # after its creation but before its name has been assigned to `$tmp'.
6633 trap 'exit_status=$?
6634 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6636 trap 'as_fn_exit 1' 1 2 13 15
6638 # Create a (secure) tmp directory for tmp files.
6641 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6642 test -n "$tmp" && test -d "$tmp"
6645 tmp
=.
/conf$$
-$RANDOM
6646 (umask 077 && mkdir
"$tmp")
6647 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
6649 # Set up the scripts for CONFIG_FILES section.
6650 # No need to generate them if there are no CONFIG_FILES.
6651 # This happens for instance with `./config.status config.h'.
6652 if test -n "$CONFIG_FILES"; then
6655 ac_cr
=`echo X | tr X '\015'`
6656 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6657 # But we know of no other shell where ac_cr would be empty at this
6658 # point, so we can use a bashism as a fallback.
6659 if test "x$ac_cr" = x
; then
6660 eval ac_cr
=\$
\'\\r
\'
6662 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6663 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6669 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6674 echo "cat >conf$$subs.awk <<_ACEOF" &&
6675 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6678 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
6679 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6681 for ac_last_try in false false false false false :; do
6682 . ./conf$$subs.sh ||
6683 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
6685 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
6686 if test $ac_delim_n = $ac_delim_num; then
6688 elif $ac_last_try; then
6689 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
6691 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
6696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6697 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
6701 s/^/S["/; s
/!.
*/"]=/
6711 s/\(.\{148\}\).*/\1/
6713 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
6718 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
6725 s/\(.\{148\}\).*/\1/
6727 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
6731 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
6736 ' <conf$$subs.awk | sed '
6741 ' >>$CONFIG_STATUS || ac_write_fail=1
6742 rm -f conf$$subs.awk
6743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6745 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
6746 for (key in S) S_is_set[key] = 1
6752 nfields = split(line, field, "@
")
6754 len = length(field[1])
6755 for (i = 2; i < nfields; i++) {
6757 keylen = length(key)
6758 if (S_is_set[key]) {
6760 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6761 len += length(value) + length(field[++i])
6772 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6773 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6774 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
6777 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
6778 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
6781 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6782 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
6783 # trailing colons and then remove the whole line if VPATH becomes empty
6784 # (actually we leave an empty line to preserve line numbers).
6785 if test "x
$srcdir" = x.; then
6786 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6790 s/^\([^=]*=[ ]*\):*/\1/
6796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6797 fi # test -n "$CONFIG_FILES"
6799 # Set up the scripts for CONFIG_HEADERS section.
6800 # No need to generate them if there are no CONFIG_HEADERS.
6801 # This happens for instance with `./config.status Makefile'.
6802 if test -n "$CONFIG_HEADERS"; then
6803 cat >"$tmp/defines.
awk" <<\_ACAWK ||
6807 # Transform confdefs.h into an awk script `defines.awk', embedded as
6808 # here-document in config.status, that substitutes the proper values into
6809 # config.h.in to produce config.h.
6811 # Create a delimiter string that does not exist in confdefs.h, to ease
6812 # handling of long lines.
6814 for ac_last_try in false false :; do
6815 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
6816 if test -z "$ac_t"; then
6818 elif $ac_last_try; then
6819 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
6821 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
6825 # For the awk script, D is an array of macro values keyed by name,
6826 # likewise P contains macro parameters if any. Preserve backslash
6827 # newline sequences.
6829 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6831 s/.\{148\}/&'"$ac_delim"'/g
6834 s/^[ ]*#[ ]*define[ ][ ]*/ /
6841 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
6843 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
6847 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
6848 D["\
1"]=" \
3\\\\\\n
"\\/p
6850 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
6855 s/.\{148\}/&'"$ac_delim"'/g
6860 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
6863 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
6865 ' <confdefs.h | sed '
6866 s/'"$ac_delim"'/"\\\
6867 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6870 for (key in D) D_is_set[key] = 1
6873 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6875 split(line, arg, " ")
6876 if (arg[1] == "#") {
6880 defundef
= substr
(arg
[1], 2)
6883 split(mac1
, mac2
, "(") #)
6885 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
6886 if (D_is_set
[macro
]) {
6887 # Preserve the white space surrounding the "#".
6888 print prefix
"define", macro P
[macro
] D
[macro
]
6891 # Replace #undef with comments. This is necessary, for example,
6892 # in the case of _POSIX_SOURCE, which is predefined and required
6893 # on some systems where configure will not decide to define it.
6894 if (defundef
== "undef") {
6895 print
"/*", prefix defundef
, macro
, "*/"
6903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6904 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
6905 fi # test -n "$CONFIG_HEADERS"
6908 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6913 :[FHLC
]) ac_mode
=$ac_tag; continue;;
6915 case $ac_mode$ac_tag in
6917 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
6918 :[FH
]-) ac_tag
=-:-;;
6919 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
6936 -) ac_f
="$tmp/stdin";;
6937 *) # Look for the file first in the build tree, then in the source tree
6938 # (if the path is not absolute). The absolute path cannot be DOS-style,
6939 # because $ac_f cannot contain `:'.
6943 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
6945 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
6947 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6948 as_fn_append ac_file_inputs
" '$ac_f'"
6951 # Let's still pretend it is `configure' which instantiates (i.e., don't
6952 # use $as_me), people would be surprised to read:
6953 # /* config.h. Generated by config.status. */
6954 configure_input
='Generated from '`
6955 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6957 if test x
"$ac_file" != x-
; then
6958 configure_input
="$ac_file. $configure_input"
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6960 $as_echo "$as_me: creating $ac_file" >&6;}
6962 # Neutralize special characters interpreted by sed in replacement strings.
6963 case $configure_input in #(
6964 *\
&* |
*\|
* |
*\\* )
6965 ac_sed_conf_input
=`$as_echo "$configure_input" |
6966 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6967 *) ac_sed_conf_input
=$configure_input;;
6971 *:-:* |
*:-) cat >"$tmp/stdin" \
6972 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
6977 ac_dir
=`$as_dirname -- "$ac_file" ||
6978 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6979 X"$ac_file" : 'X\(//\)[^/]' \| \
6980 X"$ac_file" : 'X\(//\)$' \| \
6981 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6982 $as_echo X"$ac_file" |
6983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7000 as_dir
="$ac_dir"; as_fn_mkdir_p
7004 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
7006 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7007 # A ".." for each directory in $ac_dir_suffix.
7008 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7009 case $ac_top_builddir_sub in
7010 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
7011 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
7014 ac_abs_top_builddir
=$ac_pwd
7015 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
7016 # for backward compatibility:
7017 ac_top_builddir
=$ac_top_build_prefix
7020 .
) # We are building in place.
7022 ac_top_srcdir
=$ac_top_builddir_sub
7023 ac_abs_top_srcdir
=$ac_pwd ;;
7024 [\\/]* | ?
:[\\/]* ) # Absolute name.
7025 ac_srcdir
=$srcdir$ac_dir_suffix;
7026 ac_top_srcdir
=$srcdir
7027 ac_abs_top_srcdir
=$srcdir ;;
7029 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
7030 ac_top_srcdir
=$ac_top_build_prefix$srcdir
7031 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
7033 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
7043 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
7044 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
7048 [\\/$
]* | ?
:[\\/]* ) ;;
7049 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
7053 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7054 # If the template does not know about datarootdir, expand it.
7055 # FIXME: This hack should be removed a few years after 2.60.
7056 ac_datarootdir_hack
=; ac_datarootdir_seen
=
7067 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7068 *datarootdir
*) ac_datarootdir_seen
=yes;;
7069 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7071 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7073 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7074 ac_datarootdir_hack='
7075 s&@datadir@&$datadir&g
7076 s&@docdir@&$docdir&g
7077 s&@infodir@&$infodir&g
7078 s&@localedir@&$localedir&g
7079 s&@mandir@&$mandir&g
7080 s&\\\${datarootdir}&$datarootdir&g' ;;
7084 # Neutralize VPATH when `$srcdir' = `.'.
7085 # Shell code in configure.ac might set extrasub.
7086 # FIXME: do we really want to maintain this feature?
7087 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7088 ac_sed_extra="$ac_vpsub
7091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7093 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
7094 s|@configure_input@|
$ac_sed_conf_input|
;t t
7095 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
7096 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
7097 s
&@srcdir@
&$ac_srcdir&;t t
7098 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
7099 s
&@top_srcdir@
&$ac_top_srcdir&;t t
7100 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
7101 s
&@builddir@
&$ac_builddir&;t t
7102 s
&@abs_builddir@
&$ac_abs_builddir&;t t
7103 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
7104 s
&@INSTALL@
&$ac_INSTALL&;t t
7105 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
7106 $ac_datarootdir_hack
7108 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
7109 || as_fn_error "could not create
$ac_file" "$LINENO" 5
7111 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7112 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
7113 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
7115 which seems to be undefined. Please make sure it is defined." >&5
7116 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
7117 which seems to be undefined. Please make sure it is defined." >&2;}
7121 -) cat "$tmp/out" && rm -f "$tmp/out";;
7122 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7124 || as_fn_error "could not create $ac_file" "$LINENO" 5
7130 if test x"$ac_file" != x-; then
7132 $as_echo "/* $configure_input */" \
7133 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7134 } >"$tmp/config.h" \
7135 || as_fn_error "could not create $ac_file" "$LINENO" 5
7136 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7138 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7141 mv "$tmp/config.h" "$ac_file" \
7142 || as_fn_error "could not create $ac_file" "$LINENO" 5
7145 $as_echo "/* $configure_input */" \
7146 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7147 || as_fn_error "could not create -" "$LINENO" 5
7149 # Compute "$ac_file"'s index
in $config_headers.
7152 for _am_header
in $config_headers :; do
7154 $_am_arg |
$_am_arg:* )
7157 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
7160 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7161 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7162 X"$_am_arg" : 'X\(//\)[^/]' \| \
7163 X"$_am_arg" : 'X\(//\)$' \| \
7164 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
7165 $as_echo X"$_am_arg" |
7166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7182 s/.*/./; q'`/stamp-h
$_am_stamp_count
7185 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7186 $as_echo "$as_me: executing $ac_file commands" >&6;}
7191 case $ac_file$ac_mode in
7192 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
7193 # Autoconf 2.62 quotes --file arguments for eval, but not when files
7194 # are listed without --file. Let's play safe and only enable the eval
7195 # if we detect the quoting.
7196 case $CONFIG_FILES in
7197 *\'*) eval set x
"$CONFIG_FILES" ;;
7198 *) set x
$CONFIG_FILES ;;
7203 # Strip MF so we end up with the name of the file.
7204 mf
=`echo "$mf" | sed -e 's/:.*$//'`
7205 # Check whether this is an Automake generated Makefile or not.
7206 # We used to match only the files named `Makefile.in', but
7207 # some people rename them; so instead we look at the file content.
7208 # Grep'ing the first line is not enough: some people post-process
7209 # each Makefile.in and add a new line on top of each file to say so.
7210 # Grep'ing the whole file is not good either: AIX grep has a line
7211 # limit of 2048, but all sed's we know have understand at least 4000.
7212 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
7213 dirpart
=`$as_dirname -- "$mf" ||
7214 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7215 X"$mf" : 'X\(//\)[^/]' \| \
7216 X"$mf" : 'X\(//\)$' \| \
7217 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
7219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7239 # Extract the definition of DEPDIR, am__include, and am__quote
7240 # from the Makefile without running `make'.
7241 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
7242 test -z "$DEPDIR" && continue
7243 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
7244 test -z "am__include" && continue
7245 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
7246 # When using ansi2knr, U may be empty or an underscore; expand it
7247 U
=`sed -n 's/^U = //p' < "$mf"`
7248 # Find all dependency output files, they are included files with
7249 # $(DEPDIR) in their names. We invoke sed twice because it is the
7250 # simplest approach to changing $(DEPDIR) to its actual value in the
7252 for file in `sed -n "
7253 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7254 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7255 # Make sure the directory exists.
7256 test -f "$dirpart/$file" && continue
7257 fdir
=`$as_dirname -- "$file" ||
7258 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7259 X"$file" : 'X\(//\)[^/]' \| \
7260 X"$file" : 'X\(//\)$' \| \
7261 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
7263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7280 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
7281 # echo "creating $dirpart/$file"
7282 echo '# dummy' > "$dirpart/$file"
7294 ac_clean_files
=$ac_clean_files_save
7296 test $ac_write_fail = 0 ||
7297 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
7300 # configure is writing to config.log, and then calls config.status.
7301 # config.status does its own redirection, appending to config.log.
7302 # Unfortunately, on DOS this fails, as config.log is still kept open
7303 # by configure, so config.status won't be able to write to it; its
7304 # output is simply discarded. So we exec the FD to /dev/null,
7305 # effectively closing config.log, so it can be properly (re)opened and
7306 # appended to by config.status. When coming back to configure, we
7307 # need to make the FD available again.
7308 if test "$no_create" != yes; then
7310 ac_config_status_args
=
7311 test "$silent" = yes &&
7312 ac_config_status_args
="$ac_config_status_args --quiet"
7314 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
7316 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7317 # would make configure fail if this is the last instruction.
7318 $ac_cs_success || as_fn_exit $?
7320 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7322 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}