Prepare for 2.9.14
[nbd.git] / configure
blobfab3737a744956cd6ad45b534fb71538f137406c
1 #! /bin/sh
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
9 # Foundation, Inc.
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 :
20 emulate sh
21 NULLCMD=:
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+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
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
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
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.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
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
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
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 || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
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 :
138 emulate sh
139 NULLCMD=:
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+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
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; }
159 exitcode=0
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 :
166 else
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 :
176 as_have_required=yes
177 else
178 as_have_required=no
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
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 :
199 break 2
202 done;;
203 esac
204 as_found=false
205 done
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
209 fi; }
210 IFS=$as_save_IFS
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.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
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."
230 else
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
235 $0: have one."
237 exit 1
241 SHELL=${CONFIG_SHELL-/bin/sh}
242 export SHELL
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 ## --------------------- ##
250 # as_fn_unset VAR
251 # ---------------
252 # Portably unset VAR.
253 as_fn_unset ()
255 { eval $1=; unset $1;}
257 as_unset=as_fn_unset
259 # as_fn_set_status STATUS
260 # -----------------------
261 # Set $? to STATUS, without forking.
262 as_fn_set_status ()
264 return $1
265 } # as_fn_set_status
267 # as_fn_exit STATUS
268 # -----------------
269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
270 as_fn_exit ()
272 set +e
273 as_fn_set_status $1
274 exit $1
275 } # as_fn_exit
277 # as_fn_mkdir_p
278 # -------------
279 # Create "$as_dir" as a directory, including parents if necessary.
280 as_fn_mkdir_p ()
283 case $as_dir in #(
284 -*) as_dir=./$as_dir;;
285 esac
286 test -d "$as_dir" || eval $as_mkdir_p || {
287 as_dirs=
288 while :; do
289 case $as_dir in #(
290 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
291 *) as_qdir=$as_dir;;
292 esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
301 s//\1/
304 /^X\(\/\/\)[^/].*/{
305 s//\1/
308 /^X\(\/\/\)$/{
309 s//\1/
312 /^X\(\/\).*/{
313 s//\1/
316 s/.*/./; q'`
317 test -d "$as_dir" && break
318 done
319 test -z "$as_dirs" || eval "mkdir $as_dirs"
320 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323 } # as_fn_mkdir_p
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
329 # implementations.
330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331 eval 'as_fn_append ()
333 eval $1+=\$2
335 else
336 as_fn_append ()
338 eval $1=\$$1\$2
340 fi # as_fn_append
342 # as_fn_arith ARG...
343 # ------------------
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 :
348 eval 'as_fn_arith ()
350 as_val=$(( $* ))
352 else
353 as_fn_arith ()
355 as_val=`expr "$@" || test $? -eq 1`
357 fi # as_fn_arith
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.
365 as_fn_error ()
367 as_status=$?; test $as_status -eq 0 && as_status=1
368 if test "$3"; then
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
374 } # as_fn_error
376 if expr a : '\(a\)' >/dev/null 2>&1 &&
377 test "X`expr 00001 : '.*\(...\)'`" = X001; then
378 as_expr=expr
379 else
380 as_expr=false
383 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
384 as_basename=basename
385 else
386 as_basename=false
389 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
390 as_dirname=dirname
391 else
392 as_dirname=false
395 as_me=`$as_basename -- "$0" ||
396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397 X"$0" : 'X\(//\)$' \| \
398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 $as_echo X/"$0" |
400 sed '/^.*\/\([^/][^/]*\)\/*$/{
401 s//\1/
404 /^X\/\(\/\/\)$/{
405 s//\1/
408 /^X\/\(\/\).*/{
409 s//\1/
412 s/.*/./; q'`
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. :-)
427 sed -n '
429 /[$]LINENO/=
430 ' <$as_myself |
431 sed '
432 s/[$]LINENO.*/&-/
433 t lineno
435 :lineno
437 :loop
438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 t loop
440 s/-\n.*//
441 ' >$as_me.lineno &&
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).
448 . "./$as_me.lineno"
449 # Exit status is that of the last command.
450 exit
453 ECHO_C= ECHO_N= ECHO_T=
454 case `echo -n x` in #(((((
455 -n*)
456 case `echo 'xy\c'` in
457 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
458 xy) ECHO_C='\c';;
459 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
460 ECHO_T=' ';;
461 esac;;
463 ECHO_N='-n';;
464 esac
466 rm -f conf$$ conf$$.exe conf$$.file
467 if test -d conf$$.dir; then
468 rm -f conf$$.dir/conf$$.file
469 else
470 rm -f conf$$.dir
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
475 as_ln_s='ln -s'
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 ||
481 as_ln_s='cp -p'
482 elif ln conf$$.file conf$$ 2>/dev/null; then
483 as_ln_s=ln
484 else
485 as_ln_s='cp -p'
487 else
488 as_ln_s='cp -p'
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"'
495 else
496 test -d ./-p && rmdir ./-p
497 as_mkdir_p=false
500 if test -x / >/dev/null 2>&1; then
501 as_test_x='test -x'
502 else
503 if ls -dL / >/dev/null 2>&1; then
504 as_ls_L_option=L
505 else
506 as_ls_L_option=
508 as_test_x='
509 eval sh -c '\''
510 if test -d "$1"; then
511 test -d "$1/.";
512 else
513 case $1 in #(
514 -*)set "./$1";;
515 esac;
516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517 ???[sx]*):;;*)false;;esac;fi
518 '\'' sh
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
532 # Name of the host.
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`
538 # Initializations.
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
549 # Identity of this package.
550 PACKAGE_NAME='nbd'
551 PACKAGE_TARNAME='nbd'
552 PACKAGE_VERSION='2.9.14'
553 PACKAGE_STRING='nbd 2.9.14'
554 PACKAGE_BUGREPORT='wouter@debian.org'
555 PACKAGE_URL=''
557 # Factoring default headers for most tests.
558 ac_includes_default="\
559 #include <stdio.h>
560 #ifdef HAVE_SYS_TYPES_H
561 # include <sys/types.h>
562 #endif
563 #ifdef HAVE_SYS_STAT_H
564 # include <sys/stat.h>
565 #endif
566 #ifdef STDC_HEADERS
567 # include <stdlib.h>
568 # include <stddef.h>
569 #else
570 # ifdef HAVE_STDLIB_H
571 # include <stdlib.h>
572 # endif
573 #endif
574 #ifdef HAVE_STRING_H
575 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
576 # include <memory.h>
577 # endif
578 # include <string.h>
579 #endif
580 #ifdef HAVE_STRINGS_H
581 # include <strings.h>
582 #endif
583 #ifdef HAVE_INTTYPES_H
584 # include <inttypes.h>
585 #endif
586 #ifdef HAVE_STDINT_H
587 # include <stdint.h>
588 #endif
589 #ifdef HAVE_UNISTD_H
590 # include <unistd.h>
591 #endif"
593 ac_subst_vars='am__EXEEXT_FALSE
594 am__EXEEXT_TRUE
595 LTLIBOBJS
596 LIBOBJS
597 nbd_server_CPPFLAGS
598 sbin_PROGRAMS
599 GLIB_MKENUMS
600 GOBJECT_QUERY
601 GLIB_GENMARSHAL
602 GLIB_LIBS
603 GLIB_CFLAGS
604 PKG_CONFIG
605 EGREP
606 GREP
607 host_os
608 host_vendor
609 host_cpu
610 host
611 build_os
612 build_vendor
613 build_cpu
614 build
616 am__fastdepCC_FALSE
617 am__fastdepCC_TRUE
618 CCDEPMODE
619 AMDEPBACKSLASH
620 AMDEP_FALSE
621 AMDEP_TRUE
622 am__quote
623 am__include
624 DEPDIR
625 OBJEXT
626 EXEEXT
627 ac_ct_CC
628 CPPFLAGS
629 LDFLAGS
630 CFLAGS
632 MAINT
633 MAINTAINER_MODE_FALSE
634 MAINTAINER_MODE_TRUE
635 am__untar
636 am__tar
637 AMTAR
638 am__leading_dot
639 SET_MAKE
641 mkdir_p
642 MKDIR_P
643 INSTALL_STRIP_PROGRAM
644 STRIP
645 install_sh
646 MAKEINFO
647 AUTOHEADER
648 AUTOMAKE
649 AUTOCONF
650 ACLOCAL
651 VERSION
652 PACKAGE
653 CYGPATH_W
654 am__isrc
655 INSTALL_DATA
656 INSTALL_SCRIPT
657 INSTALL_PROGRAM
658 target_alias
659 host_alias
660 build_alias
661 LIBS
662 ECHO_T
663 ECHO_N
664 ECHO_C
665 DEFS
666 mandir
667 localedir
668 libdir
669 psdir
670 pdfdir
671 dvidir
672 htmldir
673 infodir
674 docdir
675 oldincludedir
676 includedir
677 localstatedir
678 sharedstatedir
679 sysconfdir
680 datadir
681 datarootdir
682 libexecdir
683 sbindir
684 bindir
685 program_transform_name
686 prefix
687 exec_prefix
688 PACKAGE_URL
689 PACKAGE_BUGREPORT
690 PACKAGE_STRING
691 PACKAGE_VERSION
692 PACKAGE_TARNAME
693 PACKAGE_NAME
694 PATH_SEPARATOR
695 SHELL'
696 ac_subst_files=''
697 ac_user_opts='
698 enable_option_checking
699 enable_maintainer_mode
700 enable_lfs
701 enable_syslog
702 enable_debug
703 enable_sdp
704 enable_dependency_tracking
705 enable_glibtest
707 ac_precious_vars='build_alias
708 host_alias
709 target_alias
711 CFLAGS
712 LDFLAGS
713 LIBS
714 CPPFLAGS
716 PKG_CONFIG'
719 # Initialize some variables set by options.
720 ac_init_help=
721 ac_init_version=false
722 ac_unrecognized_opts=
723 ac_unrecognized_sep=
724 # The variables have the same names as the options, with
725 # dashes changed to underlines.
726 cache_file=/dev/null
727 exec_prefix=NONE
728 no_create=
729 no_recursion=
730 prefix=NONE
731 program_prefix=NONE
732 program_suffix=NONE
733 program_transform_name=s,x,x,
734 silent=
735 site=
736 srcdir=
737 verbose=
738 x_includes=NONE
739 x_libraries=NONE
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'
759 htmldir='${docdir}'
760 dvidir='${docdir}'
761 pdfdir='${docdir}'
762 psdir='${docdir}'
763 libdir='${exec_prefix}/lib'
764 localedir='${datarootdir}/locale'
765 mandir='${datarootdir}/man'
767 ac_prev=
768 ac_dashdash=
769 for ac_option
771 # If the previous option needs an argument, assign it.
772 if test -n "$ac_prev"; then
773 eval $ac_prev=\$ac_option
774 ac_prev=
775 continue
778 case $ac_option in
779 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
780 *) ac_optarg=yes ;;
781 esac
783 # Accept the important Cygnus configure options, so we can diagnose typos.
785 case $ac_dashdash$ac_option in
787 ac_dashdash=yes ;;
789 -bindir | --bindir | --bindi | --bind | --bin | --bi)
790 ac_prev=bindir ;;
791 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
792 bindir=$ac_optarg ;;
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 ;;
806 --config-cache | -C)
807 cache_file=config.cache ;;
809 -datadir | --datadir | --datadi | --datad)
810 ac_prev=datadir ;;
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
830 "enable_$ac_useropt"
831 "*) ;;
832 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
833 ac_unrecognized_sep=', ';;
834 esac
835 eval enable_$ac_useropt=no ;;
837 -docdir | --docdir | --docdi | --doc | --do)
838 ac_prev=docdir ;;
839 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
840 docdir=$ac_optarg ;;
842 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
843 ac_prev=dvidir ;;
844 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
845 dvidir=$ac_optarg ;;
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
856 "enable_$ac_useropt"
857 "*) ;;
858 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
859 ac_unrecognized_sep=', ';;
860 esac
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.
874 with_gas=yes ;;
876 -help | --help | --hel | --he | -h)
877 ac_init_help=long ;;
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)
889 ac_prev=htmldir ;;
890 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
891 | --ht=*)
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)
902 ac_prev=infodir ;;
903 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
904 infodir=$ac_optarg ;;
906 -libdir | --libdir | --libdi | --libd)
907 ac_prev=libdir ;;
908 -libdir=* | --libdir=* | --libdi=* | --libd=*)
909 libdir=$ac_optarg ;;
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)
919 ac_prev=localedir ;;
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)
931 ac_prev=mandir ;;
932 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
933 mandir=$ac_optarg ;;
935 -nfp | --nfp | --nf)
936 # Obsolete; use --without-fp.
937 with_fp=no ;;
939 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
940 | --no-cr | --no-c | -n)
941 no_create=yes ;;
943 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
944 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
945 no_recursion=yes ;;
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)
957 ac_prev=prefix ;;
958 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
959 prefix=$ac_optarg ;;
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)
993 ac_prev=pdfdir ;;
994 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
995 pdfdir=$ac_optarg ;;
997 -psdir | --psdir | --psdi | --psd | --ps)
998 ac_prev=psdir ;;
999 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1000 psdir=$ac_optarg ;;
1002 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1003 | -silent | --silent | --silen | --sile | --sil)
1004 silent=yes ;;
1006 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1007 ac_prev=sbindir ;;
1008 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1009 | --sbi=* | --sb=*)
1010 sbindir=$ac_optarg ;;
1012 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1013 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1014 | --sharedst | --shareds | --shared | --share | --shar \
1015 | --sha | --sh)
1016 ac_prev=sharedstatedir ;;
1017 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1018 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1019 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1020 | --sha=* | --sh=*)
1021 sharedstatedir=$ac_optarg ;;
1023 -site | --site | --sit)
1024 ac_prev=site ;;
1025 -site=* | --site=* | --sit=*)
1026 site=$ac_optarg ;;
1028 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1029 ac_prev=srcdir ;;
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)
1046 verbose=yes ;;
1048 -version | --version | --versio | --versi | --vers | -V)
1049 ac_init_version=: ;;
1051 -with-* | --with-*)
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
1060 "with_$ac_useropt"
1061 "*) ;;
1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1063 ac_unrecognized_sep=', ';;
1064 esac
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
1076 "with_$ac_useropt"
1077 "*) ;;
1078 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1079 ac_unrecognized_sep=', ';;
1080 esac
1081 eval with_$ac_useropt=no ;;
1083 --x)
1084 # Obsolete; use --with-x.
1085 with_x=yes ;;
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."
1105 *=*)
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'" ;;
1111 esac
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}
1123 esac
1124 done
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
1133 no) ;;
1134 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1135 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1136 esac
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.
1147 case $ac_val in
1148 */ )
1149 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1150 eval $ac_var=\$ac_val;;
1151 esac
1152 # Be sure to have absolute directory names.
1153 case $ac_val in
1154 [\\/$]* | ?:[\\/]* ) continue;;
1155 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1156 esac
1157 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1158 done
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.
1163 build=$build_alias
1164 host=$host_alias
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
1174 cross_compiling=yes
1178 ac_tool_prefix=
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1203 s//\1/
1206 /^X\(\/\/\)[^/].*/{
1207 s//\1/
1210 /^X\(\/\/\)$/{
1211 s//\1/
1214 /^X\(\/\).*/{
1215 s//\1/
1218 s/.*/./; q'`
1219 srcdir=$ac_confdir
1220 if test ! -r "$srcdir/$ac_unique_file"; then
1221 srcdir=..
1223 else
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"
1231 ac_abs_confdir=`(
1232 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1233 pwd)`
1234 # When building in place, set srcdir=.
1235 if test "$ac_abs_confdir" = "$ac_pwd"; then
1236 srcdir=.
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.
1241 case $srcdir in
1242 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1243 esac
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}
1249 done
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.
1257 cat <<_ACEOF
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.
1267 Configuration:
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
1282 [PREFIX]
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]
1311 _ACEOF
1313 cat <<\_ACEOF
1315 Program names:
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
1320 System types:
1321 --build=BUILD configure for building on BUILD [guessed]
1322 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1323 _ACEOF
1326 if test -n "$ac_init_help"; then
1327 case $ac_init_help in
1328 short | recursive ) echo "Configuration of nbd 2.9.14:";;
1329 esac
1330 cat <<\_ACEOF
1332 Optional Features:
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
1344 (default disabled)
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>
1357 CPP C preprocessor
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>.
1364 _ACEOF
1365 ac_status=$?
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"; } ||
1373 continue
1374 ac_builddir=.
1376 case "$ac_dir" in
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/ ;;
1385 esac ;;
1386 esac
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
1392 case $srcdir in
1393 .) # We are building in place.
1394 ac_srcdir=.
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 ;;
1401 *) # Relative name.
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 ;;
1405 esac
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
1411 echo &&
1412 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1413 elif test -f "$ac_srcdir/configure"; then
1414 echo &&
1415 $SHELL "$ac_srcdir/configure" --help=recursive
1416 else
1417 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1418 fi || ac_status=$?
1419 cd "$ac_pwd" || { ac_status=$?; break; }
1420 done
1423 test -n "$ac_init_help" && exit $ac_status
1424 if $ac_init_version; then
1425 cat <<\_ACEOF
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.
1432 _ACEOF
1433 exit
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"
1448 case "(($ac_try" in
1449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1450 *) ac_try_echo=$ac_try;;
1451 esac
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
1455 ac_status=$?
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 :
1466 ac_retval=0
1467 else
1468 $as_echo "$as_me: failed program was:" >&5
1469 sed 's/^/| /' conftest.$ac_ext >&5
1471 ac_retval=1
1473 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1474 return $ac_retval
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.
1481 ac_fn_c_try_cpp ()
1483 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1484 if { { ac_try="$ac_cpp conftest.$ac_ext"
1485 case "(($ac_try" in
1486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1487 *) ac_try_echo=$ac_try;;
1488 esac
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
1492 ac_status=$?
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
1502 }; then :
1503 ac_retval=0
1504 else
1505 $as_echo "$as_me: failed program was:" >&5
1506 sed 's/^/| /' conftest.$ac_ext >&5
1508 ac_retval=1
1510 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1511 return $ac_retval
1513 } # ac_fn_c_try_cpp
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.
1519 ac_fn_c_try_run ()
1521 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1522 if { { ac_try="$ac_link"
1523 case "(($ac_try" in
1524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1525 *) ac_try_echo=$ac_try;;
1526 esac
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
1530 ac_status=$?
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;;
1536 esac
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
1540 ac_status=$?
1541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1542 test $ac_status = 0; }; }; then :
1543 ac_retval=0
1544 else
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;}
1553 return $ac_retval
1555 } # ac_fn_c_try_run
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
1568 else
1569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1570 /* end confdefs.h. */
1572 #include <$2>
1573 _ACEOF
1574 if ac_fn_c_try_compile "$LINENO"; then :
1575 eval "$3=yes"
1576 else
1577 eval "$3=no"
1579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1581 eval ac_res=\$$3
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
1592 # computed
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. */
1602 main ()
1604 static int test_array [1 - 2 * !(($2) >= 0)];
1605 test_array [0] = 0
1608 return 0;
1610 _ACEOF
1611 if ac_fn_c_try_compile "$LINENO"; then :
1612 ac_lo=0 ac_mid=0
1613 while :; do
1614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1615 /* end confdefs.h. */
1618 main ()
1620 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1621 test_array [0] = 0
1624 return 0;
1626 _ACEOF
1627 if ac_fn_c_try_compile "$LINENO"; then :
1628 ac_hi=$ac_mid; break
1629 else
1630 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1631 if test $ac_lo -le $ac_mid; then
1632 ac_lo= ac_hi=
1633 break
1635 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1638 done
1639 else
1640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1641 /* end confdefs.h. */
1644 main ()
1646 static int test_array [1 - 2 * !(($2) < 0)];
1647 test_array [0] = 0
1650 return 0;
1652 _ACEOF
1653 if ac_fn_c_try_compile "$LINENO"; then :
1654 ac_hi=-1 ac_mid=-1
1655 while :; do
1656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1657 /* end confdefs.h. */
1660 main ()
1662 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1663 test_array [0] = 0
1666 return 0;
1668 _ACEOF
1669 if ac_fn_c_try_compile "$LINENO"; then :
1670 ac_lo=$ac_mid; break
1671 else
1672 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1673 if test $ac_mid -le $ac_hi; then
1674 ac_lo= ac_hi=
1675 break
1677 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1680 done
1681 else
1682 ac_lo= ac_hi=
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. */
1694 main ()
1696 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1697 test_array [0] = 0
1700 return 0;
1702 _ACEOF
1703 if ac_fn_c_try_compile "$LINENO"; then :
1704 ac_hi=$ac_mid
1705 else
1706 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1709 done
1710 case $ac_lo in #((
1711 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1712 '') ac_retval=1 ;;
1713 esac
1714 else
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; }
1720 #include <stdio.h>
1721 #include <stdlib.h>
1723 main ()
1726 FILE *f = fopen ("conftest.val", "w");
1727 if (! f)
1728 return 1;
1729 if (($2) < 0)
1731 long int i = longval ();
1732 if (i != ($2))
1733 return 1;
1734 fprintf (f, "%ld", i);
1736 else
1738 unsigned long int i = ulongval ();
1739 if (i != ($2))
1740 return 1;
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;
1748 return 0;
1750 _ACEOF
1751 if ac_fn_c_try_run "$LINENO"; then :
1752 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1753 else
1754 ac_retval=1
1756 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1757 conftest.$ac_objext conftest.beam conftest.$ac_ext
1758 rm -f conftest.val
1761 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1762 return $ac_retval
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.
1769 ac_fn_c_try_link ()
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"
1774 case "(($ac_try" in
1775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776 *) ac_try_echo=$ac_try;;
1777 esac
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
1781 ac_status=$?
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
1794 }; then :
1795 ac_retval=0
1796 else
1797 $as_echo "$as_me: failed program was:" >&5
1798 sed 's/^/| /' conftest.$ac_ext >&5
1800 ac_retval=1
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;}
1808 return $ac_retval
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
1822 else
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. */
1834 #ifdef __STDC__
1835 # include <limits.h>
1836 #else
1837 # include <assert.h>
1838 #endif
1840 #undef $2
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. */
1845 #ifdef __cplusplus
1846 extern "C"
1847 #endif
1848 char $2 ();
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
1853 choke me
1854 #endif
1857 main ()
1859 return $2 ();
1861 return 0;
1863 _ACEOF
1864 if ac_fn_c_try_link "$LINENO"; then :
1865 eval "$3=yes"
1866 else
1867 eval "$3=no"
1869 rm -f core conftest.err conftest.$ac_objext \
1870 conftest$ac_exeext conftest.$ac_ext
1872 eval ac_res=\$$3
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
1890 else
1891 eval "$3=no"
1892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893 /* end confdefs.h. */
1896 main ()
1898 if (sizeof ($2))
1899 return 0;
1901 return 0;
1903 _ACEOF
1904 if ac_fn_c_try_compile "$LINENO"; then :
1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h. */
1909 main ()
1911 if (sizeof (($2)))
1912 return 0;
1914 return 0;
1916 _ACEOF
1917 if ac_fn_c_try_compile "$LINENO"; then :
1919 else
1920 eval "$3=yes"
1922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1926 eval ac_res=\$$3
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
1937 # accordingly.
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
1947 eval ac_res=\$$3
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1949 $as_echo "$ac_res" >&6; }
1950 else
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. */
1957 #include <$2>
1958 _ACEOF
1959 if ac_fn_c_try_compile "$LINENO"; then :
1960 ac_header_compiler=yes
1961 else
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. */
1973 #include <$2>
1974 _ACEOF
1975 if ac_fn_c_try_cpp "$LINENO"; then :
1976 ac_header_preproc=yes
1977 else
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 #((
1986 yes:no: )
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;}
1992 no:yes:* )
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;}
2003 ( cat <<\_ASBOX
2004 ## -------------------------------- ##
2005 ## Report this to wouter@debian.org ##
2006 ## -------------------------------- ##
2007 _ASBOX
2008 ) | sed "s/^/$as_me: WARNING: /" >&2
2010 esac
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
2015 else
2016 eval "$3=\$ac_header_compiler"
2018 eval ac_res=\$$3
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
2032 $ $0 $@
2034 _ACEOF
2035 exec 5>>config.log
2037 cat <<_ASUNAME
2038 ## --------- ##
2039 ## Platform. ##
2040 ## --------- ##
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`
2059 _ASUNAME
2061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062 for as_dir in $PATH
2064 IFS=$as_save_IFS
2065 test -z "$as_dir" && as_dir=.
2066 $as_echo "PATH: $as_dir"
2067 done
2068 IFS=$as_save_IFS
2070 } >&5
2072 cat >&5 <<_ACEOF
2075 ## ----------- ##
2076 ## Core tests. ##
2077 ## ----------- ##
2079 _ACEOF
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.
2087 ac_configure_args=
2088 ac_configure_args0=
2089 ac_configure_args1=
2090 ac_must_keep_next=false
2091 for ac_pass in 1 2
2093 for ac_arg
2095 case $ac_arg in
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)
2099 continue ;;
2100 *\'*)
2101 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2102 esac
2103 case $ac_pass in
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.
2109 else
2110 case $ac_arg in
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 ;;
2117 esac
2119 -* ) ac_must_keep_next=true ;;
2120 esac
2122 as_fn_append ac_configure_args " '$ac_arg'"
2124 esac
2125 done
2126 done
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.
2138 echo
2140 cat <<\_ASBOX
2141 ## ---------------- ##
2142 ## Cache variables. ##
2143 ## ---------------- ##
2144 _ASBOX
2145 echo
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
2150 case $ac_val in #(
2151 *${as_nl}*)
2152 case $ac_var in #(
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;} ;;
2155 esac
2156 case $ac_var in #(
2157 _ | IFS | as_nl) ;; #(
2158 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2159 *) { eval $ac_var=; unset $ac_var;} ;;
2160 esac ;;
2161 esac
2162 done
2163 (set) 2>&1 |
2164 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2165 *${as_nl}ac_space=\ *)
2166 sed -n \
2167 "s/'\''/'\''\\\\'\'''\''/g;
2168 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2169 ;; #(
2171 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2173 esac |
2174 sort
2176 echo
2178 cat <<\_ASBOX
2179 ## ----------------- ##
2180 ## Output variables. ##
2181 ## ----------------- ##
2182 _ASBOX
2183 echo
2184 for ac_var in $ac_subst_vars
2186 eval ac_val=\$$ac_var
2187 case $ac_val in
2188 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2189 esac
2190 $as_echo "$ac_var='\''$ac_val'\''"
2191 done | sort
2192 echo
2194 if test -n "$ac_subst_files"; then
2195 cat <<\_ASBOX
2196 ## ------------------- ##
2197 ## File substitutions. ##
2198 ## ------------------- ##
2199 _ASBOX
2200 echo
2201 for ac_var in $ac_subst_files
2203 eval ac_val=\$$ac_var
2204 case $ac_val in
2205 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2206 esac
2207 $as_echo "$ac_var='\''$ac_val'\''"
2208 done | sort
2209 echo
2212 if test -s confdefs.h; then
2213 cat <<\_ASBOX
2214 ## ----------- ##
2215 ## confdefs.h. ##
2216 ## ----------- ##
2217 _ASBOX
2218 echo
2219 cat confdefs.h
2220 echo
2222 test "$ac_signal" != 0 &&
2223 $as_echo "$as_me: caught signal $ac_signal"
2224 $as_echo "$as_me: exit $exit_status"
2225 } >&5
2226 rm -f core *.core core.conftest.* &&
2227 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2228 exit $exit_status
2230 for ac_signal in 1 2 13 15; do
2231 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2232 done
2233 ac_signal=0
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"
2244 _ACEOF
2246 cat >>confdefs.h <<_ACEOF
2247 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2248 _ACEOF
2250 cat >>confdefs.h <<_ACEOF
2251 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2252 _ACEOF
2254 cat >>confdefs.h <<_ACEOF
2255 #define PACKAGE_STRING "$PACKAGE_STRING"
2256 _ACEOF
2258 cat >>confdefs.h <<_ACEOF
2259 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2260 _ACEOF
2262 cat >>confdefs.h <<_ACEOF
2263 #define PACKAGE_URL "$PACKAGE_URL"
2264 _ACEOF
2267 # Let the site file select an alternate cache file if it wants to.
2268 # Prefer an explicitly selected file to automatically selected ones.
2269 ac_site_file1=NONE
2270 ac_site_file2=NONE
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
2276 else
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
2287 . "$ac_site_file"
2289 done
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;}
2297 case $cache_file in
2298 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2299 *) . "./$cache_file";;
2300 esac
2302 else
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2304 $as_echo "$as_me: creating cache $cache_file" >&6;}
2305 >$cache_file
2308 # Check that the precious variables saved in the cache have kept the same
2309 # value.
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
2317 set,)
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=: ;;
2321 ,set)
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=: ;;
2325 ,);;
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=:
2335 else
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;}
2344 fi;;
2345 esac
2346 # Pass precious variables to config.status.
2347 if test "$ac_new_set" = set; then
2348 case $ac_new_val in
2349 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2350 *) ac_arg=$ac_var=$ac_new_val ;;
2351 esac
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'" ;;
2355 esac
2357 done
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 ## -------------------- ##
2369 ac_ext=c
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'
2378 ac_aux_dir=
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
2382 ac_aux_dir=$ac_dir
2383 ac_install_sh="$ac_aux_dir/$ac_t -c"
2384 break 2
2386 done
2387 done
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
2407 # AIX /bin/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
2420 else
2421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2422 for as_dir in $PATH
2424 IFS=$as_save_IFS
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[\\/]* | \
2431 /usr/ucb/* ) ;;
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
2435 # by default.
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.
2447 else
2448 rm -rf conftest.one conftest.two conftest.dir
2449 echo one > conftest.one
2450 echo two > conftest.two
2451 mkdir conftest.dir
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
2456 then
2457 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2458 break 3
2462 done
2463 done
2465 esac
2467 done
2468 IFS=$as_save_IFS
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
2475 else
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; }
2496 # Just in case
2497 sleep 1
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.
2501 am_lf='
2503 case `pwd` in
2504 *[\\\"\#\$\&\'\`$am_lf]*)
2505 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2506 esac
2507 case $srcdir in
2508 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2509 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2510 esac
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
2516 # directory).
2517 if (
2518 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2519 if test "$*" = "X"; then
2520 # -L didn't work.
2521 set X `ls -t "$srcdir/configure" conftest.file`
2523 rm -f 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
2537 then
2538 # Ok.
2540 else
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
2560 case $am_aux_dir in
2561 *\ * | *\ *)
2562 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2564 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2565 esac
2567 # Use eval to expand $SHELL
2568 if eval "$MISSING --run true"; then
2569 am_missing_run="$MISSING --run "
2570 else
2571 am_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
2577 case $am_aux_dir in
2578 *\ * | *\ *)
2579 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2581 install_sh="\${SHELL} $am_aux_dir/install-sh"
2582 esac
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
2597 else
2598 if test -n "$STRIP"; then
2599 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2600 else
2601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2602 for as_dir in $PATH
2604 IFS=$as_save_IFS
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
2610 break 2
2612 done
2613 done
2614 IFS=$as_save_IFS
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; }
2622 else
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
2630 ac_ct_STRIP=$STRIP
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
2637 else
2638 if test -n "$ac_ct_STRIP"; then
2639 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2640 else
2641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642 for as_dir in $PATH
2644 IFS=$as_save_IFS
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
2650 break 2
2652 done
2653 done
2654 IFS=$as_save_IFS
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; }
2662 else
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
2668 STRIP=":"
2669 else
2670 case $cross_compiling:$ac_tool_warned in
2671 yes:)
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 ;;
2675 esac
2676 STRIP=$ac_ct_STRIP
2678 else
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
2690 else
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2694 IFS=$as_save_IFS
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
2704 break 3;;
2705 esac
2706 done
2707 done
2708 done
2709 IFS=$as_save_IFS
2713 if test "${ac_cv_path_mkdir+set}" = set; then
2714 MKDIR_P="$ac_cv_path_mkdir -p"
2715 else
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; }
2727 mkdir_p="$MKDIR_P"
2728 case $mkdir_p in
2729 [\\/$]* | ?:[\\/]*) ;;
2730 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2731 esac
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
2741 else
2742 if test -n "$AWK"; then
2743 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2744 else
2745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746 for as_dir in $PATH
2748 IFS=$as_save_IFS
2749 test -z "$as_dir" && as_dir=.
2750 for ac_exec_ext in '' $ac_executable_extensions; do
2751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2752 ac_cv_prog_AWK="$ac_prog"
2753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2754 break 2
2756 done
2757 done
2758 IFS=$as_save_IFS
2762 AWK=$ac_cv_prog_AWK
2763 if test -n "$AWK"; then
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2765 $as_echo "$AWK" >&6; }
2766 else
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2768 $as_echo "no" >&6; }
2772 test -n "$AWK" && break
2773 done
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; }
2777 set x ${MAKE-make}
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
2781 else
2782 cat >conftest.make <<\_ACEOF
2783 SHELL = /bin/sh
2784 all:
2785 @echo '@@@%%%=$(MAKE)=@@@%%%'
2786 _ACEOF
2787 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2788 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2789 *@@@%%%=?*=@@@%%%*)
2790 eval ac_cv_prog_make_${ac_make}_set=yes;;
2792 eval ac_cv_prog_make_${ac_make}_set=no;;
2793 esac
2794 rm -f conftest.make
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; }
2799 SET_MAKE=
2800 else
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
2809 am__leading_dot=.
2810 else
2811 am__leading_dot=_
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'
2829 else
2830 CYGPATH_W=echo
2835 # Define the identity of the package.
2836 PACKAGE='nbd'
2837 VERSION='2.9.14'
2840 cat >>confdefs.h <<_ACEOF
2841 #define PACKAGE "$PACKAGE"
2842 _ACEOF
2845 cat >>confdefs.h <<_ACEOF
2846 #define VERSION "$VERSION"
2847 _ACEOF
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
2866 # some platforms.
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
2883 else
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='#'
2892 else
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
2905 NBD_LFS=1
2906 else
2907 NBD_LFS=0
2910 else
2911 NBD_LFS=1
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; }
2923 else
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
2934 ISSERVER=1
2935 else
2936 ISSERVER=0
2939 else
2940 ISSERVER=0
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; }
2953 else
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
2962 DODBG=1
2963 else
2964 DODBG=0
2967 else
2968 DODBG=0
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
2987 else
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
3005 ac_ext=c
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
3017 else
3018 if test -n "$CC"; then
3019 ac_cv_prog_CC="$CC" # Let the user override the test.
3020 else
3021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3022 for as_dir in $PATH
3024 IFS=$as_save_IFS
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
3030 break 2
3032 done
3033 done
3034 IFS=$as_save_IFS
3038 CC=$ac_cv_prog_CC
3039 if test -n "$CC"; then
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3041 $as_echo "$CC" >&6; }
3042 else
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
3050 ac_ct_CC=$CC
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
3057 else
3058 if test -n "$ac_ct_CC"; then
3059 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3060 else
3061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3062 for as_dir in $PATH
3064 IFS=$as_save_IFS
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
3070 break 2
3072 done
3073 done
3074 IFS=$as_save_IFS
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; }
3082 else
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
3088 CC=""
3089 else
3090 case $cross_compiling:$ac_tool_warned in
3091 yes:)
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 ;;
3095 esac
3096 CC=$ac_ct_CC
3098 else
3099 CC="$ac_cv_prog_CC"
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
3110 else
3111 if test -n "$CC"; then
3112 ac_cv_prog_CC="$CC" # Let the user override the test.
3113 else
3114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115 for as_dir in $PATH
3117 IFS=$as_save_IFS
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
3123 break 2
3125 done
3126 done
3127 IFS=$as_save_IFS
3131 CC=$ac_cv_prog_CC
3132 if test -n "$CC"; then
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3134 $as_echo "$CC" >&6; }
3135 else
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
3150 else
3151 if test -n "$CC"; then
3152 ac_cv_prog_CC="$CC" # Let the user override the test.
3153 else
3154 ac_prog_rejected=no
3155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156 for as_dir in $PATH
3158 IFS=$as_save_IFS
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
3164 continue
3166 ac_cv_prog_CC="cc"
3167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3168 break 2
3170 done
3171 done
3172 IFS=$as_save_IFS
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
3177 shift
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.
3182 shift
3183 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3188 CC=$ac_cv_prog_CC
3189 if test -n "$CC"; then
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3191 $as_echo "$CC" >&6; }
3192 else
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
3209 else
3210 if test -n "$CC"; then
3211 ac_cv_prog_CC="$CC" # Let the user override the test.
3212 else
3213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214 for as_dir in $PATH
3216 IFS=$as_save_IFS
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
3222 break 2
3224 done
3225 done
3226 IFS=$as_save_IFS
3230 CC=$ac_cv_prog_CC
3231 if test -n "$CC"; then
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3233 $as_echo "$CC" >&6; }
3234 else
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236 $as_echo "no" >&6; }
3240 test -n "$CC" && break
3241 done
3243 if test -z "$CC"; then
3244 ac_ct_CC=$CC
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
3253 else
3254 if test -n "$ac_ct_CC"; then
3255 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3256 else
3257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3258 for as_dir in $PATH
3260 IFS=$as_save_IFS
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
3266 break 2
3268 done
3269 done
3270 IFS=$as_save_IFS
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; }
3278 else
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3280 $as_echo "no" >&6; }
3284 test -n "$ac_ct_CC" && break
3285 done
3287 if test "x$ac_ct_CC" = x; then
3288 CC=""
3289 else
3290 case $cross_compiling:$ac_tool_warned in
3291 yes:)
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 ;;
3295 esac
3296 CC=$ac_ct_CC
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
3310 set X $ac_compile
3311 ac_compiler=$2
3312 for ac_option in --version -v -V -qversion; do
3313 { { ac_try="$ac_compiler $ac_option >&5"
3314 case "(($ac_try" in
3315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316 *) ac_try_echo=$ac_try;;
3317 esac
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
3321 ac_status=$?
3322 if test -s conftest.err; then
3323 sed '10a\
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; }
3331 done
3333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3334 /* end confdefs.h. */
3335 #include <stdio.h>
3337 main ()
3339 FILE *f = fopen ("conftest.out", "w");
3340 return ferror (f) || fclose (f) != 0;
3343 return 0;
3345 _ACEOF
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
3350 # of exeext.
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.*"
3358 ac_rmfiles=
3359 for ac_file in $ac_files
3361 case $ac_file in
3362 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3363 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3364 esac
3365 done
3366 rm -f $ac_rmfiles
3368 if { { ac_try="$ac_link_default"
3369 case "(($ac_try" in
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3372 esac
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
3376 ac_status=$?
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
3383 # Autoconf.
3384 for ac_file in $ac_files ''
3386 test -f "$ac_file" || continue
3387 case $ac_file in
3388 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3390 [ab].out )
3391 # We found the default executable, but exeext='' is most
3392 # certainly right.
3393 break;;
3394 *.* )
3395 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3396 then :; else
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
3403 # actually working.
3404 break;;
3406 break;;
3407 esac
3408 done
3409 test "$ac_cv_exeext" = no && ac_cv_exeext=
3411 else
3412 ac_file=''
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;;
3438 esac
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
3442 ac_status=$?
3443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3444 test $ac_status = 0; }; }; then
3445 cross_compiling=no
3446 else
3447 if test "$cross_compiling" = maybe; then
3448 cross_compiling=yes
3449 else
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"
3473 case "(($ac_try" in
3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475 *) ac_try_echo=$ac_try;;
3476 esac
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
3480 ac_status=$?
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
3486 # `rm'.
3487 for ac_file in conftest.exe conftest conftest.*; do
3488 test -f "$ac_file" || continue
3489 case $ac_file in
3490 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3491 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3492 break;;
3493 * ) break;;
3494 esac
3495 done
3496 else
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
3508 ac_exeext=$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
3513 else
3514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3515 /* end confdefs.h. */
3518 main ()
3522 return 0;
3524 _ACEOF
3525 rm -f conftest.o conftest.obj
3526 if { { ac_try="$ac_compile"
3527 case "(($ac_try" in
3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3530 esac
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
3534 ac_status=$?
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;
3539 case $ac_file in
3540 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3541 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3542 break;;
3543 esac
3544 done
3545 else
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
3559 ac_objext=$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
3564 else
3565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3566 /* end confdefs.h. */
3569 main ()
3571 #ifndef __GNUC__
3572 choke me
3573 #endif
3576 return 0;
3578 _ACEOF
3579 if ac_fn_c_try_compile "$LINENO"; then :
3580 ac_compiler_gnu=yes
3581 else
3582 ac_compiler_gnu=no
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
3591 GCC=yes
3592 else
3593 GCC=
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
3601 else
3602 ac_save_c_werror_flag=$ac_c_werror_flag
3603 ac_c_werror_flag=yes
3604 ac_cv_prog_cc_g=no
3605 CFLAGS="-g"
3606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3607 /* end confdefs.h. */
3610 main ()
3614 return 0;
3616 _ACEOF
3617 if ac_fn_c_try_compile "$LINENO"; then :
3618 ac_cv_prog_cc_g=yes
3619 else
3620 CFLAGS=""
3621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622 /* end confdefs.h. */
3625 main ()
3629 return 0;
3631 _ACEOF
3632 if ac_fn_c_try_compile "$LINENO"; then :
3634 else
3635 ac_c_werror_flag=$ac_save_c_werror_flag
3636 CFLAGS="-g"
3637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3638 /* end confdefs.h. */
3641 main ()
3645 return 0;
3647 _ACEOF
3648 if ac_fn_c_try_compile "$LINENO"; then :
3649 ac_cv_prog_cc_g=yes
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
3664 CFLAGS="-g -O2"
3665 else
3666 CFLAGS="-g"
3668 else
3669 if test "$GCC" = yes; then
3670 CFLAGS="-O2"
3671 else
3672 CFLAGS=
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
3679 else
3680 ac_cv_prog_cc_c89=no
3681 ac_save_CC=$CC
3682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683 /* end confdefs.h. */
3684 #include <stdarg.h>
3685 #include <stdio.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)
3692 char **p;
3693 int i;
3695 return p[i];
3697 static char *f (char * (*g) (char **, int), char **p, ...)
3699 char *s;
3700 va_list v;
3701 va_start (v,p);
3702 s = g (p, va_arg (v,int));
3703 va_end (v);
3704 return s;
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. */
3718 #define FOO(x) 'x'
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);
3725 int argc;
3726 char **argv;
3728 main ()
3730 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3732 return 0;
3734 _ACEOF
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
3744 done
3745 rm -f conftest.$ac_ext
3746 CC=$ac_save_CC
3749 # AC_CACHE_VAL
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; } ;;
3754 xno)
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; } ;;
3761 esac
3762 if test "x$ac_cv_prog_cc_c89" != xno; then :
3766 ac_ext=c
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'
3778 am__doit:
3779 @echo this is the am__doit target
3780 .PHONY: am__doit
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; }
3785 am__include="#"
3786 am__quote=
3787 _am_result=none
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*)
3793 am__include=include
3794 am__quote=
3795 _am_result=GNU
3797 esac
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
3804 am__quote="\""
3805 _am_result=BSD
3807 esac
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"
3822 AMDEPBACKSLASH='\'
3824 if test "x$enable_dependency_tracking" != xno; then
3825 AMDEP_TRUE=
3826 AMDEP_FALSE='#'
3827 else
3828 AMDEP_TRUE='#'
3829 AMDEP_FALSE=
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
3840 else
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
3846 # in D'.
3847 mkdir conftest.dir
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
3851 cd 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
3857 # directory.
3858 mkdir sub
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`
3864 am__universal=false
3865 case " $depcc " in #(
3866 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3867 esac
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.
3877 : > sub/conftest.c
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
3883 done
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"
3892 case $depmode in
3893 gcc)
3894 # This depmode causes a compiler race in universal mode.
3895 test "$am__universal" = false || continue
3897 nosideeffect)
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
3901 continue
3902 else
3903 break
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}
3911 am__minus_obj=
3913 none) break ;;
3914 esac
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
3934 break
3937 done
3939 cd ..
3940 rm -rf conftest.dir
3941 else
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
3953 am__fastdepCC_TRUE=
3954 am__fastdepCC_FALSE='#'
3955 else
3956 am__fastdepCC_TRUE='#'
3957 am__fastdepCC_FALSE=
3961 ac_ext=c
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
3970 CPP=
3972 if test -z "$CPP"; then
3973 if test "${ac_cv_prog_CPP+set}" = set; then :
3974 $as_echo_n "(cached) " >&6
3975 else
3976 # Double quotes because CPP needs to be expanded
3977 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3979 ac_preproc_ok=false
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. */
3990 #ifdef __STDC__
3991 # include <limits.h>
3992 #else
3993 # include <assert.h>
3994 #endif
3995 Syntax error
3996 _ACEOF
3997 if ac_fn_c_try_cpp "$LINENO"; then :
3999 else
4000 # Broken: fails on valid input.
4001 continue
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>
4010 _ACEOF
4011 if ac_fn_c_try_cpp "$LINENO"; then :
4012 # Broken: success on invalid input.
4013 continue
4014 else
4015 # Passes both tests.
4016 ac_preproc_ok=:
4017 break
4019 rm -f conftest.err conftest.$ac_ext
4021 done
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 :
4025 break
4028 done
4029 ac_cv_prog_CPP=$CPP
4032 CPP=$ac_cv_prog_CPP
4033 else
4034 ac_cv_prog_CPP=$CPP
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4037 $as_echo "$CPP" >&6; }
4038 ac_preproc_ok=false
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. */
4049 #ifdef __STDC__
4050 # include <limits.h>
4051 #else
4052 # include <assert.h>
4053 #endif
4054 Syntax error
4055 _ACEOF
4056 if ac_fn_c_try_cpp "$LINENO"; then :
4058 else
4059 # Broken: fails on valid input.
4060 continue
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>
4069 _ACEOF
4070 if ac_fn_c_try_cpp "$LINENO"; then :
4071 # Broken: success on invalid input.
4072 continue
4073 else
4074 # Passes both tests.
4075 ac_preproc_ok=:
4076 break
4078 rm -f conftest.err conftest.$ac_ext
4080 done
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 :
4085 else
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; }
4092 ac_ext=c
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
4107 else
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
4120 *-*-*) ;;
4121 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4122 esac
4123 build=$ac_cv_build
4124 ac_save_IFS=$IFS; IFS='-'
4125 set x $ac_cv_build
4126 shift
4127 build_cpu=$1
4128 build_vendor=$2
4129 shift; shift
4130 # Remember, the first character of IFS is used to create $*,
4131 # except with old shells:
4132 build_os=$*
4133 IFS=$ac_save_IFS
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
4141 else
4142 if test "x$host_alias" = x; then
4143 ac_cv_host=$ac_cv_build
4144 else
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; }
4152 case $ac_cv_host in
4153 *-*-*) ;;
4154 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4155 esac
4156 host=$ac_cv_host
4157 ac_save_IFS=$IFS; IFS='-'
4158 set x $ac_cv_host
4159 shift
4160 host_cpu=$1
4161 host_vendor=$2
4162 shift; shift
4163 # Remember, the first character of IFS is used to create $*,
4164 # except with old shells:
4165 host_os=$*
4166 IFS=$ac_save_IFS
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
4176 else
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/xpg4/bin
4183 IFS=$as_save_IFS
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
4192 *GNU*)
4193 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4195 ac_count=0
4196 $as_echo_n 0123456789 >"conftest.in"
4197 while :
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
4213 done
4214 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4215 esac
4217 $ac_path_GREP_found && break 3
4218 done
4219 done
4220 done
4221 IFS=$as_save_IFS
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
4225 else
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
4239 else
4240 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4241 then ac_cv_path_EGREP="$GREP -E"
4242 else
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/xpg4/bin
4249 IFS=$as_save_IFS
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
4258 *GNU*)
4259 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4261 ac_count=0
4262 $as_echo_n 0123456789 >"conftest.in"
4263 while :
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
4279 done
4280 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4281 esac
4283 $ac_path_EGREP_found && break 3
4284 done
4285 done
4286 done
4287 IFS=$as_save_IFS
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
4291 else
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
4306 else
4307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4308 /* end confdefs.h. */
4309 #include <stdlib.h>
4310 #include <stdarg.h>
4311 #include <string.h>
4312 #include <float.h>
4315 main ()
4319 return 0;
4321 _ACEOF
4322 if ac_fn_c_try_compile "$LINENO"; then :
4323 ac_cv_header_stdc=yes
4324 else
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. */
4333 #include <string.h>
4335 _ACEOF
4336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4337 $EGREP "memchr" >/dev/null 2>&1; then :
4339 else
4340 ac_cv_header_stdc=no
4342 rm -f conftest*
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. */
4350 #include <stdlib.h>
4352 _ACEOF
4353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4354 $EGREP "free" >/dev/null 2>&1; then :
4356 else
4357 ac_cv_header_stdc=no
4359 rm -f conftest*
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 :
4367 else
4368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369 /* end confdefs.h. */
4370 #include <ctype.h>
4371 #include <stdlib.h>
4372 #if ((' ' & 0x0FF) == 0x020)
4373 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4374 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4375 #else
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))
4381 #endif
4383 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4385 main ()
4387 int i;
4388 for (i = 0; i < 256; i++)
4389 if (XOR (islower (i), ISLOWER (i))
4390 || toupper (i) != TOUPPER (i))
4391 return 2;
4392 return 0;
4394 _ACEOF
4395 if ac_fn_c_try_run "$LINENO"; then :
4397 else
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
4417 do :
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
4425 _ACEOF
4429 done
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
4436 else
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
4443 #endif
4444 typedef int dummy;
4446 _ACEOF
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.
4451 ac_arch=
4452 ac_prev=
4453 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4454 if test -n "$ac_prev"; then
4455 case $ac_word in
4456 i?86 | x86_64 | ppc | ppc64)
4457 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4458 ac_arch=$ac_word
4459 else
4460 ac_cv_c_bigendian=universal
4461 break
4464 esac
4465 ac_prev=
4466 elif test "x$ac_word" = "x-arch"; then
4467 ac_prev=arch
4469 done
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>
4480 main ()
4482 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4483 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4484 && LITTLE_ENDIAN)
4485 bogus endian macros
4486 #endif
4489 return 0;
4491 _ACEOF
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>
4500 main ()
4502 #if BYTE_ORDER != BIG_ENDIAN
4503 not big endian
4504 #endif
4507 return 0;
4509 _ACEOF
4510 if ac_fn_c_try_compile "$LINENO"; then :
4511 ac_cv_c_bigendian=yes
4512 else
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. */
4523 #include <limits.h>
4526 main ()
4528 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4529 bogus endian macros
4530 #endif
4533 return 0;
4535 _ACEOF
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. */
4540 #include <limits.h>
4543 main ()
4545 #ifndef _BIG_ENDIAN
4546 not big endian
4547 #endif
4550 return 0;
4552 _ACEOF
4553 if ac_fn_c_try_compile "$LINENO"; then :
4554 ac_cv_c_bigendian=yes
4555 else
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];
4582 extern int foo;
4585 main ()
4587 return use_ascii (foo) == use_ebcdic (foo);
4589 return 0;
4591 _ACEOF
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
4599 else
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
4606 else
4607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608 /* end confdefs.h. */
4609 $ac_includes_default
4611 main ()
4614 /* Are we little or big endian? From Harbison&Steele. */
4615 union
4617 long int l;
4618 char c[sizeof (long int)];
4619 } u;
4620 u.l = 1;
4621 return u.c[sizeof (long int) - 1] == 1;
4624 return 0;
4626 _ACEOF
4627 if ac_fn_c_try_run "$LINENO"; then :
4628 ac_cv_c_bigendian=no
4629 else
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 #(
4641 yes)
4642 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4643 ;; #(
4645 ;; #(
4646 universal)
4648 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4650 ;; #(
4652 as_fn_error "unknown endianness
4653 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4654 esac
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
4660 else
4661 ac_cv_c_inline=no
4662 for ac_kw in inline __inline__ __inline; do
4663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4664 /* end confdefs.h. */
4665 #ifndef __cplusplus
4666 typedef int foo_t;
4667 static $ac_kw foo_t static_foo () {return 0; }
4668 $ac_kw foo_t foo () {return 0; }
4669 #endif
4671 _ACEOF
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
4677 done
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
4684 inline | yes) ;;
4686 case $ac_cv_c_inline in
4687 no) ac_val=;;
4688 *) ac_val=$ac_cv_c_inline;;
4689 esac
4690 cat >>confdefs.h <<_ACEOF
4691 #ifndef __cplusplus
4692 #define inline $ac_val
4693 #endif
4694 _ACEOF
4696 esac
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
4702 else
4703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4704 /* end confdefs.h. */
4707 main ()
4709 /* FIXME: Include the comments suggested by Paul. */
4710 #ifndef __cplusplus
4711 /* Ultrix mips cc rejects this. */
4712 typedef int charset[2];
4713 const charset cs;
4714 /* SunOS 4.1.1 cc rejects this. */
4715 char const *const *pcpcc;
4716 char **ppc;
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
4723 expression */
4724 const char *g = "string";
4725 pcpcc = &g + (g ? g-g : 0);
4726 /* HPUX 7.0 cc rejects these. */
4727 ++pcpcc;
4728 ppc = (char**) pcpcc;
4729 pcpcc = (char const *const *) ppc;
4730 { /* SCO 3.2v4 cc rejects this. */
4731 char *t;
4732 char const *s = 0 ? (char *) 0 : (char const *) 0;
4734 *t++ = 0;
4735 if (s) return 0;
4737 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4738 int x[] = {25, 17};
4739 const int *foo = &x[0];
4740 ++foo;
4742 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4743 typedef const int *iptr;
4744 iptr p = 0;
4745 ++p;
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 */
4753 const int foo = 10;
4754 if (!foo) return 0;
4756 return !cs[0] && !zero.x;
4757 #endif
4760 return 0;
4762 _ACEOF
4763 if ac_fn_c_try_compile "$LINENO"; then :
4764 ac_cv_c_const=yes
4765 else
4766 ac_cv_c_const=no
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
4786 else
4787 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short int))" "ac_cv_sizeof_unsigned_short_int" "$ac_includes_default"; then :
4789 else
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; }; }
4796 else
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
4809 _ACEOF
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
4820 else
4821 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
4823 else
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; }; }
4830 else
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
4843 _ACEOF
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
4854 else
4855 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long int))" "ac_cv_sizeof_unsigned_long_int" "$ac_includes_default"; then :
4857 else
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; }; }
4864 else
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
4877 _ACEOF
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
4888 else
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 :
4891 else
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; }; }
4898 else
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
4911 _ACEOF
4914 for ac_func in llseek alarm gethostbyname inet_ntoa memset socket strerror strstr
4915 do :
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
4922 _ACEOF
4925 done
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 :
4930 else
4932 cat >>confdefs.h <<_ACEOF
4933 #define pid_t int
4934 _ACEOF
4938 for ac_header in vfork.h
4939 do :
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
4944 _ACEOF
4948 done
4950 for ac_func in fork vfork
4951 do :
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
4958 _ACEOF
4961 done
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
4968 else
4969 if test "$cross_compiling" = yes; then :
4970 ac_cv_func_fork_works=cross
4971 else
4972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4973 /* end confdefs.h. */
4974 $ac_includes_default
4976 main ()
4979 /* By Ruediger Kuhlmann. */
4980 return fork () < 0;
4983 return 0;
4985 _ACEOF
4986 if ac_fn_c_try_run "$LINENO"; then :
4987 ac_cv_func_fork_works=yes
4988 else
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; }
4999 else
5000 ac_cv_func_fork_works=$ac_cv_func_fork
5002 if test "x$ac_cv_func_fork_works" = xcross; then
5003 case $host in
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
5011 esac
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
5021 else
5022 if test "$cross_compiling" = yes; then :
5023 ac_cv_func_vfork_works=cross
5024 else
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>
5030 #ifdef HAVE_VFORK_H
5031 # include <vfork.h>
5032 #endif
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. */
5039 static void
5040 #ifdef __cplusplus
5041 sparc_address_test (int arg)
5042 # else
5043 sparc_address_test (arg) int arg;
5044 #endif
5046 static pid_t child;
5047 if (!child) {
5048 child = vfork ();
5049 if (child < 0) {
5050 perror ("vfork");
5051 _exit(2);
5053 if (!child) {
5054 arg = getpid();
5055 write(-1, "", 0);
5056 _exit (arg);
5062 main ()
5064 pid_t parent = getpid ();
5065 pid_t child;
5067 sparc_address_test (0);
5069 child = vfork ();
5071 if (child == 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. */
5081 pid_t
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)
5088 _exit(1);
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);
5095 } else {
5096 int status;
5097 struct stat st;
5099 while (wait(&status) != child)
5101 return (
5102 /* Was there some problem with vforking? */
5103 child < 0
5105 /* Did the child fail? (This shouldn't happen.) */
5106 || status
5108 /* Did the vfork/compiler bug occur? */
5109 || parent != getpid()
5111 /* Did the file descriptor bug occur? */
5112 || fstat(fileno(stdout), &st) != 0
5116 _ACEOF
5117 if ac_fn_c_try_run "$LINENO"; then :
5118 ac_cv_func_vfork_works=yes
5119 else
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
5141 else
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
5154 else
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; }
5161 case $host_os in
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; } ;;
5168 esac
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. */
5173 #define u32 int
5174 #define u64 int
5175 #define __be32 int
5176 #define __be64 int
5177 #include "nbd.h"
5178 #ifdef __GNUC__
5179 #define UNUSED __attribute__((__unused__))
5180 #else
5181 #define UNUSED
5182 #endif
5185 main ()
5187 int UNUSED foo=NBD_CMD_DISC
5189 return 0;
5191 _ACEOF
5192 if ac_fn_c_try_compile "$LINENO"; then :
5194 $as_echo "#define NBD_H_LOCAL 1" >>confdefs.h
5196 NBD_H='"nbd.h"'
5197 else
5198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h. */
5200 #define u32 int
5201 #define u64 int
5202 #define __be32 int
5203 #define __be64 int
5204 #include <linux/nbd.h>
5205 #ifdef __GNUC__
5206 #define UNUSED __attribute__((__unused__))
5207 #else
5208 #define UNUSED
5209 #endif
5212 main ()
5214 int UNUSED foo=NBD_CMD_DISC
5216 return 0;
5218 _ACEOF
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>'
5224 else
5225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5226 /* end confdefs.h. */
5227 #include <linux/nbd.h>
5228 #ifdef __GNUC__
5229 #define UNUSED __attribute__((__unused__))
5230 #else
5231 #define UNUSED
5232 #endif
5235 main ()
5237 int UNUSED foo=NBD_CMD_DISC
5239 return 0;
5241 _ACEOF
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>'
5247 else
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
5258 if test -f nbd.h
5259 then
5260 if test "$NBD_H" = '<linux/nbd.h>'
5261 then
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
5272 else
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. */
5280 #ifdef __cplusplus
5281 extern "C"
5282 #endif
5283 char bind ();
5285 main ()
5287 return bind ();
5289 return 0;
5291 _ACEOF
5292 for ac_lib in '' socket; do
5293 if test -z "$ac_lib"; then
5294 ac_res="none required"
5295 else
5296 ac_res=-l$ac_lib
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 \
5303 conftest$ac_exeext
5304 if test "${ac_cv_search_bind+set}" = set; then :
5305 break
5307 done
5308 if test "${ac_cv_search_bind+set}" = set; then :
5310 else
5311 ac_cv_search_bind=no
5313 rm conftest.$ac_ext
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"
5322 else
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
5330 else
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. */
5338 #ifdef __cplusplus
5339 extern "C"
5340 #endif
5341 char inet_ntoa ();
5343 main ()
5345 return inet_ntoa ();
5347 return 0;
5349 _ACEOF
5350 for ac_lib in '' nsl; do
5351 if test -z "$ac_lib"; then
5352 ac_res="none required"
5353 else
5354 ac_res=-l$ac_lib
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 \
5361 conftest$ac_exeext
5362 if test "${ac_cv_search_inet_ntoa+set}" = set; then :
5363 break
5365 done
5366 if test "${ac_cv_search_inet_ntoa+set}" = set; then :
5368 else
5369 ac_cv_search_inet_ntoa=no
5371 rm conftest.$ac_ext
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"
5380 else
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
5388 else
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. */
5396 #ifdef __cplusplus
5397 extern "C"
5398 #endif
5399 char daemon ();
5401 main ()
5403 return daemon ();
5405 return 0;
5407 _ACEOF
5408 for ac_lib in '' resolv; do
5409 if test -z "$ac_lib"; then
5410 ac_res="none required"
5411 else
5412 ac_res=-l$ac_lib
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 \
5419 conftest$ac_exeext
5420 if test "${ac_cv_search_daemon+set}" = set; then :
5421 break
5423 done
5424 if test "${ac_cv_search_daemon+set}" = set; then :
5426 else
5427 ac_cv_search_daemon=no
5429 rm conftest.$ac_ext
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"
5438 else
5439 as_fn_error "Could not find an implementation of the daemon() system call" "$LINENO" 5
5442 for ac_header in sys/mount.h
5443 do :
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
5450 _ACEOF
5454 done
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
5457 do :
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
5464 _ACEOF
5468 done
5470 # Check whether --enable-glibtest was given.
5471 if test "${enable_glibtest+set}" = set; then :
5472 enableval=$enable_glibtest;
5473 else
5474 enable_glibtest=yes
5478 pkg_config_args=glib-2.0
5479 for module in .
5481 case "$module" in
5482 gmodule)
5483 pkg_config_args="$pkg_config_args gmodule-2.0"
5485 gmodule-no-export)
5486 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
5488 gobject)
5489 pkg_config_args="$pkg_config_args gobject-2.0"
5491 gthread)
5492 pkg_config_args="$pkg_config_args gthread-2.0"
5494 gio*)
5495 pkg_config_args="$pkg_config_args $module-2.0"
5497 esac
5498 done
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
5510 else
5511 case $PKG_CONFIG in
5512 [\\/]* | ?:[\\/]*)
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
5517 for as_dir in $PATH
5519 IFS=$as_save_IFS
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
5525 break 2
5527 done
5528 done
5529 IFS=$as_save_IFS
5532 esac
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; }
5538 else
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
5553 else
5554 case $ac_pt_PKG_CONFIG in
5555 [\\/]* | ?:[\\/]*)
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
5560 for as_dir in $PATH
5562 IFS=$as_save_IFS
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
5568 break 2
5570 done
5571 done
5572 IFS=$as_save_IFS
5575 esac
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; }
5581 else
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
5587 PKG_CONFIG=""
5588 else
5589 case $cross_compiling:$ac_tool_warned in
5590 yes:)
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 ;;
5594 esac
5595 PKG_CONFIG=$ac_pt_PKG_CONFIG
5597 else
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; }
5609 else
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5611 $as_echo "no" >&6; }
5612 PKG_CONFIG=""
5617 no_glib=""
5619 if test "x$PKG_CONFIG" = x ; then
5620 no_glib=yes
5621 PKG_CONFIG=no
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"
5632 enable_glibtest=no
5635 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
5637 else
5638 no_glib=yes
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"
5660 rm -f conf.glibtest
5661 if test "$cross_compiling" = yes; then :
5662 echo $ac_n "cross compiling; assumed OK... $ac_c"
5663 else
5664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5665 /* end confdefs.h. */
5667 #include <glib.h>
5668 #include <stdio.h>
5669 #include <stdlib.h>
5672 main ()
5674 int major, minor, micro;
5675 char *tmp_version;
5676 int ignored;
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, &micro) != 3) {
5683 printf("%s, bad version string\n", "$min_glib_version");
5684 exit(1);
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);
5711 else
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)))
5717 return 0;
5719 else
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");
5726 printf("***\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");
5736 return 1;
5739 _ACEOF
5740 if ac_fn_c_try_run "$LINENO"; then :
5742 else
5743 no_glib=yes
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; }
5756 HAVE_GLIB=yes
5757 else
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/"
5763 else
5764 if test -f conf.glibtest ; then
5766 else
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. */
5775 #include <glib.h>
5776 #include <stdio.h>
5779 main ()
5781 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
5783 return 0;
5785 _ACEOF
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"
5793 echo "***"
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"
5796 else
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"
5806 GLIB_CFLAGS=""
5807 GLIB_LIBS=""
5808 GLIB_GENMARSHAL=""
5809 GOBJECT_QUERY=""
5810 GLIB_MKENUMS=""
5811 as_fn_error "Missing glib" "$LINENO" 5
5818 rm -f conf.glibtest
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
5824 else
5825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5826 /* end confdefs.h. */
5827 #include <sys/types.h>
5828 #include <sys/wait.h>
5829 #ifndef WEXITSTATUS
5830 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5831 #endif
5832 #ifndef WIFEXITED
5833 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5834 #endif
5837 main ()
5839 int s;
5840 wait (&s);
5841 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5843 return 0;
5845 _ACEOF
5846 if ac_fn_c_try_compile "$LINENO"; then :
5847 ac_cv_header_sys_wait_h=yes
5848 else
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 :
5864 else
5866 cat >>confdefs.h <<_ACEOF
5867 #define off_t long int
5868 _ACEOF
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 :
5875 else
5877 cat >>confdefs.h <<_ACEOF
5878 #define pid_t int
5879 _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
5902 # following values.
5904 _ACEOF
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
5914 case $ac_val in #(
5915 *${as_nl}*)
5916 case $ac_var in #(
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;} ;;
5919 esac
5920 case $ac_var in #(
5921 _ | IFS | as_nl) ;; #(
5922 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5923 *) { eval $ac_var=; unset $ac_var;} ;;
5924 esac ;;
5925 esac
5926 done
5928 (set) 2>&1 |
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 \.
5933 sed -n \
5934 "s/'/'\\\\''/g;
5935 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5936 ;; #(
5938 # `set' quotes correctly as required by POSIX, so do not add quotes.
5939 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5941 esac |
5942 sort
5944 sed '
5945 /^ac_cv_env_/b end
5946 t clear
5947 :clear
5948 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5949 t end
5950 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5951 :end' >>confcache
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
5958 else
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;}
5963 rm -f confcache
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
5971 ac_libobjs=
5972 ac_ltlibobjs=
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'
5981 done
5982 LIBOBJS=$ac_libobjs
5984 LTLIBOBJS=$ac_ltlibobjs
5987 if test -n "$EXEEXT"; then
5988 am__EXEEXT_TRUE=
5989 am__EXEEXT_FALSE='#'
5990 else
5991 am__EXEEXT_TRUE='#'
5992 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}
6010 ac_write_fail=0
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;}
6015 as_write_fail=0
6016 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6017 #! $SHELL
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.
6023 debug=false
6024 ac_cs_recheck=false
6025 ac_cs_silent=false
6027 SHELL=\${CONFIG_SHELL-$SHELL}
6028 export SHELL
6029 _ASEOF
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 :
6038 emulate sh
6039 NULLCMD=:
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
6044 else
6045 case `(set -o) 2>/dev/null` in #(
6046 *posix*) :
6047 set -o posix ;; #(
6048 *) :
6050 esac
6054 as_nl='
6056 export as_nl
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'
6070 else
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'
6074 else
6075 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6076 as_echo_n_body='eval
6077 arg=$1;
6078 case $arg in #(
6079 *"$as_nl"*)
6080 expr "X$arg" : "X\\(.*\\)$as_nl";
6081 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6082 esac;
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'
6088 export as_echo_body
6089 as_echo='sh -c $as_echo_body as_echo'
6092 # The user is always right.
6093 if test "${PATH_SEPARATOR+set}" != set; then
6094 PATH_SEPARATOR=:
6095 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6096 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6097 PATH_SEPARATOR=';'
6102 # IFS
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.)
6107 IFS=" "" $as_nl"
6109 # Find who we are. Look in the path if we contain no directory separator.
6110 case $0 in #((
6111 *[\\/]* ) as_myself=$0 ;;
6112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6113 for as_dir in $PATH
6115 IFS=$as_save_IFS
6116 test -z "$as_dir" && as_dir=.
6117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6118 done
6119 IFS=$as_save_IFS
6122 esac
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
6126 as_myself=$0
6128 if test ! -f "$as_myself"; then
6129 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6130 exit 1
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 || :
6140 done
6141 PS1='$ '
6142 PS2='> '
6143 PS4='+ '
6145 # NLS nuisances.
6146 LC_ALL=C
6147 export LC_ALL
6148 LANGUAGE=C
6149 export LANGUAGE
6151 # CDPATH.
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.
6160 as_fn_error ()
6162 as_status=$?; test $as_status -eq 0 && as_status=1
6163 if test "$3"; then
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
6169 } # as_fn_error
6172 # as_fn_set_status STATUS
6173 # -----------------------
6174 # Set $? to STATUS, without forking.
6175 as_fn_set_status ()
6177 return $1
6178 } # as_fn_set_status
6180 # as_fn_exit STATUS
6181 # -----------------
6182 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6183 as_fn_exit ()
6185 set +e
6186 as_fn_set_status $1
6187 exit $1
6188 } # as_fn_exit
6190 # as_fn_unset VAR
6191 # ---------------
6192 # Portably unset VAR.
6193 as_fn_unset ()
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
6203 # implementations.
6204 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6205 eval 'as_fn_append ()
6207 eval $1+=\$2
6209 else
6210 as_fn_append ()
6212 eval $1=\$$1\$2
6214 fi # 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 ()
6224 as_val=$(( $* ))
6226 else
6227 as_fn_arith ()
6229 as_val=`expr "$@" || test $? -eq 1`
6231 fi # as_fn_arith
6234 if expr a : '\(a\)' >/dev/null 2>&1 &&
6235 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6236 as_expr=expr
6237 else
6238 as_expr=false
6241 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6242 as_basename=basename
6243 else
6244 as_basename=false
6247 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6248 as_dirname=dirname
6249 else
6250 as_dirname=false
6253 as_me=`$as_basename -- "$0" ||
6254 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6255 X"$0" : 'X\(//\)$' \| \
6256 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6257 $as_echo X/"$0" |
6258 sed '/^.*\/\([^/][^/]*\)\/*$/{
6259 s//\1/
6262 /^X\/\(\/\/\)$/{
6263 s//\1/
6266 /^X\/\(\/\).*/{
6267 s//\1/
6270 s/.*/./; q'`
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 #(((((
6281 -n*)
6282 case `echo 'xy\c'` in
6283 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6284 xy) ECHO_C='\c';;
6285 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6286 ECHO_T=' ';;
6287 esac;;
6289 ECHO_N='-n';;
6290 esac
6292 rm -f conf$$ conf$$.exe conf$$.file
6293 if test -d conf$$.dir; then
6294 rm -f conf$$.dir/conf$$.file
6295 else
6296 rm -f conf$$.dir
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
6301 as_ln_s='ln -s'
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 ||
6307 as_ln_s='cp -p'
6308 elif ln conf$$.file conf$$ 2>/dev/null; then
6309 as_ln_s=ln
6310 else
6311 as_ln_s='cp -p'
6313 else
6314 as_ln_s='cp -p'
6316 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6317 rmdir conf$$.dir 2>/dev/null
6320 # as_fn_mkdir_p
6321 # -------------
6322 # Create "$as_dir" as a directory, including parents if necessary.
6323 as_fn_mkdir_p ()
6326 case $as_dir in #(
6327 -*) as_dir=./$as_dir;;
6328 esac
6329 test -d "$as_dir" || eval $as_mkdir_p || {
6330 as_dirs=
6331 while :; do
6332 case $as_dir in #(
6333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6334 *) as_qdir=$as_dir;;
6335 esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6344 s//\1/
6347 /^X\(\/\/\)[^/].*/{
6348 s//\1/
6351 /^X\(\/\/\)$/{
6352 s//\1/
6355 /^X\(\/\).*/{
6356 s//\1/
6359 s/.*/./; q'`
6360 test -d "$as_dir" && break
6361 done
6362 test -z "$as_dirs" || eval "mkdir $as_dirs"
6363 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
6366 } # as_fn_mkdir_p
6367 if mkdir -p . 2>/dev/null; then
6368 as_mkdir_p='mkdir -p "$as_dir"'
6369 else
6370 test -d ./-p && rmdir ./-p
6371 as_mkdir_p=false
6374 if test -x / >/dev/null 2>&1; then
6375 as_test_x='test -x'
6376 else
6377 if ls -dL / >/dev/null 2>&1; then
6378 as_ls_L_option=L
6379 else
6380 as_ls_L_option=
6382 as_test_x='
6383 eval sh -c '\''
6384 if test -d "$1"; then
6385 test -d "$1/.";
6386 else
6387 case $1 in #(
6388 -*)set "./$1";;
6389 esac;
6390 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6391 ???[sx]*):;;*)false;;esac;fi
6392 '\'' sh
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'"
6404 exec 6>&1
6405 ## ----------------------------------- ##
6406 ## Main body of $CONFIG_STATUS script. ##
6407 ## ----------------------------------- ##
6408 _ASEOF
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.
6415 ac_log="
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
6423 $ $0 $@
6425 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6428 _ACEOF
6430 case $ac_config_files in *"
6431 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6432 esac
6434 case $ac_config_headers in *"
6435 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6436 esac
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"
6445 _ACEOF
6447 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6448 ac_cs_usage="\
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:
6467 $config_files
6469 Configuration headers:
6470 $config_headers
6472 Configuration commands:
6473 $config_commands
6475 Report bugs to <wouter@debian.org>."
6477 _ACEOF
6478 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6479 ac_cs_version="\\
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."
6488 ac_pwd='$ac_pwd'
6489 srcdir='$srcdir'
6490 INSTALL='$INSTALL'
6491 MKDIR_P='$MKDIR_P'
6492 AWK='$AWK'
6493 test -n "\$AWK" || AWK=awk
6494 _ACEOF
6496 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6497 # The default lists apply if the user does not specify any file.
6498 ac_need_defaults=:
6499 while test $# != 0
6501 case $1 in
6502 --*=*)
6503 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6504 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6505 ac_shift=:
6508 ac_option=$1
6509 ac_optarg=$2
6510 ac_shift=shift
6512 esac
6514 case $ac_option in
6515 # Handling of the options.
6516 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6517 ac_cs_recheck=: ;;
6518 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6519 $as_echo "$ac_cs_version"; exit ;;
6520 --debug | --debu | --deb | --de | --d | -d )
6521 debug=: ;;
6522 --file | --fil | --fi | --f )
6523 $ac_shift
6524 case $ac_optarg in
6525 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6526 esac
6527 as_fn_append CONFIG_FILES " '$ac_optarg'"
6528 ac_need_defaults=false;;
6529 --header | --heade | --head | --hea )
6530 $ac_shift
6531 case $ac_optarg in
6532 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6533 esac
6534 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6535 ac_need_defaults=false;;
6536 --he | --h)
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)
6544 ac_cs_silent=: ;;
6546 # This is an error.
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 ;;
6553 esac
6554 shift
6555 done
6557 ac_configure_extra_args=
6559 if $ac_cs_silent; then
6560 exec 6>/dev/null
6561 ac_configure_extra_args="$ac_configure_extra_args --silent"
6564 _ACEOF
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
6568 shift
6569 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6570 CONFIG_SHELL='$SHELL'
6571 export CONFIG_SHELL
6572 exec "\$@"
6575 _ACEOF
6576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6577 exec 5>>config.log
6579 echo
6580 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6581 ## Running $as_me. ##
6582 _ASBOX
6583 $as_echo "$ac_log"
6584 } >&5
6586 _ACEOF
6587 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6589 # INIT-COMMANDS
6591 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6593 _ACEOF
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;;
6610 esac
6611 done
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'.
6630 $debug ||
6632 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"
6643 } ||
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
6664 ac_cs_awk_cr='\r'
6665 else
6666 ac_cs_awk_cr=$ac_cr
6669 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6670 _ACEOF
6674 echo "cat >conf$$subs.awk <<_ACEOF" &&
6675 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6676 echo "_ACEOF"
6677 } >conf$$subs.sh ||
6678 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6679 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6680 ac_delim='%!_!# '
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
6687 break
6688 elif $ac_last_try; then
6689 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6690 else
6691 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6693 done
6694 rm -f conf$$subs.sh
6696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6697 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6698 _ACEOF
6699 sed -n '
6701 s/^/S["/; s/!.*/"]=/
6704 s/^[^!]*!//
6705 :repl
6706 t repl
6707 s/'"$ac_delim"'$//
6708 t delim
6711 s/\(.\{148\}\).*/\1/
6712 t more1
6713 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6716 b repl
6717 :more1
6718 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6721 s/.\{148\}//
6722 t nl
6723 :delim
6725 s/\(.\{148\}\).*/\1/
6726 t more2
6727 s/["\\]/\\&/g; s/^/"/; s/$/"/
6730 :more2
6731 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6734 s/.\{148\}//
6735 t delim
6736 ' <conf$$subs.awk | sed '
6737 /^[^""]/{
6739 s/\n//
6741 ' >>$CONFIG_STATUS || ac_write_fail=1
6742 rm -f conf$$subs.awk
6743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6744 _ACAWK
6745 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6746 for (key in S) S_is_set[key] = 1
6747 FS = "\a"
6751 line = $ 0
6752 nfields = split(line, field, "@")
6753 substed = 0
6754 len = length(field[1])
6755 for (i = 2; i < nfields; i++) {
6756 key = field[i]
6757 keylen = length(key)
6758 if (S_is_set[key]) {
6759 value = S[key]
6760 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6761 len += length(value) + length(field[++i])
6762 substed = 1
6763 } else
6764 len += 1 + keylen
6767 print line
6770 _ACAWK
6771 _ACEOF
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"
6775 else
6777 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6778 || as_fn_error "could not setup config files machinery" "$LINENO" 5
6779 _ACEOF
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[ ]*=/{
6787 s/:*\$(srcdir):*/:/
6788 s/:*\${srcdir}:*/:/
6789 s/:*@srcdir@:*/:/
6790 s/^\([^=]*=[ ]*\):*/\1/
6791 s/:*$//
6792 s/^[^=]*=[ ]*$//
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 ||
6804 BEGIN {
6805 _ACEOF
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.
6813 ac_delim='%!_!# '
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
6817 break
6818 elif $ac_last_try; then
6819 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
6820 else
6821 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6823 done
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]*
6830 sed -n '
6831 s/.\{148\}/&'"$ac_delim"'/g
6832 t rset
6833 :rset
6834 s/^[ ]*#[ ]*define[ ][ ]*/ /
6835 t def
6837 :def
6838 s/\\$//
6839 t bsnl
6840 s/["\\]/\\&/g
6841 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6842 D["\1"]=" \3"/p
6843 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6845 :bsnl
6846 s/["\\]/\\&/g
6847 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6848 D["\1"]=" \3\\\\\\n"\\/p
6849 t cont
6850 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6851 t cont
6853 :cont
6855 s/.\{148\}/&'"$ac_delim"'/g
6856 t clear
6857 :clear
6858 s/\\$//
6859 t bsnlc
6860 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6862 :bsnlc
6863 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6864 b cont
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
6871 FS = "\a"
6873 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6874 line = \$ 0
6875 split(line, arg, " ")
6876 if (arg[1] == "#") {
6877 defundef = arg[2]
6878 mac1 = arg[3]
6879 } else {
6880 defundef = substr(arg[1], 2)
6881 mac1 = arg[2]
6883 split(mac1, mac2, "(") #)
6884 macro = mac2[1]
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]
6889 next
6890 } else {
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, "*/"
6896 next
6900 { print }
6901 _ACAWK
6902 _ACEOF
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"
6909 shift
6910 for ac_tag
6912 case $ac_tag in
6913 :[FHLC]) ac_mode=$ac_tag; continue;;
6914 esac
6915 case $ac_mode$ac_tag in
6916 :[FHL]*:*);;
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;;
6920 esac
6921 ac_save_IFS=$IFS
6922 IFS=:
6923 set x $ac_tag
6924 IFS=$ac_save_IFS
6925 shift
6926 ac_file=$1
6927 shift
6929 case $ac_mode in
6930 :L) ac_source=$1;;
6931 :[FH])
6932 ac_file_inputs=
6933 for ac_f
6935 case $ac_f 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 `:'.
6940 test -f "$ac_f" ||
6941 case $ac_f in
6942 [\\/$]*) false;;
6943 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6944 esac ||
6945 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6946 esac
6947 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6948 as_fn_append ac_file_inputs " '$ac_f'"
6949 done
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'
6956 `' by configure.'
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;;
6968 esac
6970 case $ac_tag in
6971 *:-:* | *:-) cat >"$tmp/stdin" \
6972 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
6973 esac
6975 esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6984 s//\1/
6987 /^X\(\/\/\)[^/].*/{
6988 s//\1/
6991 /^X\(\/\/\)$/{
6992 s//\1/
6995 /^X\(\/\).*/{
6996 s//\1/
6999 s/.*/./; q'`
7000 as_dir="$ac_dir"; as_fn_mkdir_p
7001 ac_builddir=.
7003 case "$ac_dir" in
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/ ;;
7012 esac ;;
7013 esac
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
7019 case $srcdir in
7020 .) # We are building in place.
7021 ac_srcdir=.
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 ;;
7028 *) # Relative name.
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 ;;
7032 esac
7033 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7036 case $ac_mode in
7039 # CONFIG_FILE
7042 case $INSTALL in
7043 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7044 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7045 esac
7046 ac_MKDIR_P=$MKDIR_P
7047 case $MKDIR_P in
7048 [\\/$]* | ?:[\\/]* ) ;;
7049 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7050 esac
7051 _ACEOF
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=
7057 ac_sed_dataroot='
7058 /datarootdir/ {
7062 /@datadir@/p
7063 /@docdir@/p
7064 /@infodir@/p
7065 /@localedir@/p
7066 /@mandir@/p'
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;}
7072 _ACEOF
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' ;;
7081 esac
7082 _ACEOF
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
7089 $extrasub
7090 _ACEOF
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;}
7119 rm -f "$tmp/stdin"
7120 case $ac_file in
7121 -) cat "$tmp/out" && rm -f "$tmp/out";;
7122 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7123 esac \
7124 || as_fn_error "could not create $ac_file" "$LINENO" 5
7128 # CONFIG_HEADER
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;}
7139 else
7140 rm -f "$ac_file"
7141 mv "$tmp/config.h" "$ac_file" \
7142 || as_fn_error "could not create $ac_file" "$LINENO" 5
7144 else
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.
7150 _am_arg="$ac_file"
7151 _am_stamp_count=1
7152 for _am_header in $config_headers :; do
7153 case $_am_header in
7154 $_am_arg | $_am_arg:* )
7155 break ;;
7157 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7158 esac
7159 done
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7167 s//\1/
7170 /^X\(\/\/\)[^/].*/{
7171 s//\1/
7174 /^X\(\/\/\)$/{
7175 s//\1/
7178 /^X\(\/\).*/{
7179 s//\1/
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;}
7188 esac
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 ;;
7199 esac
7200 shift
7201 for mf
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 ||
7218 $as_echo X"$mf" |
7219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7220 s//\1/
7223 /^X\(\/\/\)[^/].*/{
7224 s//\1/
7227 /^X\(\/\/\)$/{
7228 s//\1/
7231 /^X\(\/\).*/{
7232 s//\1/
7235 s/.*/./; q'`
7236 else
7237 continue
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
7251 # expansion.
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 ||
7262 $as_echo X"$file" |
7263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7264 s//\1/
7267 /^X\(\/\/\)[^/].*/{
7268 s//\1/
7271 /^X\(\/\/\)$/{
7272 s//\1/
7275 /^X\(\/\).*/{
7276 s//\1/
7279 s/.*/./; q'`
7280 as_dir=$dirpart/$fdir; as_fn_mkdir_p
7281 # echo "creating $dirpart/$file"
7282 echo '# dummy' > "$dirpart/$file"
7283 done
7284 done
7288 esac
7289 done # for ac_tag
7292 as_fn_exit 0
7293 _ACEOF
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
7309 ac_cs_success=:
7310 ac_config_status_args=
7311 test "$silent" = yes &&
7312 ac_config_status_args="$ac_config_status_args --quiet"
7313 exec 5>/dev/null
7314 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7315 exec 5>>config.log
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;}