Fix leaks
[nbd.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for nbd 2.9.15.
4 #
5 # Report bugs to <wouter@debian.org>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 # Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 case $0 in #((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104
105      ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there.  '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140   emulate sh
141   NULLCMD=:
142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143   # is contrary to our usage.  Disable this feature.
144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
145   setopt NO_GLOB_SUBST
146 else
147   case \`(set -o) 2>/dev/null\` in #(
148   *posix*) :
149     set -o posix ;; #(
150   *) :
151      ;;
152 esac
153 fi
154 "
155   as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169   exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177   if (eval "$as_required") 2>/dev/null; then :
178   as_have_required=yes
179 else
180   as_have_required=no
181 fi
182   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
189   IFS=$as_save_IFS
190   test -z "$as_dir" && as_dir=.
191   as_found=:
192   case $as_dir in #(
193          /*)
194            for as_base in sh bash ksh sh5; do
195              # Try only shells that exist, to save several forks.
196              as_shell=$as_dir/$as_base
197              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   CONFIG_SHELL=$as_shell as_have_required=yes
200                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201   break 2
202 fi
203 fi
204            done;;
205        esac
206   as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210   CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
213
214
215       if test "x$CONFIG_SHELL" != x; then :
216   # We cannot yet assume a decent shell, so we have to provide a
217         # neutralization value for shells without unset; and this also
218         # works around shells that cannot unset nonexistent variables.
219         BASH_ENV=/dev/null
220         ENV=/dev/null
221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222         export CONFIG_SHELL
223         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 fi
225
226     if test x$as_have_required = xno; then :
227   $as_echo "$0: This script requires a shell more modern than all"
228   $as_echo "$0: the shells that I found on your system."
229   if test x${ZSH_VERSION+set} = xset ; then
230     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232   else
233     $as_echo "$0: Please tell bug-autoconf@gnu.org and wouter@debian.org
234 $0: about your system, including any error possibly output
235 $0: before this message. Then install a modern shell, or
236 $0: manually run the script under such a shell if you do
237 $0: have one."
238   fi
239   exit 1
240 fi
241 fi
242 fi
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
248
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
256 {
257   { eval $1=; unset $1;}
258 }
259 as_unset=as_fn_unset
260
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
265 {
266   return $1
267 } # as_fn_set_status
268
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
273 {
274   set +e
275   as_fn_set_status $1
276   exit $1
277 } # as_fn_exit
278
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
283 {
284
285   case $as_dir in #(
286   -*) as_dir=./$as_dir;;
287   esac
288   test -d "$as_dir" || eval $as_mkdir_p || {
289     as_dirs=
290     while :; do
291       case $as_dir in #(
292       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293       *) as_qdir=$as_dir;;
294       esac
295       as_dirs="'$as_qdir' $as_dirs"
296       as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298          X"$as_dir" : 'X\(//\)[^/]' \| \
299          X"$as_dir" : 'X\(//\)$' \| \
300          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303             s//\1/
304             q
305           }
306           /^X\(\/\/\)[^/].*/{
307             s//\1/
308             q
309           }
310           /^X\(\/\/\)$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\).*/{
315             s//\1/
316             q
317           }
318           s/.*/./; q'`
319       test -d "$as_dir" && break
320     done
321     test -z "$as_dirs" || eval "mkdir $as_dirs"
322   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
324
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333   eval 'as_fn_append ()
334   {
335     eval $1+=\$2
336   }'
337 else
338   as_fn_append ()
339   {
340     eval $1=\$$1\$2
341   }
342 fi # as_fn_append
343
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350   eval 'as_fn_arith ()
351   {
352     as_val=$(( $* ))
353   }'
354 else
355   as_fn_arith ()
356   {
357     as_val=`expr "$@" || test $? -eq 1`
358   }
359 fi # as_fn_arith
360
361
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
367 as_fn_error ()
368 {
369   as_status=$?; test $as_status -eq 0 && as_status=1
370   if test "$3"; then
371     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373   fi
374   $as_echo "$as_me: error: $1" >&2
375   as_fn_exit $as_status
376 } # as_fn_error
377
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379    test "X`expr 00001 : '.*\(...\)'`" = X001; then
380   as_expr=expr
381 else
382   as_expr=false
383 fi
384
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386   as_basename=basename
387 else
388   as_basename=false
389 fi
390
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392   as_dirname=dirname
393 else
394   as_dirname=false
395 fi
396
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399          X"$0" : 'X\(//\)$' \| \
400          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402     sed '/^.*\/\([^/][^/]*\)\/*$/{
403             s//\1/
404             q
405           }
406           /^X\/\(\/\/\)$/{
407             s//\1/
408             q
409           }
410           /^X\/\(\/\).*/{
411             s//\1/
412             q
413           }
414           s/.*/./; q'`
415
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424   as_lineno_1=$LINENO as_lineno_1a=$LINENO
425   as_lineno_2=$LINENO as_lineno_2a=$LINENO
426   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429   sed -n '
430     p
431     /[$]LINENO/=
432   ' <$as_myself |
433     sed '
434       s/[$]LINENO.*/&-/
435       t lineno
436       b
437       :lineno
438       N
439       :loop
440       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441       t loop
442       s/-\n.*//
443     ' >$as_me.lineno &&
444   chmod +x "$as_me.lineno" ||
445     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447   # Don't try to exec as it changes $[0], causing all sort of problems
448   # (the dirname of $[0] is not the place where we might find the
449   # original and so on.  Autoconf is especially sensitive to this).
450   . "./$as_me.lineno"
451   # Exit status is that of the last command.
452   exit
453 }
454
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458   case `echo 'xy\c'` in
459   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
460   xy)  ECHO_C='\c';;
461   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462        ECHO_T=' ';;
463   esac;;
464 *)
465   ECHO_N='-n';;
466 esac
467
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470   rm -f conf$$.dir/conf$$.file
471 else
472   rm -f conf$$.dir
473   mkdir conf$$.dir 2>/dev/null
474 fi
475 if (echo >conf$$.file) 2>/dev/null; then
476   if ln -s conf$$.file conf$$ 2>/dev/null; then
477     as_ln_s='ln -s'
478     # ... but there are two gotchas:
479     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481     # In both cases, we have to default to `cp -p'.
482     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483       as_ln_s='cp -p'
484   elif ln conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s=ln
486   else
487     as_ln_s='cp -p'
488   fi
489 else
490   as_ln_s='cp -p'
491 fi
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
494
495 if mkdir -p . 2>/dev/null; then
496   as_mkdir_p='mkdir -p "$as_dir"'
497 else
498   test -d ./-p && rmdir ./-p
499   as_mkdir_p=false
500 fi
501
502 if test -x / >/dev/null 2>&1; then
503   as_test_x='test -x'
504 else
505   if ls -dL / >/dev/null 2>&1; then
506     as_ls_L_option=L
507   else
508     as_ls_L_option=
509   fi
510   as_test_x='
511     eval sh -c '\''
512       if test -d "$1"; then
513         test -d "$1/.";
514       else
515         case $1 in #(
516         -*)set "./$1";;
517         esac;
518         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519         ???[sx]*):;;*)false;;esac;fi
520     '\'' sh
521   '
522 fi
523 as_executable_p=$as_test_x
524
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532 test -n "$DJDIR" || exec 7<&0 </dev/null
533 exec 6>&1
534
535 # Name of the host.
536 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
539
540 #
541 # Initializations.
542 #
543 ac_default_prefix=/usr/local
544 ac_clean_files=
545 ac_config_libobj_dir=.
546 LIBOBJS=
547 cross_compiling=no
548 subdirs=
549 MFLAGS=
550 MAKEFLAGS=
551
552 # Identity of this package.
553 PACKAGE_NAME='nbd'
554 PACKAGE_TARNAME='nbd'
555 PACKAGE_VERSION='2.9.15'
556 PACKAGE_STRING='nbd 2.9.15'
557 PACKAGE_BUGREPORT='wouter@debian.org'
558 PACKAGE_URL=''
559
560 # Factoring default headers for most tests.
561 ac_includes_default="\
562 #include <stdio.h>
563 #ifdef HAVE_SYS_TYPES_H
564 # include <sys/types.h>
565 #endif
566 #ifdef HAVE_SYS_STAT_H
567 # include <sys/stat.h>
568 #endif
569 #ifdef STDC_HEADERS
570 # include <stdlib.h>
571 # include <stddef.h>
572 #else
573 # ifdef HAVE_STDLIB_H
574 #  include <stdlib.h>
575 # endif
576 #endif
577 #ifdef HAVE_STRING_H
578 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
579 #  include <memory.h>
580 # endif
581 # include <string.h>
582 #endif
583 #ifdef HAVE_STRINGS_H
584 # include <strings.h>
585 #endif
586 #ifdef HAVE_INTTYPES_H
587 # include <inttypes.h>
588 #endif
589 #ifdef HAVE_STDINT_H
590 # include <stdint.h>
591 #endif
592 #ifdef HAVE_UNISTD_H
593 # include <unistd.h>
594 #endif"
595
596 ac_subst_vars='am__EXEEXT_FALSE
597 am__EXEEXT_TRUE
598 LTLIBOBJS
599 LIBOBJS
600 nbd_server_CPPFLAGS
601 sbin_PROGRAMS
602 GLIB_MKENUMS
603 GOBJECT_QUERY
604 GLIB_GENMARSHAL
605 GLIB_LIBS
606 GLIB_CFLAGS
607 PKG_CONFIG
608 EGREP
609 GREP
610 host_os
611 host_vendor
612 host_cpu
613 host
614 build_os
615 build_vendor
616 build_cpu
617 build
618 CPP
619 am__fastdepCC_FALSE
620 am__fastdepCC_TRUE
621 CCDEPMODE
622 AMDEPBACKSLASH
623 AMDEP_FALSE
624 AMDEP_TRUE
625 am__quote
626 am__include
627 DEPDIR
628 OBJEXT
629 EXEEXT
630 ac_ct_CC
631 CPPFLAGS
632 LDFLAGS
633 CFLAGS
634 CC
635 MAINT
636 MAINTAINER_MODE_FALSE
637 MAINTAINER_MODE_TRUE
638 am__untar
639 am__tar
640 AMTAR
641 am__leading_dot
642 SET_MAKE
643 AWK
644 mkdir_p
645 MKDIR_P
646 INSTALL_STRIP_PROGRAM
647 STRIP
648 install_sh
649 MAKEINFO
650 AUTOHEADER
651 AUTOMAKE
652 AUTOCONF
653 ACLOCAL
654 VERSION
655 PACKAGE
656 CYGPATH_W
657 am__isrc
658 INSTALL_DATA
659 INSTALL_SCRIPT
660 INSTALL_PROGRAM
661 target_alias
662 host_alias
663 build_alias
664 LIBS
665 ECHO_T
666 ECHO_N
667 ECHO_C
668 DEFS
669 mandir
670 localedir
671 libdir
672 psdir
673 pdfdir
674 dvidir
675 htmldir
676 infodir
677 docdir
678 oldincludedir
679 includedir
680 localstatedir
681 sharedstatedir
682 sysconfdir
683 datadir
684 datarootdir
685 libexecdir
686 sbindir
687 bindir
688 program_transform_name
689 prefix
690 exec_prefix
691 PACKAGE_URL
692 PACKAGE_BUGREPORT
693 PACKAGE_STRING
694 PACKAGE_VERSION
695 PACKAGE_TARNAME
696 PACKAGE_NAME
697 PATH_SEPARATOR
698 SHELL'
699 ac_subst_files=''
700 ac_user_opts='
701 enable_option_checking
702 enable_maintainer_mode
703 enable_lfs
704 enable_syslog
705 enable_debug
706 enable_sdp
707 enable_dependency_tracking
708 enable_glibtest
709 '
710       ac_precious_vars='build_alias
711 host_alias
712 target_alias
713 CC
714 CFLAGS
715 LDFLAGS
716 LIBS
717 CPPFLAGS
718 CPP
719 PKG_CONFIG'
720
721
722 # Initialize some variables set by options.
723 ac_init_help=
724 ac_init_version=false
725 ac_unrecognized_opts=
726 ac_unrecognized_sep=
727 # The variables have the same names as the options, with
728 # dashes changed to underlines.
729 cache_file=/dev/null
730 exec_prefix=NONE
731 no_create=
732 no_recursion=
733 prefix=NONE
734 program_prefix=NONE
735 program_suffix=NONE
736 program_transform_name=s,x,x,
737 silent=
738 site=
739 srcdir=
740 verbose=
741 x_includes=NONE
742 x_libraries=NONE
743
744 # Installation directory options.
745 # These are left unexpanded so users can "make install exec_prefix=/foo"
746 # and all the variables that are supposed to be based on exec_prefix
747 # by default will actually change.
748 # Use braces instead of parens because sh, perl, etc. also accept them.
749 # (The list follows the same order as the GNU Coding Standards.)
750 bindir='${exec_prefix}/bin'
751 sbindir='${exec_prefix}/sbin'
752 libexecdir='${exec_prefix}/libexec'
753 datarootdir='${prefix}/share'
754 datadir='${datarootdir}'
755 sysconfdir='${prefix}/etc'
756 sharedstatedir='${prefix}/com'
757 localstatedir='${prefix}/var'
758 includedir='${prefix}/include'
759 oldincludedir='/usr/include'
760 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
761 infodir='${datarootdir}/info'
762 htmldir='${docdir}'
763 dvidir='${docdir}'
764 pdfdir='${docdir}'
765 psdir='${docdir}'
766 libdir='${exec_prefix}/lib'
767 localedir='${datarootdir}/locale'
768 mandir='${datarootdir}/man'
769
770 ac_prev=
771 ac_dashdash=
772 for ac_option
773 do
774   # If the previous option needs an argument, assign it.
775   if test -n "$ac_prev"; then
776     eval $ac_prev=\$ac_option
777     ac_prev=
778     continue
779   fi
780
781   case $ac_option in
782   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
783   *)    ac_optarg=yes ;;
784   esac
785
786   # Accept the important Cygnus configure options, so we can diagnose typos.
787
788   case $ac_dashdash$ac_option in
789   --)
790     ac_dashdash=yes ;;
791
792   -bindir | --bindir | --bindi | --bind | --bin | --bi)
793     ac_prev=bindir ;;
794   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
795     bindir=$ac_optarg ;;
796
797   -build | --build | --buil | --bui | --bu)
798     ac_prev=build_alias ;;
799   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
800     build_alias=$ac_optarg ;;
801
802   -cache-file | --cache-file | --cache-fil | --cache-fi \
803   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
804     ac_prev=cache_file ;;
805   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
806   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
807     cache_file=$ac_optarg ;;
808
809   --config-cache | -C)
810     cache_file=config.cache ;;
811
812   -datadir | --datadir | --datadi | --datad)
813     ac_prev=datadir ;;
814   -datadir=* | --datadir=* | --datadi=* | --datad=*)
815     datadir=$ac_optarg ;;
816
817   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
818   | --dataroo | --dataro | --datar)
819     ac_prev=datarootdir ;;
820   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
821   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
822     datarootdir=$ac_optarg ;;
823
824   -disable-* | --disable-*)
825     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
826     # Reject names that are not valid shell variable names.
827     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
828       as_fn_error "invalid feature name: $ac_useropt"
829     ac_useropt_orig=$ac_useropt
830     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
831     case $ac_user_opts in
832       *"
833 "enable_$ac_useropt"
834 "*) ;;
835       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
836          ac_unrecognized_sep=', ';;
837     esac
838     eval enable_$ac_useropt=no ;;
839
840   -docdir | --docdir | --docdi | --doc | --do)
841     ac_prev=docdir ;;
842   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
843     docdir=$ac_optarg ;;
844
845   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
846     ac_prev=dvidir ;;
847   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
848     dvidir=$ac_optarg ;;
849
850   -enable-* | --enable-*)
851     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
852     # Reject names that are not valid shell variable names.
853     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
854       as_fn_error "invalid feature name: $ac_useropt"
855     ac_useropt_orig=$ac_useropt
856     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
857     case $ac_user_opts in
858       *"
859 "enable_$ac_useropt"
860 "*) ;;
861       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
862          ac_unrecognized_sep=', ';;
863     esac
864     eval enable_$ac_useropt=\$ac_optarg ;;
865
866   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
867   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
868   | --exec | --exe | --ex)
869     ac_prev=exec_prefix ;;
870   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
871   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
872   | --exec=* | --exe=* | --ex=*)
873     exec_prefix=$ac_optarg ;;
874
875   -gas | --gas | --ga | --g)
876     # Obsolete; use --with-gas.
877     with_gas=yes ;;
878
879   -help | --help | --hel | --he | -h)
880     ac_init_help=long ;;
881   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
882     ac_init_help=recursive ;;
883   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
884     ac_init_help=short ;;
885
886   -host | --host | --hos | --ho)
887     ac_prev=host_alias ;;
888   -host=* | --host=* | --hos=* | --ho=*)
889     host_alias=$ac_optarg ;;
890
891   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
892     ac_prev=htmldir ;;
893   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
894   | --ht=*)
895     htmldir=$ac_optarg ;;
896
897   -includedir | --includedir | --includedi | --included | --include \
898   | --includ | --inclu | --incl | --inc)
899     ac_prev=includedir ;;
900   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
901   | --includ=* | --inclu=* | --incl=* | --inc=*)
902     includedir=$ac_optarg ;;
903
904   -infodir | --infodir | --infodi | --infod | --info | --inf)
905     ac_prev=infodir ;;
906   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
907     infodir=$ac_optarg ;;
908
909   -libdir | --libdir | --libdi | --libd)
910     ac_prev=libdir ;;
911   -libdir=* | --libdir=* | --libdi=* | --libd=*)
912     libdir=$ac_optarg ;;
913
914   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
915   | --libexe | --libex | --libe)
916     ac_prev=libexecdir ;;
917   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
918   | --libexe=* | --libex=* | --libe=*)
919     libexecdir=$ac_optarg ;;
920
921   -localedir | --localedir | --localedi | --localed | --locale)
922     ac_prev=localedir ;;
923   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
924     localedir=$ac_optarg ;;
925
926   -localstatedir | --localstatedir | --localstatedi | --localstated \
927   | --localstate | --localstat | --localsta | --localst | --locals)
928     ac_prev=localstatedir ;;
929   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
930   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
931     localstatedir=$ac_optarg ;;
932
933   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
934     ac_prev=mandir ;;
935   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
936     mandir=$ac_optarg ;;
937
938   -nfp | --nfp | --nf)
939     # Obsolete; use --without-fp.
940     with_fp=no ;;
941
942   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
943   | --no-cr | --no-c | -n)
944     no_create=yes ;;
945
946   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
947   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
948     no_recursion=yes ;;
949
950   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
951   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
952   | --oldin | --oldi | --old | --ol | --o)
953     ac_prev=oldincludedir ;;
954   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
955   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
956   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
957     oldincludedir=$ac_optarg ;;
958
959   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
960     ac_prev=prefix ;;
961   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
962     prefix=$ac_optarg ;;
963
964   -program-prefix | --program-prefix | --program-prefi | --program-pref \
965   | --program-pre | --program-pr | --program-p)
966     ac_prev=program_prefix ;;
967   -program-prefix=* | --program-prefix=* | --program-prefi=* \
968   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
969     program_prefix=$ac_optarg ;;
970
971   -program-suffix | --program-suffix | --program-suffi | --program-suff \
972   | --program-suf | --program-su | --program-s)
973     ac_prev=program_suffix ;;
974   -program-suffix=* | --program-suffix=* | --program-suffi=* \
975   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
976     program_suffix=$ac_optarg ;;
977
978   -program-transform-name | --program-transform-name \
979   | --program-transform-nam | --program-transform-na \
980   | --program-transform-n | --program-transform- \
981   | --program-transform | --program-transfor \
982   | --program-transfo | --program-transf \
983   | --program-trans | --program-tran \
984   | --progr-tra | --program-tr | --program-t)
985     ac_prev=program_transform_name ;;
986   -program-transform-name=* | --program-transform-name=* \
987   | --program-transform-nam=* | --program-transform-na=* \
988   | --program-transform-n=* | --program-transform-=* \
989   | --program-transform=* | --program-transfor=* \
990   | --program-transfo=* | --program-transf=* \
991   | --program-trans=* | --program-tran=* \
992   | --progr-tra=* | --program-tr=* | --program-t=*)
993     program_transform_name=$ac_optarg ;;
994
995   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
996     ac_prev=pdfdir ;;
997   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
998     pdfdir=$ac_optarg ;;
999
1000   -psdir | --psdir | --psdi | --psd | --ps)
1001     ac_prev=psdir ;;
1002   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1003     psdir=$ac_optarg ;;
1004
1005   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1006   | -silent | --silent | --silen | --sile | --sil)
1007     silent=yes ;;
1008
1009   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1010     ac_prev=sbindir ;;
1011   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1012   | --sbi=* | --sb=*)
1013     sbindir=$ac_optarg ;;
1014
1015   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1016   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1017   | --sharedst | --shareds | --shared | --share | --shar \
1018   | --sha | --sh)
1019     ac_prev=sharedstatedir ;;
1020   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1021   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1022   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1023   | --sha=* | --sh=*)
1024     sharedstatedir=$ac_optarg ;;
1025
1026   -site | --site | --sit)
1027     ac_prev=site ;;
1028   -site=* | --site=* | --sit=*)
1029     site=$ac_optarg ;;
1030
1031   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1032     ac_prev=srcdir ;;
1033   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1034     srcdir=$ac_optarg ;;
1035
1036   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1037   | --syscon | --sysco | --sysc | --sys | --sy)
1038     ac_prev=sysconfdir ;;
1039   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1040   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1041     sysconfdir=$ac_optarg ;;
1042
1043   -target | --target | --targe | --targ | --tar | --ta | --t)
1044     ac_prev=target_alias ;;
1045   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1046     target_alias=$ac_optarg ;;
1047
1048   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1049     verbose=yes ;;
1050
1051   -version | --version | --versio | --versi | --vers | -V)
1052     ac_init_version=: ;;
1053
1054   -with-* | --with-*)
1055     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1056     # Reject names that are not valid shell variable names.
1057     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1058       as_fn_error "invalid package name: $ac_useropt"
1059     ac_useropt_orig=$ac_useropt
1060     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1061     case $ac_user_opts in
1062       *"
1063 "with_$ac_useropt"
1064 "*) ;;
1065       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1066          ac_unrecognized_sep=', ';;
1067     esac
1068     eval with_$ac_useropt=\$ac_optarg ;;
1069
1070   -without-* | --without-*)
1071     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1072     # Reject names that are not valid shell variable names.
1073     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1074       as_fn_error "invalid package name: $ac_useropt"
1075     ac_useropt_orig=$ac_useropt
1076     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1077     case $ac_user_opts in
1078       *"
1079 "with_$ac_useropt"
1080 "*) ;;
1081       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1082          ac_unrecognized_sep=', ';;
1083     esac
1084     eval with_$ac_useropt=no ;;
1085
1086   --x)
1087     # Obsolete; use --with-x.
1088     with_x=yes ;;
1089
1090   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1091   | --x-incl | --x-inc | --x-in | --x-i)
1092     ac_prev=x_includes ;;
1093   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1094   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1095     x_includes=$ac_optarg ;;
1096
1097   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1098   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1099     ac_prev=x_libraries ;;
1100   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1101   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1102     x_libraries=$ac_optarg ;;
1103
1104   -*) as_fn_error "unrecognized option: \`$ac_option'
1105 Try \`$0 --help' for more information."
1106     ;;
1107
1108   *=*)
1109     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1110     # Reject names that are not valid shell variable names.
1111     case $ac_envvar in #(
1112       '' | [0-9]* | *[!_$as_cr_alnum]* )
1113       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1114     esac
1115     eval $ac_envvar=\$ac_optarg
1116     export $ac_envvar ;;
1117
1118   *)
1119     # FIXME: should be removed in autoconf 3.0.
1120     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1121     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1122       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1123     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1124     ;;
1125
1126   esac
1127 done
1128
1129 if test -n "$ac_prev"; then
1130   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1131   as_fn_error "missing argument to $ac_option"
1132 fi
1133
1134 if test -n "$ac_unrecognized_opts"; then
1135   case $enable_option_checking in
1136     no) ;;
1137     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1138     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1139   esac
1140 fi
1141
1142 # Check all directory arguments for consistency.
1143 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1144                 datadir sysconfdir sharedstatedir localstatedir includedir \
1145                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1146                 libdir localedir mandir
1147 do
1148   eval ac_val=\$$ac_var
1149   # Remove trailing slashes.
1150   case $ac_val in
1151     */ )
1152       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1153       eval $ac_var=\$ac_val;;
1154   esac
1155   # Be sure to have absolute directory names.
1156   case $ac_val in
1157     [\\/$]* | ?:[\\/]* )  continue;;
1158     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1159   esac
1160   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1161 done
1162
1163 # There might be people who depend on the old broken behavior: `$host'
1164 # used to hold the argument of --host etc.
1165 # FIXME: To remove some day.
1166 build=$build_alias
1167 host=$host_alias
1168 target=$target_alias
1169
1170 # FIXME: To remove some day.
1171 if test "x$host_alias" != x; then
1172   if test "x$build_alias" = x; then
1173     cross_compiling=maybe
1174     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1175     If a cross compiler is detected then cross compile mode will be used." >&2
1176   elif test "x$build_alias" != "x$host_alias"; then
1177     cross_compiling=yes
1178   fi
1179 fi
1180
1181 ac_tool_prefix=
1182 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1183
1184 test "$silent" = yes && exec 6>/dev/null
1185
1186
1187 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1188 ac_ls_di=`ls -di .` &&
1189 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1190   as_fn_error "working directory cannot be determined"
1191 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1192   as_fn_error "pwd does not report name of working directory"
1193
1194
1195 # Find the source files, if location was not specified.
1196 if test -z "$srcdir"; then
1197   ac_srcdir_defaulted=yes
1198   # Try the directory containing this script, then the parent directory.
1199   ac_confdir=`$as_dirname -- "$as_myself" ||
1200 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1201          X"$as_myself" : 'X\(//\)[^/]' \| \
1202          X"$as_myself" : 'X\(//\)$' \| \
1203          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1204 $as_echo X"$as_myself" |
1205     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1206             s//\1/
1207             q
1208           }
1209           /^X\(\/\/\)[^/].*/{
1210             s//\1/
1211             q
1212           }
1213           /^X\(\/\/\)$/{
1214             s//\1/
1215             q
1216           }
1217           /^X\(\/\).*/{
1218             s//\1/
1219             q
1220           }
1221           s/.*/./; q'`
1222   srcdir=$ac_confdir
1223   if test ! -r "$srcdir/$ac_unique_file"; then
1224     srcdir=..
1225   fi
1226 else
1227   ac_srcdir_defaulted=no
1228 fi
1229 if test ! -r "$srcdir/$ac_unique_file"; then
1230   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1231   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1232 fi
1233 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1234 ac_abs_confdir=`(
1235         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1236         pwd)`
1237 # When building in place, set srcdir=.
1238 if test "$ac_abs_confdir" = "$ac_pwd"; then
1239   srcdir=.
1240 fi
1241 # Remove unnecessary trailing slashes from srcdir.
1242 # Double slashes in file names in object file debugging info
1243 # mess up M-x gdb in Emacs.
1244 case $srcdir in
1245 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1246 esac
1247 for ac_var in $ac_precious_vars; do
1248   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1249   eval ac_env_${ac_var}_value=\$${ac_var}
1250   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1251   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1252 done
1253
1254 #
1255 # Report the --help message.
1256 #
1257 if test "$ac_init_help" = "long"; then
1258   # Omit some internal or obsolete options to make the list less imposing.
1259   # This message is too long to be a string in the A/UX 3.1 sh.
1260   cat <<_ACEOF
1261 \`configure' configures nbd 2.9.15 to adapt to many kinds of systems.
1262
1263 Usage: $0 [OPTION]... [VAR=VALUE]...
1264
1265 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1266 VAR=VALUE.  See below for descriptions of some of the useful variables.
1267
1268 Defaults for the options are specified in brackets.
1269
1270 Configuration:
1271   -h, --help              display this help and exit
1272       --help=short        display options specific to this package
1273       --help=recursive    display the short help of all the included packages
1274   -V, --version           display version information and exit
1275   -q, --quiet, --silent   do not print \`checking...' messages
1276       --cache-file=FILE   cache test results in FILE [disabled]
1277   -C, --config-cache      alias for \`--cache-file=config.cache'
1278   -n, --no-create         do not create output files
1279       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1280
1281 Installation directories:
1282   --prefix=PREFIX         install architecture-independent files in PREFIX
1283                           [$ac_default_prefix]
1284   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1285                           [PREFIX]
1286
1287 By default, \`make install' will install all the files in
1288 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1289 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1290 for instance \`--prefix=\$HOME'.
1291
1292 For better control, use the options below.
1293
1294 Fine tuning of the installation directories:
1295   --bindir=DIR            user executables [EPREFIX/bin]
1296   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1297   --libexecdir=DIR        program executables [EPREFIX/libexec]
1298   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1299   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1300   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1301   --libdir=DIR            object code libraries [EPREFIX/lib]
1302   --includedir=DIR        C header files [PREFIX/include]
1303   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1304   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1305   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1306   --infodir=DIR           info documentation [DATAROOTDIR/info]
1307   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1308   --mandir=DIR            man documentation [DATAROOTDIR/man]
1309   --docdir=DIR            documentation root [DATAROOTDIR/doc/nbd]
1310   --htmldir=DIR           html documentation [DOCDIR]
1311   --dvidir=DIR            dvi documentation [DOCDIR]
1312   --pdfdir=DIR            pdf documentation [DOCDIR]
1313   --psdir=DIR             ps documentation [DOCDIR]
1314 _ACEOF
1315
1316   cat <<\_ACEOF
1317
1318 Program names:
1319   --program-prefix=PREFIX            prepend PREFIX to installed program names
1320   --program-suffix=SUFFIX            append SUFFIX to installed program names
1321   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1322
1323 System types:
1324   --build=BUILD     configure for building on BUILD [guessed]
1325   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1326 _ACEOF
1327 fi
1328
1329 if test -n "$ac_init_help"; then
1330   case $ac_init_help in
1331      short | recursive ) echo "Configuration of nbd 2.9.15:";;
1332    esac
1333   cat <<\_ACEOF
1334
1335 Optional Features:
1336   --disable-option-checking  ignore unrecognized --enable/--with options
1337   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1338   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1339   --enable-maintainer-mode  enable make rules and dependencies not useful
1340                           (and sometimes confusing) to the casual installer
1341   --disable-lfs           Disable Large File Support (default on)
1342   --enable-syslog         Enable Syslog logging
1343   --enable-debug          Build a debugging version of the server
1344   --enable-sdp            Build a version of nbd-server with support for the
1345                           Socket Direct Protocol (SDP). Requires you to build
1346                           and install a kernel with the InfiniBand patches
1347                           (default disabled)
1348   --disable-dependency-tracking  speeds up one-time build
1349   --enable-dependency-tracking   do not reject slow dependency extractors
1350   --disable-glibtest      do not try to compile and run a test GLIB program
1351
1352 Some influential environment variables:
1353   CC          C compiler command
1354   CFLAGS      C compiler flags
1355   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1356               nonstandard directory <lib dir>
1357   LIBS        libraries to pass to the linker, e.g. -l<library>
1358   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1359               you have headers in a nonstandard directory <include dir>
1360   CPP         C preprocessor
1361   PKG_CONFIG  path to pkg-config utility
1362
1363 Use these variables to override the choices made by `configure' or to help
1364 it to find libraries and programs with nonstandard names/locations.
1365
1366 Report bugs to <wouter@debian.org>.
1367 _ACEOF
1368 ac_status=$?
1369 fi
1370
1371 if test "$ac_init_help" = "recursive"; then
1372   # If there are subdirs, report their specific --help.
1373   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1374     test -d "$ac_dir" ||
1375       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1376       continue
1377     ac_builddir=.
1378
1379 case "$ac_dir" in
1380 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1381 *)
1382   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1383   # A ".." for each directory in $ac_dir_suffix.
1384   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1385   case $ac_top_builddir_sub in
1386   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1387   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1388   esac ;;
1389 esac
1390 ac_abs_top_builddir=$ac_pwd
1391 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1392 # for backward compatibility:
1393 ac_top_builddir=$ac_top_build_prefix
1394
1395 case $srcdir in
1396   .)  # We are building in place.
1397     ac_srcdir=.
1398     ac_top_srcdir=$ac_top_builddir_sub
1399     ac_abs_top_srcdir=$ac_pwd ;;
1400   [\\/]* | ?:[\\/]* )  # Absolute name.
1401     ac_srcdir=$srcdir$ac_dir_suffix;
1402     ac_top_srcdir=$srcdir
1403     ac_abs_top_srcdir=$srcdir ;;
1404   *) # Relative name.
1405     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1406     ac_top_srcdir=$ac_top_build_prefix$srcdir
1407     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1408 esac
1409 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1410
1411     cd "$ac_dir" || { ac_status=$?; continue; }
1412     # Check for guested configure.
1413     if test -f "$ac_srcdir/configure.gnu"; then
1414       echo &&
1415       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1416     elif test -f "$ac_srcdir/configure"; then
1417       echo &&
1418       $SHELL "$ac_srcdir/configure" --help=recursive
1419     else
1420       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1421     fi || ac_status=$?
1422     cd "$ac_pwd" || { ac_status=$?; break; }
1423   done
1424 fi
1425
1426 test -n "$ac_init_help" && exit $ac_status
1427 if $ac_init_version; then
1428   cat <<\_ACEOF
1429 nbd configure 2.9.15
1430 generated by GNU Autoconf 2.65
1431
1432 Copyright (C) 2009 Free Software Foundation, Inc.
1433 This configure script is free software; the Free Software Foundation
1434 gives unlimited permission to copy, distribute and modify it.
1435 _ACEOF
1436   exit
1437 fi
1438
1439 ## ------------------------ ##
1440 ## Autoconf initialization. ##
1441 ## ------------------------ ##
1442
1443 # ac_fn_c_try_compile LINENO
1444 # --------------------------
1445 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1446 ac_fn_c_try_compile ()
1447 {
1448   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1449   rm -f conftest.$ac_objext
1450   if { { ac_try="$ac_compile"
1451 case "(($ac_try" in
1452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1453   *) ac_try_echo=$ac_try;;
1454 esac
1455 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1456 $as_echo "$ac_try_echo"; } >&5
1457   (eval "$ac_compile") 2>conftest.err
1458   ac_status=$?
1459   if test -s conftest.err; then
1460     grep -v '^ *+' conftest.err >conftest.er1
1461     cat conftest.er1 >&5
1462     mv -f conftest.er1 conftest.err
1463   fi
1464   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1465   test $ac_status = 0; } && {
1466          test -z "$ac_c_werror_flag" ||
1467          test ! -s conftest.err
1468        } && test -s conftest.$ac_objext; then :
1469   ac_retval=0
1470 else
1471   $as_echo "$as_me: failed program was:" >&5
1472 sed 's/^/| /' conftest.$ac_ext >&5
1473
1474         ac_retval=1
1475 fi
1476   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1477   as_fn_set_status $ac_retval
1478
1479 } # ac_fn_c_try_compile
1480
1481 # ac_fn_c_try_cpp LINENO
1482 # ----------------------
1483 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1484 ac_fn_c_try_cpp ()
1485 {
1486   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1487   if { { ac_try="$ac_cpp conftest.$ac_ext"
1488 case "(($ac_try" in
1489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1490   *) ac_try_echo=$ac_try;;
1491 esac
1492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1493 $as_echo "$ac_try_echo"; } >&5
1494   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1495   ac_status=$?
1496   if test -s conftest.err; then
1497     grep -v '^ *+' conftest.err >conftest.er1
1498     cat conftest.er1 >&5
1499     mv -f conftest.er1 conftest.err
1500   fi
1501   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1502   test $ac_status = 0; } >/dev/null && {
1503          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1504          test ! -s conftest.err
1505        }; then :
1506   ac_retval=0
1507 else
1508   $as_echo "$as_me: failed program was:" >&5
1509 sed 's/^/| /' conftest.$ac_ext >&5
1510
1511     ac_retval=1
1512 fi
1513   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1514   as_fn_set_status $ac_retval
1515
1516 } # ac_fn_c_try_cpp
1517
1518 # ac_fn_c_try_run LINENO
1519 # ----------------------
1520 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1521 # that executables *can* be run.
1522 ac_fn_c_try_run ()
1523 {
1524   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1525   if { { ac_try="$ac_link"
1526 case "(($ac_try" in
1527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1528   *) ac_try_echo=$ac_try;;
1529 esac
1530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1531 $as_echo "$ac_try_echo"; } >&5
1532   (eval "$ac_link") 2>&5
1533   ac_status=$?
1534   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1535   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1536   { { case "(($ac_try" in
1537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1538   *) ac_try_echo=$ac_try;;
1539 esac
1540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1541 $as_echo "$ac_try_echo"; } >&5
1542   (eval "$ac_try") 2>&5
1543   ac_status=$?
1544   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1545   test $ac_status = 0; }; }; then :
1546   ac_retval=0
1547 else
1548   $as_echo "$as_me: program exited with status $ac_status" >&5
1549        $as_echo "$as_me: failed program was:" >&5
1550 sed 's/^/| /' conftest.$ac_ext >&5
1551
1552        ac_retval=$ac_status
1553 fi
1554   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1555   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1556   as_fn_set_status $ac_retval
1557
1558 } # ac_fn_c_try_run
1559
1560 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1561 # -------------------------------------------------------
1562 # Tests whether HEADER exists and can be compiled using the include files in
1563 # INCLUDES, setting the cache variable VAR accordingly.
1564 ac_fn_c_check_header_compile ()
1565 {
1566   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1568 $as_echo_n "checking for $2... " >&6; }
1569 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1570   $as_echo_n "(cached) " >&6
1571 else
1572   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1573 /* end confdefs.h.  */
1574 $4
1575 #include <$2>
1576 _ACEOF
1577 if ac_fn_c_try_compile "$LINENO"; then :
1578   eval "$3=yes"
1579 else
1580   eval "$3=no"
1581 fi
1582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1583 fi
1584 eval ac_res=\$$3
1585                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1586 $as_echo "$ac_res" >&6; }
1587   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1588
1589 } # ac_fn_c_check_header_compile
1590
1591 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1592 # --------------------------------------------
1593 # Tries to find the compile-time value of EXPR in a program that includes
1594 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1595 # computed
1596 ac_fn_c_compute_int ()
1597 {
1598   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599   if test "$cross_compiling" = yes; then
1600     # Depending upon the size, compute the lo and hi bounds.
1601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1602 /* end confdefs.h.  */
1603 $4
1604 int
1605 main ()
1606 {
1607 static int test_array [1 - 2 * !(($2) >= 0)];
1608 test_array [0] = 0
1609
1610   ;
1611   return 0;
1612 }
1613 _ACEOF
1614 if ac_fn_c_try_compile "$LINENO"; then :
1615   ac_lo=0 ac_mid=0
1616   while :; do
1617     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1618 /* end confdefs.h.  */
1619 $4
1620 int
1621 main ()
1622 {
1623 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1624 test_array [0] = 0
1625
1626   ;
1627   return 0;
1628 }
1629 _ACEOF
1630 if ac_fn_c_try_compile "$LINENO"; then :
1631   ac_hi=$ac_mid; break
1632 else
1633   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1634                         if test $ac_lo -le $ac_mid; then
1635                           ac_lo= ac_hi=
1636                           break
1637                         fi
1638                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1639 fi
1640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1641   done
1642 else
1643   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1644 /* end confdefs.h.  */
1645 $4
1646 int
1647 main ()
1648 {
1649 static int test_array [1 - 2 * !(($2) < 0)];
1650 test_array [0] = 0
1651
1652   ;
1653   return 0;
1654 }
1655 _ACEOF
1656 if ac_fn_c_try_compile "$LINENO"; then :
1657   ac_hi=-1 ac_mid=-1
1658   while :; do
1659     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1660 /* end confdefs.h.  */
1661 $4
1662 int
1663 main ()
1664 {
1665 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1666 test_array [0] = 0
1667
1668   ;
1669   return 0;
1670 }
1671 _ACEOF
1672 if ac_fn_c_try_compile "$LINENO"; then :
1673   ac_lo=$ac_mid; break
1674 else
1675   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1676                         if test $ac_mid -le $ac_hi; then
1677                           ac_lo= ac_hi=
1678                           break
1679                         fi
1680                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1681 fi
1682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1683   done
1684 else
1685   ac_lo= ac_hi=
1686 fi
1687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1688 fi
1689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1690 # Binary search between lo and hi bounds.
1691 while test "x$ac_lo" != "x$ac_hi"; do
1692   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1693   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1694 /* end confdefs.h.  */
1695 $4
1696 int
1697 main ()
1698 {
1699 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1700 test_array [0] = 0
1701
1702   ;
1703   return 0;
1704 }
1705 _ACEOF
1706 if ac_fn_c_try_compile "$LINENO"; then :
1707   ac_hi=$ac_mid
1708 else
1709   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1710 fi
1711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1712 done
1713 case $ac_lo in #((
1714 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1715 '') ac_retval=1 ;;
1716 esac
1717   else
1718     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1719 /* end confdefs.h.  */
1720 $4
1721 static long int longval () { return $2; }
1722 static unsigned long int ulongval () { return $2; }
1723 #include <stdio.h>
1724 #include <stdlib.h>
1725 int
1726 main ()
1727 {
1728
1729   FILE *f = fopen ("conftest.val", "w");
1730   if (! f)
1731     return 1;
1732   if (($2) < 0)
1733     {
1734       long int i = longval ();
1735       if (i != ($2))
1736         return 1;
1737       fprintf (f, "%ld", i);
1738     }
1739   else
1740     {
1741       unsigned long int i = ulongval ();
1742       if (i != ($2))
1743         return 1;
1744       fprintf (f, "%lu", i);
1745     }
1746   /* Do not output a trailing newline, as this causes \r\n confusion
1747      on some platforms.  */
1748   return ferror (f) || fclose (f) != 0;
1749
1750   ;
1751   return 0;
1752 }
1753 _ACEOF
1754 if ac_fn_c_try_run "$LINENO"; then :
1755   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1756 else
1757   ac_retval=1
1758 fi
1759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1760   conftest.$ac_objext conftest.beam conftest.$ac_ext
1761 rm -f conftest.val
1762
1763   fi
1764   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1765   as_fn_set_status $ac_retval
1766
1767 } # ac_fn_c_compute_int
1768
1769 # ac_fn_c_try_link LINENO
1770 # -----------------------
1771 # Try to link conftest.$ac_ext, and return whether this succeeded.
1772 ac_fn_c_try_link ()
1773 {
1774   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775   rm -f conftest.$ac_objext conftest$ac_exeext
1776   if { { ac_try="$ac_link"
1777 case "(($ac_try" in
1778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779   *) ac_try_echo=$ac_try;;
1780 esac
1781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782 $as_echo "$ac_try_echo"; } >&5
1783   (eval "$ac_link") 2>conftest.err
1784   ac_status=$?
1785   if test -s conftest.err; then
1786     grep -v '^ *+' conftest.err >conftest.er1
1787     cat conftest.er1 >&5
1788     mv -f conftest.er1 conftest.err
1789   fi
1790   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791   test $ac_status = 0; } && {
1792          test -z "$ac_c_werror_flag" ||
1793          test ! -s conftest.err
1794        } && test -s conftest$ac_exeext && {
1795          test "$cross_compiling" = yes ||
1796          $as_test_x conftest$ac_exeext
1797        }; then :
1798   ac_retval=0
1799 else
1800   $as_echo "$as_me: failed program was:" >&5
1801 sed 's/^/| /' conftest.$ac_ext >&5
1802
1803         ac_retval=1
1804 fi
1805   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1806   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1807   # interfere with the next link command; also delete a directory that is
1808   # left behind by Apple's compiler.  We do this before executing the actions.
1809   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1810   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1811   as_fn_set_status $ac_retval
1812
1813 } # ac_fn_c_try_link
1814
1815 # ac_fn_c_check_func LINENO FUNC VAR
1816 # ----------------------------------
1817 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1818 ac_fn_c_check_func ()
1819 {
1820   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1822 $as_echo_n "checking for $2... " >&6; }
1823 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1824   $as_echo_n "(cached) " >&6
1825 else
1826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827 /* end confdefs.h.  */
1828 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1829    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1830 #define $2 innocuous_$2
1831
1832 /* System header to define __stub macros and hopefully few prototypes,
1833     which can conflict with char $2 (); below.
1834     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1835     <limits.h> exists even on freestanding compilers.  */
1836
1837 #ifdef __STDC__
1838 # include <limits.h>
1839 #else
1840 # include <assert.h>
1841 #endif
1842
1843 #undef $2
1844
1845 /* Override any GCC internal prototype to avoid an error.
1846    Use char because int might match the return type of a GCC
1847    builtin and then its argument prototype would still apply.  */
1848 #ifdef __cplusplus
1849 extern "C"
1850 #endif
1851 char $2 ();
1852 /* The GNU C library defines this for functions which it implements
1853     to always fail with ENOSYS.  Some functions are actually named
1854     something starting with __ and the normal name is an alias.  */
1855 #if defined __stub_$2 || defined __stub___$2
1856 choke me
1857 #endif
1858
1859 int
1860 main ()
1861 {
1862 return $2 ();
1863   ;
1864   return 0;
1865 }
1866 _ACEOF
1867 if ac_fn_c_try_link "$LINENO"; then :
1868   eval "$3=yes"
1869 else
1870   eval "$3=no"
1871 fi
1872 rm -f core conftest.err conftest.$ac_objext \
1873     conftest$ac_exeext conftest.$ac_ext
1874 fi
1875 eval ac_res=\$$3
1876                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877 $as_echo "$ac_res" >&6; }
1878   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1879
1880 } # ac_fn_c_check_func
1881
1882 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1883 # -------------------------------------------
1884 # Tests whether TYPE exists after having included INCLUDES, setting cache
1885 # variable VAR accordingly.
1886 ac_fn_c_check_type ()
1887 {
1888   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1890 $as_echo_n "checking for $2... " >&6; }
1891 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1892   $as_echo_n "(cached) " >&6
1893 else
1894   eval "$3=no"
1895   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1896 /* end confdefs.h.  */
1897 $4
1898 int
1899 main ()
1900 {
1901 if (sizeof ($2))
1902          return 0;
1903   ;
1904   return 0;
1905 }
1906 _ACEOF
1907 if ac_fn_c_try_compile "$LINENO"; then :
1908   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909 /* end confdefs.h.  */
1910 $4
1911 int
1912 main ()
1913 {
1914 if (sizeof (($2)))
1915             return 0;
1916   ;
1917   return 0;
1918 }
1919 _ACEOF
1920 if ac_fn_c_try_compile "$LINENO"; then :
1921
1922 else
1923   eval "$3=yes"
1924 fi
1925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1926 fi
1927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1928 fi
1929 eval ac_res=\$$3
1930                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1931 $as_echo "$ac_res" >&6; }
1932   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1933
1934 } # ac_fn_c_check_type
1935
1936 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1937 # -------------------------------------------------------
1938 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1939 # the include files in INCLUDES and setting the cache variable VAR
1940 # accordingly.
1941 ac_fn_c_check_header_mongrel ()
1942 {
1943   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1945   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1946 $as_echo_n "checking for $2... " >&6; }
1947 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1948   $as_echo_n "(cached) " >&6
1949 fi
1950 eval ac_res=\$$3
1951                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1952 $as_echo "$ac_res" >&6; }
1953 else
1954   # Is the header compilable?
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1956 $as_echo_n "checking $2 usability... " >&6; }
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h.  */
1959 $4
1960 #include <$2>
1961 _ACEOF
1962 if ac_fn_c_try_compile "$LINENO"; then :
1963   ac_header_compiler=yes
1964 else
1965   ac_header_compiler=no
1966 fi
1967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1969 $as_echo "$ac_header_compiler" >&6; }
1970
1971 # Is the header present?
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1973 $as_echo_n "checking $2 presence... " >&6; }
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h.  */
1976 #include <$2>
1977 _ACEOF
1978 if ac_fn_c_try_cpp "$LINENO"; then :
1979   ac_header_preproc=yes
1980 else
1981   ac_header_preproc=no
1982 fi
1983 rm -f conftest.err conftest.$ac_ext
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1985 $as_echo "$ac_header_preproc" >&6; }
1986
1987 # So?  What about this header?
1988 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1989   yes:no: )
1990     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1991 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1992     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1993 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1994     ;;
1995   no:yes:* )
1996     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1997 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1998     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1999 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2000     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2001 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2002     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2003 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2004     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2005 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2006 ( cat <<\_ASBOX
2007 ## -------------------------------- ##
2008 ## Report this to wouter@debian.org ##
2009 ## -------------------------------- ##
2010 _ASBOX
2011      ) | sed "s/^/$as_me: WARNING:     /" >&2
2012     ;;
2013 esac
2014   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2015 $as_echo_n "checking for $2... " >&6; }
2016 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2017   $as_echo_n "(cached) " >&6
2018 else
2019   eval "$3=\$ac_header_compiler"
2020 fi
2021 eval ac_res=\$$3
2022                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2023 $as_echo "$ac_res" >&6; }
2024 fi
2025   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2026
2027 } # ac_fn_c_check_header_mongrel
2028 cat >config.log <<_ACEOF
2029 This file contains any messages produced by compilers while
2030 running configure, to aid debugging if configure makes a mistake.
2031
2032 It was created by nbd $as_me 2.9.15, which was
2033 generated by GNU Autoconf 2.65.  Invocation command line was
2034
2035   $ $0 $@
2036
2037 _ACEOF
2038 exec 5>>config.log
2039 {
2040 cat <<_ASUNAME
2041 ## --------- ##
2042 ## Platform. ##
2043 ## --------- ##
2044
2045 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2046 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2047 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2048 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2049 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2050
2051 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2052 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2053
2054 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2055 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2056 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2057 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2058 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2059 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2060 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2061
2062 _ASUNAME
2063
2064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2065 for as_dir in $PATH
2066 do
2067   IFS=$as_save_IFS
2068   test -z "$as_dir" && as_dir=.
2069     $as_echo "PATH: $as_dir"
2070   done
2071 IFS=$as_save_IFS
2072
2073 } >&5
2074
2075 cat >&5 <<_ACEOF
2076
2077
2078 ## ----------- ##
2079 ## Core tests. ##
2080 ## ----------- ##
2081
2082 _ACEOF
2083
2084
2085 # Keep a trace of the command line.
2086 # Strip out --no-create and --no-recursion so they do not pile up.
2087 # Strip out --silent because we don't want to record it for future runs.
2088 # Also quote any args containing shell meta-characters.
2089 # Make two passes to allow for proper duplicate-argument suppression.
2090 ac_configure_args=
2091 ac_configure_args0=
2092 ac_configure_args1=
2093 ac_must_keep_next=false
2094 for ac_pass in 1 2
2095 do
2096   for ac_arg
2097   do
2098     case $ac_arg in
2099     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2100     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2101     | -silent | --silent | --silen | --sile | --sil)
2102       continue ;;
2103     *\'*)
2104       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2105     esac
2106     case $ac_pass in
2107     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2108     2)
2109       as_fn_append ac_configure_args1 " '$ac_arg'"
2110       if test $ac_must_keep_next = true; then
2111         ac_must_keep_next=false # Got value, back to normal.
2112       else
2113         case $ac_arg in
2114           *=* | --config-cache | -C | -disable-* | --disable-* \
2115           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2116           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2117           | -with-* | --with-* | -without-* | --without-* | --x)
2118             case "$ac_configure_args0 " in
2119               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2120             esac
2121             ;;
2122           -* ) ac_must_keep_next=true ;;
2123         esac
2124       fi
2125       as_fn_append ac_configure_args " '$ac_arg'"
2126       ;;
2127     esac
2128   done
2129 done
2130 { ac_configure_args0=; unset ac_configure_args0;}
2131 { ac_configure_args1=; unset ac_configure_args1;}
2132
2133 # When interrupted or exit'd, cleanup temporary files, and complete
2134 # config.log.  We remove comments because anyway the quotes in there
2135 # would cause problems or look ugly.
2136 # WARNING: Use '\'' to represent an apostrophe within the trap.
2137 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2138 trap 'exit_status=$?
2139   # Save into config.log some information that might help in debugging.
2140   {
2141     echo
2142
2143     cat <<\_ASBOX
2144 ## ---------------- ##
2145 ## Cache variables. ##
2146 ## ---------------- ##
2147 _ASBOX
2148     echo
2149     # The following way of writing the cache mishandles newlines in values,
2150 (
2151   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2152     eval ac_val=\$$ac_var
2153     case $ac_val in #(
2154     *${as_nl}*)
2155       case $ac_var in #(
2156       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2157 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2158       esac
2159       case $ac_var in #(
2160       _ | IFS | as_nl) ;; #(
2161       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2162       *) { eval $ac_var=; unset $ac_var;} ;;
2163       esac ;;
2164     esac
2165   done
2166   (set) 2>&1 |
2167     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2168     *${as_nl}ac_space=\ *)
2169       sed -n \
2170         "s/'\''/'\''\\\\'\'''\''/g;
2171           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2172       ;; #(
2173     *)
2174       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2175       ;;
2176     esac |
2177     sort
2178 )
2179     echo
2180
2181     cat <<\_ASBOX
2182 ## ----------------- ##
2183 ## Output variables. ##
2184 ## ----------------- ##
2185 _ASBOX
2186     echo
2187     for ac_var in $ac_subst_vars
2188     do
2189       eval ac_val=\$$ac_var
2190       case $ac_val in
2191       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2192       esac
2193       $as_echo "$ac_var='\''$ac_val'\''"
2194     done | sort
2195     echo
2196
2197     if test -n "$ac_subst_files"; then
2198       cat <<\_ASBOX
2199 ## ------------------- ##
2200 ## File substitutions. ##
2201 ## ------------------- ##
2202 _ASBOX
2203       echo
2204       for ac_var in $ac_subst_files
2205       do
2206         eval ac_val=\$$ac_var
2207         case $ac_val in
2208         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2209         esac
2210         $as_echo "$ac_var='\''$ac_val'\''"
2211       done | sort
2212       echo
2213     fi
2214
2215     if test -s confdefs.h; then
2216       cat <<\_ASBOX
2217 ## ----------- ##
2218 ## confdefs.h. ##
2219 ## ----------- ##
2220 _ASBOX
2221       echo
2222       cat confdefs.h
2223       echo
2224     fi
2225     test "$ac_signal" != 0 &&
2226       $as_echo "$as_me: caught signal $ac_signal"
2227     $as_echo "$as_me: exit $exit_status"
2228   } >&5
2229   rm -f core *.core core.conftest.* &&
2230     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2231     exit $exit_status
2232 ' 0
2233 for ac_signal in 1 2 13 15; do
2234   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2235 done
2236 ac_signal=0
2237
2238 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2239 rm -f -r conftest* confdefs.h
2240
2241 $as_echo "/* confdefs.h */" > confdefs.h
2242
2243 # Predefined preprocessor variables.
2244
2245 cat >>confdefs.h <<_ACEOF
2246 #define PACKAGE_NAME "$PACKAGE_NAME"
2247 _ACEOF
2248
2249 cat >>confdefs.h <<_ACEOF
2250 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2251 _ACEOF
2252
2253 cat >>confdefs.h <<_ACEOF
2254 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2255 _ACEOF
2256
2257 cat >>confdefs.h <<_ACEOF
2258 #define PACKAGE_STRING "$PACKAGE_STRING"
2259 _ACEOF
2260
2261 cat >>confdefs.h <<_ACEOF
2262 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2263 _ACEOF
2264
2265 cat >>confdefs.h <<_ACEOF
2266 #define PACKAGE_URL "$PACKAGE_URL"
2267 _ACEOF
2268
2269
2270 # Let the site file select an alternate cache file if it wants to.
2271 # Prefer an explicitly selected file to automatically selected ones.
2272 ac_site_file1=NONE
2273 ac_site_file2=NONE
2274 if test -n "$CONFIG_SITE"; then
2275   ac_site_file1=$CONFIG_SITE
2276 elif test "x$prefix" != xNONE; then
2277   ac_site_file1=$prefix/share/config.site
2278   ac_site_file2=$prefix/etc/config.site
2279 else
2280   ac_site_file1=$ac_default_prefix/share/config.site
2281   ac_site_file2=$ac_default_prefix/etc/config.site
2282 fi
2283 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2284 do
2285   test "x$ac_site_file" = xNONE && continue
2286   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2287     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2288 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2289     sed 's/^/| /' "$ac_site_file" >&5
2290     . "$ac_site_file"
2291   fi
2292 done
2293
2294 if test -r "$cache_file"; then
2295   # Some versions of bash will fail to source /dev/null (special files
2296   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2297   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2298     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2299 $as_echo "$as_me: loading cache $cache_file" >&6;}
2300     case $cache_file in
2301       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2302       *)                      . "./$cache_file";;
2303     esac
2304   fi
2305 else
2306   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2307 $as_echo "$as_me: creating cache $cache_file" >&6;}
2308   >$cache_file
2309 fi
2310
2311 # Check that the precious variables saved in the cache have kept the same
2312 # value.
2313 ac_cache_corrupted=false
2314 for ac_var in $ac_precious_vars; do
2315   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2316   eval ac_new_set=\$ac_env_${ac_var}_set
2317   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2318   eval ac_new_val=\$ac_env_${ac_var}_value
2319   case $ac_old_set,$ac_new_set in
2320     set,)
2321       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2322 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2323       ac_cache_corrupted=: ;;
2324     ,set)
2325       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2326 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2327       ac_cache_corrupted=: ;;
2328     ,);;
2329     *)
2330       if test "x$ac_old_val" != "x$ac_new_val"; then
2331         # differences in whitespace do not lead to failure.
2332         ac_old_val_w=`echo x $ac_old_val`
2333         ac_new_val_w=`echo x $ac_new_val`
2334         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2335           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2336 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2337           ac_cache_corrupted=:
2338         else
2339           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2340 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2341           eval $ac_var=\$ac_old_val
2342         fi
2343         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2344 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2345         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2346 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2347       fi;;
2348   esac
2349   # Pass precious variables to config.status.
2350   if test "$ac_new_set" = set; then
2351     case $ac_new_val in
2352     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2353     *) ac_arg=$ac_var=$ac_new_val ;;
2354     esac
2355     case " $ac_configure_args " in
2356       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2357       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2358     esac
2359   fi
2360 done
2361 if $ac_cache_corrupted; then
2362   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2364   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2365 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2366   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2367 fi
2368 ## -------------------- ##
2369 ## Main body of script. ##
2370 ## -------------------- ##
2371
2372 ac_ext=c
2373 ac_cpp='$CPP $CPPFLAGS'
2374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2377
2378
2379 am__api_version='1.11'
2380
2381 ac_aux_dir=
2382 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2383   for ac_t in install-sh install.sh shtool; do
2384     if test -f "$ac_dir/$ac_t"; then
2385       ac_aux_dir=$ac_dir
2386       ac_install_sh="$ac_aux_dir/$ac_t -c"
2387       break 2
2388     fi
2389   done
2390 done
2391 if test -z "$ac_aux_dir"; then
2392   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2393 fi
2394
2395 # These three variables are undocumented and unsupported,
2396 # and are intended to be withdrawn in a future Autoconf release.
2397 # They can cause serious problems if a builder's source tree is in a directory
2398 # whose full name contains unusual characters.
2399 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2400 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2401 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2402
2403
2404 # Find a good install program.  We prefer a C program (faster),
2405 # so one script is as good as another.  But avoid the broken or
2406 # incompatible versions:
2407 # SysV /etc/install, /usr/sbin/install
2408 # SunOS /usr/etc/install
2409 # IRIX /sbin/install
2410 # AIX /bin/install
2411 # AmigaOS /C/install, which installs bootblocks on floppy discs
2412 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2413 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2414 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2415 # OS/2's system install, which has a completely different semantic
2416 # ./install, which can be erroneously created by make from ./install.sh.
2417 # Reject install programs that cannot install multiple files.
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2419 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2420 if test -z "$INSTALL"; then
2421 if test "${ac_cv_path_install+set}" = set; then :
2422   $as_echo_n "(cached) " >&6
2423 else
2424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425 for as_dir in $PATH
2426 do
2427   IFS=$as_save_IFS
2428   test -z "$as_dir" && as_dir=.
2429     # Account for people who put trailing slashes in PATH elements.
2430 case $as_dir/ in #((
2431   ./ | .// | /[cC]/* | \
2432   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2433   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2434   /usr/ucb/* ) ;;
2435   *)
2436     # OSF1 and SCO ODT 3.0 have their own names for install.
2437     # Don't use installbsd from OSF since it installs stuff as root
2438     # by default.
2439     for ac_prog in ginstall scoinst install; do
2440       for ac_exec_ext in '' $ac_executable_extensions; do
2441         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2442           if test $ac_prog = install &&
2443             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2444             # AIX install.  It has an incompatible calling convention.
2445             :
2446           elif test $ac_prog = install &&
2447             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2448             # program-specific install script used by HP pwplus--don't use.
2449             :
2450           else
2451             rm -rf conftest.one conftest.two conftest.dir
2452             echo one > conftest.one
2453             echo two > conftest.two
2454             mkdir conftest.dir
2455             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2456               test -s conftest.one && test -s conftest.two &&
2457               test -s conftest.dir/conftest.one &&
2458               test -s conftest.dir/conftest.two
2459             then
2460               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2461               break 3
2462             fi
2463           fi
2464         fi
2465       done
2466     done
2467     ;;
2468 esac
2469
2470   done
2471 IFS=$as_save_IFS
2472
2473 rm -rf conftest.one conftest.two conftest.dir
2474
2475 fi
2476   if test "${ac_cv_path_install+set}" = set; then
2477     INSTALL=$ac_cv_path_install
2478   else
2479     # As a last resort, use the slow shell script.  Don't cache a
2480     # value for INSTALL within a source directory, because that will
2481     # break other packages using the cache if that directory is
2482     # removed, or if the value is a relative name.
2483     INSTALL=$ac_install_sh
2484   fi
2485 fi
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2487 $as_echo "$INSTALL" >&6; }
2488
2489 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2490 # It thinks the first close brace ends the variable substitution.
2491 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2492
2493 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2494
2495 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2496
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2498 $as_echo_n "checking whether build environment is sane... " >&6; }
2499 # Just in case
2500 sleep 1
2501 echo timestamp > conftest.file
2502 # Reject unsafe characters in $srcdir or the absolute working directory
2503 # name.  Accept space and tab only in the latter.
2504 am_lf='
2505 '
2506 case `pwd` in
2507   *[\\\"\#\$\&\'\`$am_lf]*)
2508     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2509 esac
2510 case $srcdir in
2511   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2512     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2513 esac
2514
2515 # Do `set' in a subshell so we don't clobber the current shell's
2516 # arguments.  Must try -L first in case configure is actually a
2517 # symlink; some systems play weird games with the mod time of symlinks
2518 # (eg FreeBSD returns the mod time of the symlink's containing
2519 # directory).
2520 if (
2521    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2522    if test "$*" = "X"; then
2523       # -L didn't work.
2524       set X `ls -t "$srcdir/configure" conftest.file`
2525    fi
2526    rm -f conftest.file
2527    if test "$*" != "X $srcdir/configure conftest.file" \
2528       && test "$*" != "X conftest.file $srcdir/configure"; then
2529
2530       # If neither matched, then we have a broken ls.  This can happen
2531       # if, for instance, CONFIG_SHELL is bash and it inherits a
2532       # broken ls alias from the environment.  This has actually
2533       # happened.  Such a system could not be considered "sane".
2534       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2535 alias in your environment" "$LINENO" 5
2536    fi
2537
2538    test "$2" = conftest.file
2539    )
2540 then
2541    # Ok.
2542    :
2543 else
2544    as_fn_error "newly created file is older than distributed files!
2545 Check your system clock" "$LINENO" 5
2546 fi
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2548 $as_echo "yes" >&6; }
2549 test "$program_prefix" != NONE &&
2550   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2551 # Use a double $ so make ignores it.
2552 test "$program_suffix" != NONE &&
2553   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2554 # Double any \ or $.
2555 # By default was `s,x,x', remove it if useless.
2556 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2557 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2558
2559 # expand $ac_aux_dir to an absolute path
2560 am_aux_dir=`cd $ac_aux_dir && pwd`
2561
2562 if test x"${MISSING+set}" != xset; then
2563   case $am_aux_dir in
2564   *\ * | *\     *)
2565     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2566   *)
2567     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2568   esac
2569 fi
2570 # Use eval to expand $SHELL
2571 if eval "$MISSING --run true"; then
2572   am_missing_run="$MISSING --run "
2573 else
2574   am_missing_run=
2575   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2576 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2577 fi
2578
2579 if test x"${install_sh}" != xset; then
2580   case $am_aux_dir in
2581   *\ * | *\     *)
2582     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2583   *)
2584     install_sh="\${SHELL} $am_aux_dir/install-sh"
2585   esac
2586 fi
2587
2588 # Installed binaries are usually stripped using `strip' when the user
2589 # run `make install-strip'.  However `strip' might not be the right
2590 # tool to use in cross-compilation environments, therefore Automake
2591 # will honor the `STRIP' environment variable to overrule this program.
2592 if test "$cross_compiling" != no; then
2593   if test -n "$ac_tool_prefix"; then
2594   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2595 set dummy ${ac_tool_prefix}strip; ac_word=$2
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2597 $as_echo_n "checking for $ac_word... " >&6; }
2598 if test "${ac_cv_prog_STRIP+set}" = set; then :
2599   $as_echo_n "(cached) " >&6
2600 else
2601   if test -n "$STRIP"; then
2602   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2603 else
2604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605 for as_dir in $PATH
2606 do
2607   IFS=$as_save_IFS
2608   test -z "$as_dir" && as_dir=.
2609     for ac_exec_ext in '' $ac_executable_extensions; do
2610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2611     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2612     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2613     break 2
2614   fi
2615 done
2616   done
2617 IFS=$as_save_IFS
2618
2619 fi
2620 fi
2621 STRIP=$ac_cv_prog_STRIP
2622 if test -n "$STRIP"; then
2623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2624 $as_echo "$STRIP" >&6; }
2625 else
2626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2627 $as_echo "no" >&6; }
2628 fi
2629
2630
2631 fi
2632 if test -z "$ac_cv_prog_STRIP"; then
2633   ac_ct_STRIP=$STRIP
2634   # Extract the first word of "strip", so it can be a program name with args.
2635 set dummy strip; ac_word=$2
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2637 $as_echo_n "checking for $ac_word... " >&6; }
2638 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2639   $as_echo_n "(cached) " >&6
2640 else
2641   if test -n "$ac_ct_STRIP"; then
2642   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2643 else
2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 for as_dir in $PATH
2646 do
2647   IFS=$as_save_IFS
2648   test -z "$as_dir" && as_dir=.
2649     for ac_exec_ext in '' $ac_executable_extensions; do
2650   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2651     ac_cv_prog_ac_ct_STRIP="strip"
2652     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2653     break 2
2654   fi
2655 done
2656   done
2657 IFS=$as_save_IFS
2658
2659 fi
2660 fi
2661 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2662 if test -n "$ac_ct_STRIP"; then
2663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2664 $as_echo "$ac_ct_STRIP" >&6; }
2665 else
2666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2667 $as_echo "no" >&6; }
2668 fi
2669
2670   if test "x$ac_ct_STRIP" = x; then
2671     STRIP=":"
2672   else
2673     case $cross_compiling:$ac_tool_warned in
2674 yes:)
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2676 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2677 ac_tool_warned=yes ;;
2678 esac
2679     STRIP=$ac_ct_STRIP
2680   fi
2681 else
2682   STRIP="$ac_cv_prog_STRIP"
2683 fi
2684
2685 fi
2686 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2687
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2689 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2690 if test -z "$MKDIR_P"; then
2691   if test "${ac_cv_path_mkdir+set}" = set; then :
2692   $as_echo_n "(cached) " >&6
2693 else
2694   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2696 do
2697   IFS=$as_save_IFS
2698   test -z "$as_dir" && as_dir=.
2699     for ac_prog in mkdir gmkdir; do
2700          for ac_exec_ext in '' $ac_executable_extensions; do
2701            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2702            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2703              'mkdir (GNU coreutils) '* | \
2704              'mkdir (coreutils) '* | \
2705              'mkdir (fileutils) '4.1*)
2706                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2707                break 3;;
2708            esac
2709          done
2710        done
2711   done
2712 IFS=$as_save_IFS
2713
2714 fi
2715
2716   test -d ./--version && rmdir ./--version
2717   if test "${ac_cv_path_mkdir+set}" = set; then
2718     MKDIR_P="$ac_cv_path_mkdir -p"
2719   else
2720     # As a last resort, use the slow shell script.  Don't cache a
2721     # value for MKDIR_P within a source directory, because that will
2722     # break other packages using the cache if that directory is
2723     # removed, or if the value is a relative name.
2724     MKDIR_P="$ac_install_sh -d"
2725   fi
2726 fi
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2728 $as_echo "$MKDIR_P" >&6; }
2729
2730 mkdir_p="$MKDIR_P"
2731 case $mkdir_p in
2732   [\\/$]* | ?:[\\/]*) ;;
2733   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2734 esac
2735
2736 for ac_prog in gawk mawk nawk awk
2737 do
2738   # Extract the first word of "$ac_prog", so it can be a program name with args.
2739 set dummy $ac_prog; ac_word=$2
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2741 $as_echo_n "checking for $ac_word... " >&6; }
2742 if test "${ac_cv_prog_AWK+set}" = set; then :
2743   $as_echo_n "(cached) " >&6
2744 else
2745   if test -n "$AWK"; then
2746   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2747 else
2748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749 for as_dir in $PATH
2750 do
2751   IFS=$as_save_IFS
2752   test -z "$as_dir" && as_dir=.
2753     for ac_exec_ext in '' $ac_executable_extensions; do
2754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2755     ac_cv_prog_AWK="$ac_prog"
2756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2757     break 2
2758   fi
2759 done
2760   done
2761 IFS=$as_save_IFS
2762
2763 fi
2764 fi
2765 AWK=$ac_cv_prog_AWK
2766 if test -n "$AWK"; then
2767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2768 $as_echo "$AWK" >&6; }
2769 else
2770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2771 $as_echo "no" >&6; }
2772 fi
2773
2774
2775   test -n "$AWK" && break
2776 done
2777
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2779 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2780 set x ${MAKE-make}
2781 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2782 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2783   $as_echo_n "(cached) " >&6
2784 else
2785   cat >conftest.make <<\_ACEOF
2786 SHELL = /bin/sh
2787 all:
2788         @echo '@@@%%%=$(MAKE)=@@@%%%'
2789 _ACEOF
2790 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2791 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2792   *@@@%%%=?*=@@@%%%*)
2793     eval ac_cv_prog_make_${ac_make}_set=yes;;
2794   *)
2795     eval ac_cv_prog_make_${ac_make}_set=no;;
2796 esac
2797 rm -f conftest.make
2798 fi
2799 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2801 $as_echo "yes" >&6; }
2802   SET_MAKE=
2803 else
2804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2805 $as_echo "no" >&6; }
2806   SET_MAKE="MAKE=${MAKE-make}"
2807 fi
2808
2809 rm -rf .tst 2>/dev/null
2810 mkdir .tst 2>/dev/null
2811 if test -d .tst; then
2812   am__leading_dot=.
2813 else
2814   am__leading_dot=_
2815 fi
2816 rmdir .tst 2>/dev/null
2817
2818 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2819   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2820   # is not polluted with repeated "-I."
2821   am__isrc=' -I$(srcdir)'
2822   # test to see if srcdir already configured
2823   if test -f $srcdir/config.status; then
2824     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2825   fi
2826 fi
2827
2828 # test whether we have cygpath
2829 if test -z "$CYGPATH_W"; then
2830   if (cygpath --version) >/dev/null 2>/dev/null; then
2831     CYGPATH_W='cygpath -w'
2832   else
2833     CYGPATH_W=echo
2834   fi
2835 fi
2836
2837
2838 # Define the identity of the package.
2839  PACKAGE='nbd'
2840  VERSION='2.9.15'
2841
2842
2843 cat >>confdefs.h <<_ACEOF
2844 #define PACKAGE "$PACKAGE"
2845 _ACEOF
2846
2847
2848 cat >>confdefs.h <<_ACEOF
2849 #define VERSION "$VERSION"
2850 _ACEOF
2851
2852 # Some tools Automake needs.
2853
2854 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2855
2856
2857 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2858
2859
2860 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2861
2862
2863 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2864
2865
2866 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2867
2868 # We need awk for the "check" target.  The system "awk" is bad on
2869 # some platforms.
2870 # Always define AMTAR for backward compatibility.
2871
2872 AMTAR=${AMTAR-"${am_missing_run}tar"}
2873
2874 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2875
2876
2877
2878
2879
2880
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2882 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2883     # Check whether --enable-maintainer-mode was given.
2884 if test "${enable_maintainer_mode+set}" = set; then :
2885   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2886 else
2887   USE_MAINTAINER_MODE=no
2888 fi
2889
2890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2891 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2892    if test $USE_MAINTAINER_MODE = yes; then
2893   MAINTAINER_MODE_TRUE=
2894   MAINTAINER_MODE_FALSE='#'
2895 else
2896   MAINTAINER_MODE_TRUE='#'
2897   MAINTAINER_MODE_FALSE=
2898 fi
2899
2900   MAINT=$MAINTAINER_MODE_TRUE
2901
2902
2903
2904 # Check whether --enable-lfs was given.
2905 if test "${enable_lfs+set}" = set; then :
2906   enableval=$enable_lfs;
2907     if test "x$enableval" = "xyes" ; then
2908       NBD_LFS=1
2909     else
2910       NBD_LFS=0
2911     fi
2912
2913 else
2914   NBD_LFS=1
2915
2916 fi
2917
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Large File Support should be enabled" >&5
2919 $as_echo_n "checking whether Large File Support should be enabled... " >&6; }
2920 if test $NBD_LFS -eq 1; then
2921
2922 $as_echo "#define NBD_LFS 1" >>confdefs.h
2923
2924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2925 $as_echo "yes" >&6; }
2926 else
2927   $as_echo "#define NBD_LFS 0" >>confdefs.h
2928
2929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2930 $as_echo "no" >&6; }
2931 fi
2932
2933 # Check whether --enable-syslog was given.
2934 if test "${enable_syslog+set}" = set; then :
2935   enableval=$enable_syslog;
2936     if test "x$enableval" = "xyes" ; then
2937       ISSERVER=1
2938     else
2939       ISSERVER=0
2940     fi
2941
2942 else
2943   ISSERVER=0
2944
2945 fi
2946
2947
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether syslog logging is requested" >&5
2949 $as_echo_n "checking whether syslog logging is requested... " >&6; }
2950 if test $ISSERVER -eq 1; then
2951
2952 $as_echo "#define ISSERVER 1" >>confdefs.h
2953
2954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2955 $as_echo "yes" >&6; }
2956 else
2957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2958 $as_echo "no" >&6; }
2959 fi
2960
2961 # Check whether --enable-debug was given.
2962 if test "${enable_debug+set}" = set; then :
2963   enableval=$enable_debug;
2964     if test "x$enableval" = "xyes"; then
2965       DODBG=1
2966     else
2967       DODBG=0
2968     fi
2969
2970 else
2971   DODBG=0
2972
2973 fi
2974
2975
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a debugging version is requested" >&5
2977 $as_echo_n "checking whether a debugging version is requested... " >&6; }
2978 if test $DODBG -eq 1; then
2979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2980 $as_echo "yes" >&6; }
2981   if test $ISSERVER -eq 1; then
2982     as_fn_error "You requested both syslog logging and a debugging version of the server. Bad idea!" "$LINENO" 5
2983   fi
2984
2985 $as_echo "#define DODBG 1" >>confdefs.h
2986
2987
2988 $as_echo "#define NOFORK 1" >>confdefs.h
2989
2990 else
2991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2992 $as_echo "no" >&6; }
2993 fi
2994
2995 # Check whether --enable-sdp was given.
2996 if test "${enable_sdp+set}" = set; then :
2997   enableval=$enable_sdp;
2998     if test "x$enableval" = "xyes"; then
2999
3000 $as_echo "#define WITH_SDP 1" >>confdefs.h
3001
3002     fi
3003
3004
3005 fi
3006
3007
3008 ac_ext=c
3009 ac_cpp='$CPP $CPPFLAGS'
3010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3013 if test -n "$ac_tool_prefix"; then
3014   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3015 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3017 $as_echo_n "checking for $ac_word... " >&6; }
3018 if test "${ac_cv_prog_CC+set}" = set; then :
3019   $as_echo_n "(cached) " >&6
3020 else
3021   if test -n "$CC"; then
3022   ac_cv_prog_CC="$CC" # Let the user override the test.
3023 else
3024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3025 for as_dir in $PATH
3026 do
3027   IFS=$as_save_IFS
3028   test -z "$as_dir" && as_dir=.
3029     for ac_exec_ext in '' $ac_executable_extensions; do
3030   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3031     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3032     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3033     break 2
3034   fi
3035 done
3036   done
3037 IFS=$as_save_IFS
3038
3039 fi
3040 fi
3041 CC=$ac_cv_prog_CC
3042 if test -n "$CC"; then
3043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3044 $as_echo "$CC" >&6; }
3045 else
3046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3047 $as_echo "no" >&6; }
3048 fi
3049
3050
3051 fi
3052 if test -z "$ac_cv_prog_CC"; then
3053   ac_ct_CC=$CC
3054   # Extract the first word of "gcc", so it can be a program name with args.
3055 set dummy gcc; ac_word=$2
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3057 $as_echo_n "checking for $ac_word... " >&6; }
3058 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3059   $as_echo_n "(cached) " >&6
3060 else
3061   if test -n "$ac_ct_CC"; then
3062   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3063 else
3064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065 for as_dir in $PATH
3066 do
3067   IFS=$as_save_IFS
3068   test -z "$as_dir" && as_dir=.
3069     for ac_exec_ext in '' $ac_executable_extensions; do
3070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3071     ac_cv_prog_ac_ct_CC="gcc"
3072     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3073     break 2
3074   fi
3075 done
3076   done
3077 IFS=$as_save_IFS
3078
3079 fi
3080 fi
3081 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3082 if test -n "$ac_ct_CC"; then
3083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3084 $as_echo "$ac_ct_CC" >&6; }
3085 else
3086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3087 $as_echo "no" >&6; }
3088 fi
3089
3090   if test "x$ac_ct_CC" = x; then
3091     CC=""
3092   else
3093     case $cross_compiling:$ac_tool_warned in
3094 yes:)
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3097 ac_tool_warned=yes ;;
3098 esac
3099     CC=$ac_ct_CC
3100   fi
3101 else
3102   CC="$ac_cv_prog_CC"
3103 fi
3104
3105 if test -z "$CC"; then
3106           if test -n "$ac_tool_prefix"; then
3107     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3108 set dummy ${ac_tool_prefix}cc; ac_word=$2
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3110 $as_echo_n "checking for $ac_word... " >&6; }
3111 if test "${ac_cv_prog_CC+set}" = set; then :
3112   $as_echo_n "(cached) " >&6
3113 else
3114   if test -n "$CC"; then
3115   ac_cv_prog_CC="$CC" # Let the user override the test.
3116 else
3117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118 for as_dir in $PATH
3119 do
3120   IFS=$as_save_IFS
3121   test -z "$as_dir" && as_dir=.
3122     for ac_exec_ext in '' $ac_executable_extensions; do
3123   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3124     ac_cv_prog_CC="${ac_tool_prefix}cc"
3125     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3126     break 2
3127   fi
3128 done
3129   done
3130 IFS=$as_save_IFS
3131
3132 fi
3133 fi
3134 CC=$ac_cv_prog_CC
3135 if test -n "$CC"; then
3136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3137 $as_echo "$CC" >&6; }
3138 else
3139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3140 $as_echo "no" >&6; }
3141 fi
3142
3143
3144   fi
3145 fi
3146 if test -z "$CC"; then
3147   # Extract the first word of "cc", so it can be a program name with args.
3148 set dummy cc; ac_word=$2
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3150 $as_echo_n "checking for $ac_word... " >&6; }
3151 if test "${ac_cv_prog_CC+set}" = set; then :
3152   $as_echo_n "(cached) " >&6
3153 else
3154   if test -n "$CC"; then
3155   ac_cv_prog_CC="$CC" # Let the user override the test.
3156 else
3157   ac_prog_rejected=no
3158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3159 for as_dir in $PATH
3160 do
3161   IFS=$as_save_IFS
3162   test -z "$as_dir" && as_dir=.
3163     for ac_exec_ext in '' $ac_executable_extensions; do
3164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3165     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3166        ac_prog_rejected=yes
3167        continue
3168      fi
3169     ac_cv_prog_CC="cc"
3170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3171     break 2
3172   fi
3173 done
3174   done
3175 IFS=$as_save_IFS
3176
3177 if test $ac_prog_rejected = yes; then
3178   # We found a bogon in the path, so make sure we never use it.
3179   set dummy $ac_cv_prog_CC
3180   shift
3181   if test $# != 0; then
3182     # We chose a different compiler from the bogus one.
3183     # However, it has the same basename, so the bogon will be chosen
3184     # first if we set CC to just the basename; use the full file name.
3185     shift
3186     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3187   fi
3188 fi
3189 fi
3190 fi
3191 CC=$ac_cv_prog_CC
3192 if test -n "$CC"; then
3193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3194 $as_echo "$CC" >&6; }
3195 else
3196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197 $as_echo "no" >&6; }
3198 fi
3199
3200
3201 fi
3202 if test -z "$CC"; then
3203   if test -n "$ac_tool_prefix"; then
3204   for ac_prog in cl.exe
3205   do
3206     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3207 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3209 $as_echo_n "checking for $ac_word... " >&6; }
3210 if test "${ac_cv_prog_CC+set}" = set; then :
3211   $as_echo_n "(cached) " >&6
3212 else
3213   if test -n "$CC"; then
3214   ac_cv_prog_CC="$CC" # Let the user override the test.
3215 else
3216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217 for as_dir in $PATH
3218 do
3219   IFS=$as_save_IFS
3220   test -z "$as_dir" && as_dir=.
3221     for ac_exec_ext in '' $ac_executable_extensions; do
3222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3223     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3224     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3225     break 2
3226   fi
3227 done
3228   done
3229 IFS=$as_save_IFS
3230
3231 fi
3232 fi
3233 CC=$ac_cv_prog_CC
3234 if test -n "$CC"; then
3235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3236 $as_echo "$CC" >&6; }
3237 else
3238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3239 $as_echo "no" >&6; }
3240 fi
3241
3242
3243     test -n "$CC" && break
3244   done
3245 fi
3246 if test -z "$CC"; then
3247   ac_ct_CC=$CC
3248   for ac_prog in cl.exe
3249 do
3250   # Extract the first word of "$ac_prog", so it can be a program name with args.
3251 set dummy $ac_prog; ac_word=$2
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3253 $as_echo_n "checking for $ac_word... " >&6; }
3254 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3255   $as_echo_n "(cached) " >&6
3256 else
3257   if test -n "$ac_ct_CC"; then
3258   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3259 else
3260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3261 for as_dir in $PATH
3262 do
3263   IFS=$as_save_IFS
3264   test -z "$as_dir" && as_dir=.
3265     for ac_exec_ext in '' $ac_executable_extensions; do
3266   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3267     ac_cv_prog_ac_ct_CC="$ac_prog"
3268     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3269     break 2
3270   fi
3271 done
3272   done
3273 IFS=$as_save_IFS
3274
3275 fi
3276 fi
3277 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3278 if test -n "$ac_ct_CC"; then
3279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3280 $as_echo "$ac_ct_CC" >&6; }
3281 else
3282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3283 $as_echo "no" >&6; }
3284 fi
3285
3286
3287   test -n "$ac_ct_CC" && break
3288 done
3289
3290   if test "x$ac_ct_CC" = x; then
3291     CC=""
3292   else
3293     case $cross_compiling:$ac_tool_warned in
3294 yes:)
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3297 ac_tool_warned=yes ;;
3298 esac
3299     CC=$ac_ct_CC
3300   fi
3301 fi
3302
3303 fi
3304
3305
3306 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3308 as_fn_error "no acceptable C compiler found in \$PATH
3309 See \`config.log' for more details." "$LINENO" 5; }
3310
3311 # Provide some information about the compiler.
3312 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3313 set X $ac_compile
3314 ac_compiler=$2
3315 for ac_option in --version -v -V -qversion; do
3316   { { ac_try="$ac_compiler $ac_option >&5"
3317 case "(($ac_try" in
3318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319   *) ac_try_echo=$ac_try;;
3320 esac
3321 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3322 $as_echo "$ac_try_echo"; } >&5
3323   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3324   ac_status=$?
3325   if test -s conftest.err; then
3326     sed '10a\
3327 ... rest of stderr output deleted ...
3328          10q' conftest.err >conftest.er1
3329     cat conftest.er1 >&5
3330   fi
3331   rm -f conftest.er1 conftest.err
3332   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3333   test $ac_status = 0; }
3334 done
3335
3336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3337 /* end confdefs.h.  */
3338
3339 int
3340 main ()
3341 {
3342
3343   ;
3344   return 0;
3345 }
3346 _ACEOF
3347 ac_clean_files_save=$ac_clean_files
3348 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3349 # Try to create an executable without -o first, disregard a.out.
3350 # It will help us diagnose broken compilers, and finding out an intuition
3351 # of exeext.
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3353 $as_echo_n "checking whether the C compiler works... " >&6; }
3354 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3355
3356 # The possible output files:
3357 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3358
3359 ac_rmfiles=
3360 for ac_file in $ac_files
3361 do
3362   case $ac_file in
3363     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3364     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3365   esac
3366 done
3367 rm -f $ac_rmfiles
3368
3369 if { { ac_try="$ac_link_default"
3370 case "(($ac_try" in
3371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372   *) ac_try_echo=$ac_try;;
3373 esac
3374 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3375 $as_echo "$ac_try_echo"; } >&5
3376   (eval "$ac_link_default") 2>&5
3377   ac_status=$?
3378   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3379   test $ac_status = 0; }; then :
3380   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3381 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3382 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3383 # so that the user can short-circuit this test for compilers unknown to
3384 # Autoconf.
3385 for ac_file in $ac_files ''
3386 do
3387   test -f "$ac_file" || continue
3388   case $ac_file in
3389     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3390         ;;
3391     [ab].out )
3392         # We found the default executable, but exeext='' is most
3393         # certainly right.
3394         break;;
3395     *.* )
3396         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3397         then :; else
3398            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3399         fi
3400         # We set ac_cv_exeext here because the later test for it is not
3401         # safe: cross compilers may not add the suffix if given an `-o'
3402         # argument, so we may need to know it at that point already.
3403         # Even if this section looks crufty: it has the advantage of
3404         # actually working.
3405         break;;
3406     * )
3407         break;;
3408   esac
3409 done
3410 test "$ac_cv_exeext" = no && ac_cv_exeext=
3411
3412 else
3413   ac_file=''
3414 fi
3415 if test -z "$ac_file"; then :
3416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3417 $as_echo "no" >&6; }
3418 $as_echo "$as_me: failed program was:" >&5
3419 sed 's/^/| /' conftest.$ac_ext >&5
3420
3421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3423 { as_fn_set_status 77
3424 as_fn_error "C compiler cannot create executables
3425 See \`config.log' for more details." "$LINENO" 5; }; }
3426 else
3427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3428 $as_echo "yes" >&6; }
3429 fi
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3431 $as_echo_n "checking for C compiler default output file name... " >&6; }
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3433 $as_echo "$ac_file" >&6; }
3434 ac_exeext=$ac_cv_exeext
3435
3436 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3437 ac_clean_files=$ac_clean_files_save
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3439 $as_echo_n "checking for suffix of executables... " >&6; }
3440 if { { ac_try="$ac_link"
3441 case "(($ac_try" in
3442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443   *) ac_try_echo=$ac_try;;
3444 esac
3445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3446 $as_echo "$ac_try_echo"; } >&5
3447   (eval "$ac_link") 2>&5
3448   ac_status=$?
3449   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3450   test $ac_status = 0; }; then :
3451   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3452 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3453 # work properly (i.e., refer to `conftest.exe'), while it won't with
3454 # `rm'.
3455 for ac_file in conftest.exe conftest conftest.*; do
3456   test -f "$ac_file" || continue
3457   case $ac_file in
3458     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3459     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3460           break;;
3461     * ) break;;
3462   esac
3463 done
3464 else
3465   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3467 as_fn_error "cannot compute suffix of executables: cannot compile and link
3468 See \`config.log' for more details." "$LINENO" 5; }
3469 fi
3470 rm -f conftest conftest$ac_cv_exeext
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3472 $as_echo "$ac_cv_exeext" >&6; }
3473
3474 rm -f conftest.$ac_ext
3475 EXEEXT=$ac_cv_exeext
3476 ac_exeext=$EXEEXT
3477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478 /* end confdefs.h.  */
3479 #include <stdio.h>
3480 int
3481 main ()
3482 {
3483 FILE *f = fopen ("conftest.out", "w");
3484  return ferror (f) || fclose (f) != 0;
3485
3486   ;
3487   return 0;
3488 }
3489 _ACEOF
3490 ac_clean_files="$ac_clean_files conftest.out"
3491 # Check that the compiler produces executables we can run.  If not, either
3492 # the compiler is broken, or we cross compile.
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3494 $as_echo_n "checking whether we are cross compiling... " >&6; }
3495 if test "$cross_compiling" != yes; then
3496   { { ac_try="$ac_link"
3497 case "(($ac_try" in
3498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499   *) ac_try_echo=$ac_try;;
3500 esac
3501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3502 $as_echo "$ac_try_echo"; } >&5
3503   (eval "$ac_link") 2>&5
3504   ac_status=$?
3505   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3506   test $ac_status = 0; }
3507   if { ac_try='./conftest$ac_cv_exeext'
3508   { { case "(($ac_try" in
3509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510   *) ac_try_echo=$ac_try;;
3511 esac
3512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3513 $as_echo "$ac_try_echo"; } >&5
3514   (eval "$ac_try") 2>&5
3515   ac_status=$?
3516   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3517   test $ac_status = 0; }; }; then
3518     cross_compiling=no
3519   else
3520     if test "$cross_compiling" = maybe; then
3521         cross_compiling=yes
3522     else
3523         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3525 as_fn_error "cannot run C compiled programs.
3526 If you meant to cross compile, use \`--host'.
3527 See \`config.log' for more details." "$LINENO" 5; }
3528     fi
3529   fi
3530 fi
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3532 $as_echo "$cross_compiling" >&6; }
3533
3534 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3535 ac_clean_files=$ac_clean_files_save
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3537 $as_echo_n "checking for suffix of object files... " >&6; }
3538 if test "${ac_cv_objext+set}" = set; then :
3539   $as_echo_n "(cached) " >&6
3540 else
3541   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542 /* end confdefs.h.  */
3543
3544 int
3545 main ()
3546 {
3547
3548   ;
3549   return 0;
3550 }
3551 _ACEOF
3552 rm -f conftest.o conftest.obj
3553 if { { ac_try="$ac_compile"
3554 case "(($ac_try" in
3555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3556   *) ac_try_echo=$ac_try;;
3557 esac
3558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3559 $as_echo "$ac_try_echo"; } >&5
3560   (eval "$ac_compile") 2>&5
3561   ac_status=$?
3562   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3563   test $ac_status = 0; }; then :
3564   for ac_file in conftest.o conftest.obj conftest.*; do
3565   test -f "$ac_file" || continue;
3566   case $ac_file in
3567     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3568     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3569        break;;
3570   esac
3571 done
3572 else
3573   $as_echo "$as_me: failed program was:" >&5
3574 sed 's/^/| /' conftest.$ac_ext >&5
3575
3576 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3578 as_fn_error "cannot compute suffix of object files: cannot compile
3579 See \`config.log' for more details." "$LINENO" 5; }
3580 fi
3581 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3582 fi
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3584 $as_echo "$ac_cv_objext" >&6; }
3585 OBJEXT=$ac_cv_objext
3586 ac_objext=$OBJEXT
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3588 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3589 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3590   $as_echo_n "(cached) " >&6
3591 else
3592   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3593 /* end confdefs.h.  */
3594
3595 int
3596 main ()
3597 {
3598 #ifndef __GNUC__
3599        choke me
3600 #endif
3601
3602   ;
3603   return 0;
3604 }
3605 _ACEOF
3606 if ac_fn_c_try_compile "$LINENO"; then :
3607   ac_compiler_gnu=yes
3608 else
3609   ac_compiler_gnu=no
3610 fi
3611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3612 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3613
3614 fi
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3616 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3617 if test $ac_compiler_gnu = yes; then
3618   GCC=yes
3619 else
3620   GCC=
3621 fi
3622 ac_test_CFLAGS=${CFLAGS+set}
3623 ac_save_CFLAGS=$CFLAGS
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3625 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3626 if test "${ac_cv_prog_cc_g+set}" = set; then :
3627   $as_echo_n "(cached) " >&6
3628 else
3629   ac_save_c_werror_flag=$ac_c_werror_flag
3630    ac_c_werror_flag=yes
3631    ac_cv_prog_cc_g=no
3632    CFLAGS="-g"
3633    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3634 /* end confdefs.h.  */
3635
3636 int
3637 main ()
3638 {
3639
3640   ;
3641   return 0;
3642 }
3643 _ACEOF
3644 if ac_fn_c_try_compile "$LINENO"; then :
3645   ac_cv_prog_cc_g=yes
3646 else
3647   CFLAGS=""
3648       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649 /* end confdefs.h.  */
3650
3651 int
3652 main ()
3653 {
3654
3655   ;
3656   return 0;
3657 }
3658 _ACEOF
3659 if ac_fn_c_try_compile "$LINENO"; then :
3660
3661 else
3662   ac_c_werror_flag=$ac_save_c_werror_flag
3663          CFLAGS="-g"
3664          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665 /* end confdefs.h.  */
3666
3667 int
3668 main ()
3669 {
3670
3671   ;
3672   return 0;
3673 }
3674 _ACEOF
3675 if ac_fn_c_try_compile "$LINENO"; then :
3676   ac_cv_prog_cc_g=yes
3677 fi
3678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3679 fi
3680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3681 fi
3682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3683    ac_c_werror_flag=$ac_save_c_werror_flag
3684 fi
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3686 $as_echo "$ac_cv_prog_cc_g" >&6; }
3687 if test "$ac_test_CFLAGS" = set; then
3688   CFLAGS=$ac_save_CFLAGS
3689 elif test $ac_cv_prog_cc_g = yes; then
3690   if test "$GCC" = yes; then
3691     CFLAGS="-g -O2"
3692   else
3693     CFLAGS="-g"
3694   fi
3695 else
3696   if test "$GCC" = yes; then
3697     CFLAGS="-O2"
3698   else
3699     CFLAGS=
3700   fi
3701 fi
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3703 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3704 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3705   $as_echo_n "(cached) " >&6
3706 else
3707   ac_cv_prog_cc_c89=no
3708 ac_save_CC=$CC
3709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3710 /* end confdefs.h.  */
3711 #include <stdarg.h>
3712 #include <stdio.h>
3713 #include <sys/types.h>
3714 #include <sys/stat.h>
3715 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3716 struct buf { int x; };
3717 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3718 static char *e (p, i)
3719      char **p;
3720      int i;
3721 {
3722   return p[i];
3723 }
3724 static char *f (char * (*g) (char **, int), char **p, ...)
3725 {
3726   char *s;
3727   va_list v;
3728   va_start (v,p);
3729   s = g (p, va_arg (v,int));
3730   va_end (v);
3731   return s;
3732 }
3733
3734 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3735    function prototypes and stuff, but not '\xHH' hex character constants.
3736    These don't provoke an error unfortunately, instead are silently treated
3737    as 'x'.  The following induces an error, until -std is added to get
3738    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3739    array size at least.  It's necessary to write '\x00'==0 to get something
3740    that's true only with -std.  */
3741 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3742
3743 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3744    inside strings and character constants.  */
3745 #define FOO(x) 'x'
3746 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3747
3748 int test (int i, double x);
3749 struct s1 {int (*f) (int a);};
3750 struct s2 {int (*f) (double a);};
3751 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3752 int argc;
3753 char **argv;
3754 int
3755 main ()
3756 {
3757 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3758   ;
3759   return 0;
3760 }
3761 _ACEOF
3762 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3763         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3764 do
3765   CC="$ac_save_CC $ac_arg"
3766   if ac_fn_c_try_compile "$LINENO"; then :
3767   ac_cv_prog_cc_c89=$ac_arg
3768 fi
3769 rm -f core conftest.err conftest.$ac_objext
3770   test "x$ac_cv_prog_cc_c89" != "xno" && break
3771 done
3772 rm -f conftest.$ac_ext
3773 CC=$ac_save_CC
3774
3775 fi
3776 # AC_CACHE_VAL
3777 case "x$ac_cv_prog_cc_c89" in
3778   x)
3779     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3780 $as_echo "none needed" >&6; } ;;
3781   xno)
3782     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3783 $as_echo "unsupported" >&6; } ;;
3784   *)
3785     CC="$CC $ac_cv_prog_cc_c89"
3786     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3787 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3788 esac
3789 if test "x$ac_cv_prog_cc_c89" != xno; then :
3790
3791 fi
3792
3793 ac_ext=c
3794 ac_cpp='$CPP $CPPFLAGS'
3795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3798 DEPDIR="${am__leading_dot}deps"
3799
3800 ac_config_commands="$ac_config_commands depfiles"
3801
3802
3803 am_make=${MAKE-make}
3804 cat > confinc << 'END'
3805 am__doit:
3806         @echo this is the am__doit target
3807 .PHONY: am__doit
3808 END
3809 # If we don't find an include directive, just comment out the code.
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3811 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3812 am__include="#"
3813 am__quote=
3814 _am_result=none
3815 # First try GNU make style include.
3816 echo "include confinc" > confmf
3817 # Ignore all kinds of additional output from `make'.
3818 case `$am_make -s -f confmf 2> /dev/null` in #(
3819 *the\ am__doit\ target*)
3820   am__include=include
3821   am__quote=
3822   _am_result=GNU
3823   ;;
3824 esac
3825 # Now try BSD make style include.
3826 if test "$am__include" = "#"; then
3827    echo '.include "confinc"' > confmf
3828    case `$am_make -s -f confmf 2> /dev/null` in #(
3829    *the\ am__doit\ target*)
3830      am__include=.include
3831      am__quote="\""
3832      _am_result=BSD
3833      ;;
3834    esac
3835 fi
3836
3837
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3839 $as_echo "$_am_result" >&6; }
3840 rm -f confinc confmf
3841
3842 # Check whether --enable-dependency-tracking was given.
3843 if test "${enable_dependency_tracking+set}" = set; then :
3844   enableval=$enable_dependency_tracking;
3845 fi
3846
3847 if test "x$enable_dependency_tracking" != xno; then
3848   am_depcomp="$ac_aux_dir/depcomp"
3849   AMDEPBACKSLASH='\'
3850 fi
3851  if test "x$enable_dependency_tracking" != xno; then
3852   AMDEP_TRUE=
3853   AMDEP_FALSE='#'
3854 else
3855   AMDEP_TRUE='#'
3856   AMDEP_FALSE=
3857 fi
3858
3859
3860
3861 depcc="$CC"   am_compiler_list=
3862
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3864 $as_echo_n "checking dependency style of $depcc... " >&6; }
3865 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3866   $as_echo_n "(cached) " >&6
3867 else
3868   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3869   # We make a subdir and do the tests there.  Otherwise we can end up
3870   # making bogus files that we don't know about and never remove.  For
3871   # instance it was reported that on HP-UX the gcc test will end up
3872   # making a dummy file named `D' -- because `-MD' means `put the output
3873   # in D'.
3874   mkdir conftest.dir
3875   # Copy depcomp to subdir because otherwise we won't find it if we're
3876   # using a relative directory.
3877   cp "$am_depcomp" conftest.dir
3878   cd conftest.dir
3879   # We will build objects and dependencies in a subdirectory because
3880   # it helps to detect inapplicable dependency modes.  For instance
3881   # both Tru64's cc and ICC support -MD to output dependencies as a
3882   # side effect of compilation, but ICC will put the dependencies in
3883   # the current directory while Tru64 will put them in the object
3884   # directory.
3885   mkdir sub
3886
3887   am_cv_CC_dependencies_compiler_type=none
3888   if test "$am_compiler_list" = ""; then
3889      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3890   fi
3891   am__universal=false
3892   case " $depcc " in #(
3893      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3894      esac
3895
3896   for depmode in $am_compiler_list; do
3897     # Setup a source with many dependencies, because some compilers
3898     # like to wrap large dependency lists on column 80 (with \), and
3899     # we should not choose a depcomp mode which is confused by this.
3900     #
3901     # We need to recreate these files for each test, as the compiler may
3902     # overwrite some of them when testing with obscure command lines.
3903     # This happens at least with the AIX C compiler.
3904     : > sub/conftest.c
3905     for i in 1 2 3 4 5 6; do
3906       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3907       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3908       # Solaris 8's {/usr,}/bin/sh.
3909       touch sub/conftst$i.h
3910     done
3911     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3912
3913     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3914     # mode.  It turns out that the SunPro C++ compiler does not properly
3915     # handle `-M -o', and we need to detect this.  Also, some Intel
3916     # versions had trouble with output in subdirs
3917     am__obj=sub/conftest.${OBJEXT-o}
3918     am__minus_obj="-o $am__obj"
3919     case $depmode in
3920     gcc)
3921       # This depmode causes a compiler race in universal mode.
3922       test "$am__universal" = false || continue
3923       ;;
3924     nosideeffect)
3925       # after this tag, mechanisms are not by side-effect, so they'll
3926       # only be used when explicitly requested
3927       if test "x$enable_dependency_tracking" = xyes; then
3928         continue
3929       else
3930         break
3931       fi
3932       ;;
3933     msvisualcpp | msvcmsys)
3934       # This compiler won't grok `-c -o', but also, the minuso test has
3935       # not run yet.  These depmodes are late enough in the game, and
3936       # so weak that their functioning should not be impacted.
3937       am__obj=conftest.${OBJEXT-o}
3938       am__minus_obj=
3939       ;;
3940     none) break ;;
3941     esac
3942     if depmode=$depmode \
3943        source=sub/conftest.c object=$am__obj \
3944        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3945        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3946          >/dev/null 2>conftest.err &&
3947        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3948        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3949        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3950        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3951       # icc doesn't choke on unknown options, it will just issue warnings
3952       # or remarks (even with -Werror).  So we grep stderr for any message
3953       # that says an option was ignored or not supported.
3954       # When given -MP, icc 7.0 and 7.1 complain thusly:
3955       #   icc: Command line warning: ignoring option '-M'; no argument required
3956       # The diagnosis changed in icc 8.0:
3957       #   icc: Command line remark: option '-MP' not supported
3958       if (grep 'ignoring option' conftest.err ||
3959           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3960         am_cv_CC_dependencies_compiler_type=$depmode
3961         break
3962       fi
3963     fi
3964   done
3965
3966   cd ..
3967   rm -rf conftest.dir
3968 else
3969   am_cv_CC_dependencies_compiler_type=none
3970 fi
3971
3972 fi
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3974 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3975 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3976
3977  if
3978   test "x$enable_dependency_tracking" != xno \
3979   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3980   am__fastdepCC_TRUE=
3981   am__fastdepCC_FALSE='#'
3982 else
3983   am__fastdepCC_TRUE='#'
3984   am__fastdepCC_FALSE=
3985 fi
3986
3987
3988 ac_ext=c
3989 ac_cpp='$CPP $CPPFLAGS'
3990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3994 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3995 # On Suns, sometimes $CPP names a directory.
3996 if test -n "$CPP" && test -d "$CPP"; then
3997   CPP=
3998 fi
3999 if test -z "$CPP"; then
4000   if test "${ac_cv_prog_CPP+set}" = set; then :
4001   $as_echo_n "(cached) " >&6
4002 else
4003       # Double quotes because CPP needs to be expanded
4004     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4005     do
4006       ac_preproc_ok=false
4007 for ac_c_preproc_warn_flag in '' yes
4008 do
4009   # Use a header file that comes with gcc, so configuring glibc
4010   # with a fresh cross-compiler works.
4011   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4012   # <limits.h> exists even on freestanding compilers.
4013   # On the NeXT, cc -E runs the code through the compiler's parser,
4014   # not just through cpp. "Syntax error" is here to catch this case.
4015   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4016 /* end confdefs.h.  */
4017 #ifdef __STDC__
4018 # include <limits.h>
4019 #else
4020 # include <assert.h>
4021 #endif
4022                      Syntax error
4023 _ACEOF
4024 if ac_fn_c_try_cpp "$LINENO"; then :
4025
4026 else
4027   # Broken: fails on valid input.
4028 continue
4029 fi
4030 rm -f conftest.err conftest.$ac_ext
4031
4032   # OK, works on sane cases.  Now check whether nonexistent headers
4033   # can be detected and how.
4034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h.  */
4036 #include <ac_nonexistent.h>
4037 _ACEOF
4038 if ac_fn_c_try_cpp "$LINENO"; then :
4039   # Broken: success on invalid input.
4040 continue
4041 else
4042   # Passes both tests.
4043 ac_preproc_ok=:
4044 break
4045 fi
4046 rm -f conftest.err conftest.$ac_ext
4047
4048 done
4049 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4050 rm -f conftest.err conftest.$ac_ext
4051 if $ac_preproc_ok; then :
4052   break
4053 fi
4054
4055     done
4056     ac_cv_prog_CPP=$CPP
4057
4058 fi
4059   CPP=$ac_cv_prog_CPP
4060 else
4061   ac_cv_prog_CPP=$CPP
4062 fi
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4064 $as_echo "$CPP" >&6; }
4065 ac_preproc_ok=false
4066 for ac_c_preproc_warn_flag in '' yes
4067 do
4068   # Use a header file that comes with gcc, so configuring glibc
4069   # with a fresh cross-compiler works.
4070   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4071   # <limits.h> exists even on freestanding compilers.
4072   # On the NeXT, cc -E runs the code through the compiler's parser,
4073   # not just through cpp. "Syntax error" is here to catch this case.
4074   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h.  */
4076 #ifdef __STDC__
4077 # include <limits.h>
4078 #else
4079 # include <assert.h>
4080 #endif
4081                      Syntax error
4082 _ACEOF
4083 if ac_fn_c_try_cpp "$LINENO"; then :
4084
4085 else
4086   # Broken: fails on valid input.
4087 continue
4088 fi
4089 rm -f conftest.err conftest.$ac_ext
4090
4091   # OK, works on sane cases.  Now check whether nonexistent headers
4092   # can be detected and how.
4093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094 /* end confdefs.h.  */
4095 #include <ac_nonexistent.h>
4096 _ACEOF
4097 if ac_fn_c_try_cpp "$LINENO"; then :
4098   # Broken: success on invalid input.
4099 continue
4100 else
4101   # Passes both tests.
4102 ac_preproc_ok=:
4103 break
4104 fi
4105 rm -f conftest.err conftest.$ac_ext
4106
4107 done
4108 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4109 rm -f conftest.err conftest.$ac_ext
4110 if $ac_preproc_ok; then :
4111
4112 else
4113   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4114 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4115 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4116 See \`config.log' for more details." "$LINENO" 5; }
4117 fi
4118
4119 ac_ext=c
4120 ac_cpp='$CPP $CPPFLAGS'
4121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4124
4125
4126 # Make sure we can run config.sub.
4127 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4128   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4129
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4131 $as_echo_n "checking build system type... " >&6; }
4132 if test "${ac_cv_build+set}" = set; then :
4133   $as_echo_n "(cached) " >&6
4134 else
4135   ac_build_alias=$build_alias
4136 test "x$ac_build_alias" = x &&
4137   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4138 test "x$ac_build_alias" = x &&
4139   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4140 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4141   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4142
4143 fi
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4145 $as_echo "$ac_cv_build" >&6; }
4146 case $ac_cv_build in
4147 *-*-*) ;;
4148 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4149 esac
4150 build=$ac_cv_build
4151 ac_save_IFS=$IFS; IFS='-'
4152 set x $ac_cv_build
4153 shift
4154 build_cpu=$1
4155 build_vendor=$2
4156 shift; shift
4157 # Remember, the first character of IFS is used to create $*,
4158 # except with old shells:
4159 build_os=$*
4160 IFS=$ac_save_IFS
4161 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4162
4163
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4165 $as_echo_n "checking host system type... " >&6; }
4166 if test "${ac_cv_host+set}" = set; then :
4167   $as_echo_n "(cached) " >&6
4168 else
4169   if test "x$host_alias" = x; then
4170   ac_cv_host=$ac_cv_build
4171 else
4172   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4173     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4174 fi
4175
4176 fi
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4178 $as_echo "$ac_cv_host" >&6; }
4179 case $ac_cv_host in
4180 *-*-*) ;;
4181 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4182 esac
4183 host=$ac_cv_host
4184 ac_save_IFS=$IFS; IFS='-'
4185 set x $ac_cv_host
4186 shift
4187 host_cpu=$1
4188 host_vendor=$2
4189 shift; shift
4190 # Remember, the first character of IFS is used to create $*,
4191 # except with old shells:
4192 host_os=$*
4193 IFS=$ac_save_IFS
4194 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4195
4196
4197
4198
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4200 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4201 if test "${ac_cv_path_GREP+set}" = set; then :
4202   $as_echo_n "(cached) " >&6
4203 else
4204   if test -z "$GREP"; then
4205   ac_path_GREP_found=false
4206   # Loop through the user's path and test for each of PROGNAME-LIST
4207   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4209 do
4210   IFS=$as_save_IFS
4211   test -z "$as_dir" && as_dir=.
4212     for ac_prog in grep ggrep; do
4213     for ac_exec_ext in '' $ac_executable_extensions; do
4214       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4215       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4216 # Check for GNU ac_path_GREP and select it if it is found.
4217   # Check for GNU $ac_path_GREP
4218 case `"$ac_path_GREP" --version 2>&1` in
4219 *GNU*)
4220   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4221 *)
4222   ac_count=0
4223   $as_echo_n 0123456789 >"conftest.in"
4224   while :
4225   do
4226     cat "conftest.in" "conftest.in" >"conftest.tmp"
4227     mv "conftest.tmp" "conftest.in"
4228     cp "conftest.in" "conftest.nl"
4229     $as_echo 'GREP' >> "conftest.nl"
4230     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4231     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4232     as_fn_arith $ac_count + 1 && ac_count=$as_val
4233     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4234       # Best one so far, save it but keep looking for a better one
4235       ac_cv_path_GREP="$ac_path_GREP"
4236       ac_path_GREP_max=$ac_count
4237     fi
4238     # 10*(2^10) chars as input seems more than enough
4239     test $ac_count -gt 10 && break
4240   done
4241   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4242 esac
4243
4244       $ac_path_GREP_found && break 3
4245     done
4246   done
4247   done
4248 IFS=$as_save_IFS
4249   if test -z "$ac_cv_path_GREP"; then
4250     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4251   fi
4252 else
4253   ac_cv_path_GREP=$GREP
4254 fi
4255
4256 fi
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4258 $as_echo "$ac_cv_path_GREP" >&6; }
4259  GREP="$ac_cv_path_GREP"
4260
4261
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4263 $as_echo_n "checking for egrep... " >&6; }
4264 if test "${ac_cv_path_EGREP+set}" = set; then :
4265   $as_echo_n "(cached) " >&6
4266 else
4267   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4268    then ac_cv_path_EGREP="$GREP -E"
4269    else
4270      if test -z "$EGREP"; then
4271   ac_path_EGREP_found=false
4272   # Loop through the user's path and test for each of PROGNAME-LIST
4273   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4275 do
4276   IFS=$as_save_IFS
4277   test -z "$as_dir" && as_dir=.
4278     for ac_prog in egrep; do
4279     for ac_exec_ext in '' $ac_executable_extensions; do
4280       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4281       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4282 # Check for GNU ac_path_EGREP and select it if it is found.
4283   # Check for GNU $ac_path_EGREP
4284 case `"$ac_path_EGREP" --version 2>&1` in
4285 *GNU*)
4286   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4287 *)
4288   ac_count=0
4289   $as_echo_n 0123456789 >"conftest.in"
4290   while :
4291   do
4292     cat "conftest.in" "conftest.in" >"conftest.tmp"
4293     mv "conftest.tmp" "conftest.in"
4294     cp "conftest.in" "conftest.nl"
4295     $as_echo 'EGREP' >> "conftest.nl"
4296     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4297     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4298     as_fn_arith $ac_count + 1 && ac_count=$as_val
4299     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4300       # Best one so far, save it but keep looking for a better one
4301       ac_cv_path_EGREP="$ac_path_EGREP"
4302       ac_path_EGREP_max=$ac_count
4303     fi
4304     # 10*(2^10) chars as input seems more than enough
4305     test $ac_count -gt 10 && break
4306   done
4307   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4308 esac
4309
4310       $ac_path_EGREP_found && break 3
4311     done
4312   done
4313   done
4314 IFS=$as_save_IFS
4315   if test -z "$ac_cv_path_EGREP"; then
4316     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4317   fi
4318 else
4319   ac_cv_path_EGREP=$EGREP
4320 fi
4321
4322    fi
4323 fi
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4325 $as_echo "$ac_cv_path_EGREP" >&6; }
4326  EGREP="$ac_cv_path_EGREP"
4327
4328
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4330 $as_echo_n "checking for ANSI C header files... " >&6; }
4331 if test "${ac_cv_header_stdc+set}" = set; then :
4332   $as_echo_n "(cached) " >&6
4333 else
4334   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335 /* end confdefs.h.  */
4336 #include <stdlib.h>
4337 #include <stdarg.h>
4338 #include <string.h>
4339 #include <float.h>
4340
4341 int
4342 main ()
4343 {
4344
4345   ;
4346   return 0;
4347 }
4348 _ACEOF
4349 if ac_fn_c_try_compile "$LINENO"; then :
4350   ac_cv_header_stdc=yes
4351 else
4352   ac_cv_header_stdc=no
4353 fi
4354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4355
4356 if test $ac_cv_header_stdc = yes; then
4357   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4358   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359 /* end confdefs.h.  */
4360 #include <string.h>
4361
4362 _ACEOF
4363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4364   $EGREP "memchr" >/dev/null 2>&1; then :
4365
4366 else
4367   ac_cv_header_stdc=no
4368 fi
4369 rm -f conftest*
4370
4371 fi
4372
4373 if test $ac_cv_header_stdc = yes; then
4374   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376 /* end confdefs.h.  */
4377 #include <stdlib.h>
4378
4379 _ACEOF
4380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4381   $EGREP "free" >/dev/null 2>&1; then :
4382
4383 else
4384   ac_cv_header_stdc=no
4385 fi
4386 rm -f conftest*
4387
4388 fi
4389
4390 if test $ac_cv_header_stdc = yes; then
4391   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4392   if test "$cross_compiling" = yes; then :
4393   :
4394 else
4395   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396 /* end confdefs.h.  */
4397 #include <ctype.h>
4398 #include <stdlib.h>
4399 #if ((' ' & 0x0FF) == 0x020)
4400 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4401 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4402 #else
4403 # define ISLOWER(c) \
4404                    (('a' <= (c) && (c) <= 'i') \
4405                      || ('j' <= (c) && (c) <= 'r') \
4406                      || ('s' <= (c) && (c) <= 'z'))
4407 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4408 #endif
4409
4410 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4411 int
4412 main ()
4413 {
4414   int i;
4415   for (i = 0; i < 256; i++)
4416     if (XOR (islower (i), ISLOWER (i))
4417         || toupper (i) != TOUPPER (i))
4418       return 2;
4419   return 0;
4420 }
4421 _ACEOF
4422 if ac_fn_c_try_run "$LINENO"; then :
4423
4424 else
4425   ac_cv_header_stdc=no
4426 fi
4427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4428   conftest.$ac_objext conftest.beam conftest.$ac_ext
4429 fi
4430
4431 fi
4432 fi
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4434 $as_echo "$ac_cv_header_stdc" >&6; }
4435 if test $ac_cv_header_stdc = yes; then
4436
4437 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4438
4439 fi
4440
4441 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4442 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4443                   inttypes.h stdint.h unistd.h
4444 do :
4445   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4446 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4447 "
4448 eval as_val=\$$as_ac_Header
4449    if test "x$as_val" = x""yes; then :
4450   cat >>confdefs.h <<_ACEOF
4451 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4452 _ACEOF
4453
4454 fi
4455
4456 done
4457
4458
4459  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4460 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4461 if test "${ac_cv_c_bigendian+set}" = set; then :
4462   $as_echo_n "(cached) " >&6
4463 else
4464   ac_cv_c_bigendian=unknown
4465     # See if we're dealing with a universal compiler.
4466     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4467 /* end confdefs.h.  */
4468 #ifndef __APPLE_CC__
4469                not a universal capable compiler
4470              #endif
4471              typedef int dummy;
4472
4473 _ACEOF
4474 if ac_fn_c_try_compile "$LINENO"; then :
4475
4476         # Check for potential -arch flags.  It is not universal unless
4477         # there are at least two -arch flags with different values.
4478         ac_arch=
4479         ac_prev=
4480         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4481          if test -n "$ac_prev"; then
4482            case $ac_word in
4483              i?86 | x86_64 | ppc | ppc64)
4484                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4485                  ac_arch=$ac_word
4486                else
4487                  ac_cv_c_bigendian=universal
4488                  break
4489                fi
4490                ;;
4491            esac
4492            ac_prev=
4493          elif test "x$ac_word" = "x-arch"; then
4494            ac_prev=arch
4495          fi
4496        done
4497 fi
4498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4499     if test $ac_cv_c_bigendian = unknown; then
4500       # See if sys/param.h defines the BYTE_ORDER macro.
4501       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4502 /* end confdefs.h.  */
4503 #include <sys/types.h>
4504              #include <sys/param.h>
4505
4506 int
4507 main ()
4508 {
4509 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4510                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4511                      && LITTLE_ENDIAN)
4512               bogus endian macros
4513              #endif
4514
4515   ;
4516   return 0;
4517 }
4518 _ACEOF
4519 if ac_fn_c_try_compile "$LINENO"; then :
4520   # It does; now see whether it defined to BIG_ENDIAN or not.
4521          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4522 /* end confdefs.h.  */
4523 #include <sys/types.h>
4524                 #include <sys/param.h>
4525
4526 int
4527 main ()
4528 {
4529 #if BYTE_ORDER != BIG_ENDIAN
4530                  not big endian
4531                 #endif
4532
4533   ;
4534   return 0;
4535 }
4536 _ACEOF
4537 if ac_fn_c_try_compile "$LINENO"; then :
4538   ac_cv_c_bigendian=yes
4539 else
4540   ac_cv_c_bigendian=no
4541 fi
4542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4543 fi
4544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4545     fi
4546     if test $ac_cv_c_bigendian = unknown; then
4547       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4548       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4549 /* end confdefs.h.  */
4550 #include <limits.h>
4551
4552 int
4553 main ()
4554 {
4555 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4556               bogus endian macros
4557              #endif
4558
4559   ;
4560   return 0;
4561 }
4562 _ACEOF
4563 if ac_fn_c_try_compile "$LINENO"; then :
4564   # It does; now see whether it defined to _BIG_ENDIAN or not.
4565          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566 /* end confdefs.h.  */
4567 #include <limits.h>
4568
4569 int
4570 main ()
4571 {
4572 #ifndef _BIG_ENDIAN
4573                  not big endian
4574                 #endif
4575
4576   ;
4577   return 0;
4578 }
4579 _ACEOF
4580 if ac_fn_c_try_compile "$LINENO"; then :
4581   ac_cv_c_bigendian=yes
4582 else
4583   ac_cv_c_bigendian=no
4584 fi
4585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4586 fi
4587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4588     fi
4589     if test $ac_cv_c_bigendian = unknown; then
4590       # Compile a test program.
4591       if test "$cross_compiling" = yes; then :
4592   # Try to guess by grepping values from an object file.
4593          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4594 /* end confdefs.h.  */
4595 short int ascii_mm[] =
4596                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4597                 short int ascii_ii[] =
4598                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4599                 int use_ascii (int i) {
4600                   return ascii_mm[i] + ascii_ii[i];
4601                 }
4602                 short int ebcdic_ii[] =
4603                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4604                 short int ebcdic_mm[] =
4605                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4606                 int use_ebcdic (int i) {
4607                   return ebcdic_mm[i] + ebcdic_ii[i];
4608                 }
4609                 extern int foo;
4610
4611 int
4612 main ()
4613 {
4614 return use_ascii (foo) == use_ebcdic (foo);
4615   ;
4616   return 0;
4617 }
4618 _ACEOF
4619 if ac_fn_c_try_compile "$LINENO"; then :
4620   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4621               ac_cv_c_bigendian=yes
4622             fi
4623             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4624               if test "$ac_cv_c_bigendian" = unknown; then
4625                 ac_cv_c_bigendian=no
4626               else
4627                 # finding both strings is unlikely to happen, but who knows?
4628                 ac_cv_c_bigendian=unknown
4629               fi
4630             fi
4631 fi
4632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4633 else
4634   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4635 /* end confdefs.h.  */
4636 $ac_includes_default
4637 int
4638 main ()
4639 {
4640
4641              /* Are we little or big endian?  From Harbison&Steele.  */
4642              union
4643              {
4644                long int l;
4645                char c[sizeof (long int)];
4646              } u;
4647              u.l = 1;
4648              return u.c[sizeof (long int) - 1] == 1;
4649
4650   ;
4651   return 0;
4652 }
4653 _ACEOF
4654 if ac_fn_c_try_run "$LINENO"; then :
4655   ac_cv_c_bigendian=no
4656 else
4657   ac_cv_c_bigendian=yes
4658 fi
4659 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4660   conftest.$ac_objext conftest.beam conftest.$ac_ext
4661 fi
4662
4663     fi
4664 fi
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4666 $as_echo "$ac_cv_c_bigendian" >&6; }
4667  case $ac_cv_c_bigendian in #(
4668    yes)
4669      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4670 ;; #(
4671    no)
4672       ;; #(
4673    universal)
4674
4675 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4676
4677      ;; #(
4678    *)
4679      as_fn_error "unknown endianness
4680  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4681  esac
4682
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4684 $as_echo_n "checking for inline... " >&6; }
4685 if test "${ac_cv_c_inline+set}" = set; then :
4686   $as_echo_n "(cached) " >&6
4687 else
4688   ac_cv_c_inline=no
4689 for ac_kw in inline __inline__ __inline; do
4690   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4691 /* end confdefs.h.  */
4692 #ifndef __cplusplus
4693 typedef int foo_t;
4694 static $ac_kw foo_t static_foo () {return 0; }
4695 $ac_kw foo_t foo () {return 0; }
4696 #endif
4697
4698 _ACEOF
4699 if ac_fn_c_try_compile "$LINENO"; then :
4700   ac_cv_c_inline=$ac_kw
4701 fi
4702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4703   test "$ac_cv_c_inline" != no && break
4704 done
4705
4706 fi
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4708 $as_echo "$ac_cv_c_inline" >&6; }
4709
4710 case $ac_cv_c_inline in
4711   inline | yes) ;;
4712   *)
4713     case $ac_cv_c_inline in
4714       no) ac_val=;;
4715       *) ac_val=$ac_cv_c_inline;;
4716     esac
4717     cat >>confdefs.h <<_ACEOF
4718 #ifndef __cplusplus
4719 #define inline $ac_val
4720 #endif
4721 _ACEOF
4722     ;;
4723 esac
4724
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4726 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4727 if test "${ac_cv_c_const+set}" = set; then :
4728   $as_echo_n "(cached) " >&6
4729 else
4730   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4731 /* end confdefs.h.  */
4732
4733 int
4734 main ()
4735 {
4736 /* FIXME: Include the comments suggested by Paul. */
4737 #ifndef __cplusplus
4738   /* Ultrix mips cc rejects this.  */
4739   typedef int charset[2];
4740   const charset cs;
4741   /* SunOS 4.1.1 cc rejects this.  */
4742   char const *const *pcpcc;
4743   char **ppc;
4744   /* NEC SVR4.0.2 mips cc rejects this.  */
4745   struct point {int x, y;};
4746   static struct point const zero = {0,0};
4747   /* AIX XL C 1.02.0.0 rejects this.
4748      It does not let you subtract one const X* pointer from another in
4749      an arm of an if-expression whose if-part is not a constant
4750      expression */
4751   const char *g = "string";
4752   pcpcc = &g + (g ? g-g : 0);
4753   /* HPUX 7.0 cc rejects these. */
4754   ++pcpcc;
4755   ppc = (char**) pcpcc;
4756   pcpcc = (char const *const *) ppc;
4757   { /* SCO 3.2v4 cc rejects this.  */
4758     char *t;
4759     char const *s = 0 ? (char *) 0 : (char const *) 0;
4760
4761     *t++ = 0;
4762     if (s) return 0;
4763   }
4764   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4765     int x[] = {25, 17};
4766     const int *foo = &x[0];
4767     ++foo;
4768   }
4769   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4770     typedef const int *iptr;
4771     iptr p = 0;
4772     ++p;
4773   }
4774   { /* AIX XL C 1.02.0.0 rejects this saying
4775        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4776     struct s { int j; const int *ap[3]; };
4777     struct s *b; b->j = 5;
4778   }
4779   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4780     const int foo = 10;
4781     if (!foo) return 0;
4782   }
4783   return !cs[0] && !zero.x;
4784 #endif
4785
4786   ;
4787   return 0;
4788 }
4789 _ACEOF
4790 if ac_fn_c_try_compile "$LINENO"; then :
4791   ac_cv_c_const=yes
4792 else
4793   ac_cv_c_const=no
4794 fi
4795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4796 fi
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4798 $as_echo "$ac_cv_c_const" >&6; }
4799 if test $ac_cv_c_const = no; then
4800
4801 $as_echo "#define const /**/" >>confdefs.h
4802
4803 fi
4804
4805 # The cast to long int works around a bug in the HP C Compiler
4806 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4807 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4808 # This bug is HP SR number 8606223364.
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short int" >&5
4810 $as_echo_n "checking size of unsigned short int... " >&6; }
4811 if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then :
4812   $as_echo_n "(cached) " >&6
4813 else
4814   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short int))" "ac_cv_sizeof_unsigned_short_int"        "$ac_includes_default"; then :
4815
4816 else
4817   if test "$ac_cv_type_unsigned_short_int" = yes; then
4818      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4820 { as_fn_set_status 77
4821 as_fn_error "cannot compute sizeof (unsigned short int)
4822 See \`config.log' for more details." "$LINENO" 5; }; }
4823    else
4824      ac_cv_sizeof_unsigned_short_int=0
4825    fi
4826 fi
4827
4828 fi
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short_int" >&5
4830 $as_echo "$ac_cv_sizeof_unsigned_short_int" >&6; }
4831
4832
4833
4834 cat >>confdefs.h <<_ACEOF
4835 #define SIZEOF_UNSIGNED_SHORT_INT $ac_cv_sizeof_unsigned_short_int
4836 _ACEOF
4837
4838
4839 # The cast to long int works around a bug in the HP C Compiler
4840 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4841 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4842 # This bug is HP SR number 8606223364.
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
4844 $as_echo_n "checking size of unsigned int... " >&6; }
4845 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
4846   $as_echo_n "(cached) " >&6
4847 else
4848   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
4849
4850 else
4851   if test "$ac_cv_type_unsigned_int" = yes; then
4852      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4853 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4854 { as_fn_set_status 77
4855 as_fn_error "cannot compute sizeof (unsigned int)
4856 See \`config.log' for more details." "$LINENO" 5; }; }
4857    else
4858      ac_cv_sizeof_unsigned_int=0
4859    fi
4860 fi
4861
4862 fi
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
4864 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
4865
4866
4867
4868 cat >>confdefs.h <<_ACEOF
4869 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
4870 _ACEOF
4871
4872
4873 # The cast to long int works around a bug in the HP C Compiler
4874 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4875 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4876 # This bug is HP SR number 8606223364.
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long int" >&5
4878 $as_echo_n "checking size of unsigned long int... " >&6; }
4879 if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then :
4880   $as_echo_n "(cached) " >&6
4881 else
4882   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long int))" "ac_cv_sizeof_unsigned_long_int"        "$ac_includes_default"; then :
4883
4884 else
4885   if test "$ac_cv_type_unsigned_long_int" = yes; then
4886      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4887 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4888 { as_fn_set_status 77
4889 as_fn_error "cannot compute sizeof (unsigned long int)
4890 See \`config.log' for more details." "$LINENO" 5; }; }
4891    else
4892      ac_cv_sizeof_unsigned_long_int=0
4893    fi
4894 fi
4895
4896 fi
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_int" >&5
4898 $as_echo "$ac_cv_sizeof_unsigned_long_int" >&6; }
4899
4900
4901
4902 cat >>confdefs.h <<_ACEOF
4903 #define SIZEOF_UNSIGNED_LONG_INT $ac_cv_sizeof_unsigned_long_int
4904 _ACEOF
4905
4906
4907 # The cast to long int works around a bug in the HP C Compiler
4908 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4909 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4910 # This bug is HP SR number 8606223364.
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long int" >&5
4912 $as_echo_n "checking size of unsigned long long int... " >&6; }
4913 if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then :
4914   $as_echo_n "(cached) " >&6
4915 else
4916   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long int))" "ac_cv_sizeof_unsigned_long_long_int"        "$ac_includes_default"; then :
4917
4918 else
4919   if test "$ac_cv_type_unsigned_long_long_int" = yes; then
4920      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4922 { as_fn_set_status 77
4923 as_fn_error "cannot compute sizeof (unsigned long long int)
4924 See \`config.log' for more details." "$LINENO" 5; }; }
4925    else
4926      ac_cv_sizeof_unsigned_long_long_int=0
4927    fi
4928 fi
4929
4930 fi
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
4932 $as_echo "$ac_cv_sizeof_unsigned_long_long_int" >&6; }
4933
4934
4935
4936 cat >>confdefs.h <<_ACEOF
4937 #define SIZEOF_UNSIGNED_LONG_LONG_INT $ac_cv_sizeof_unsigned_long_long_int
4938 _ACEOF
4939
4940
4941 for ac_func in llseek alarm gethostbyname inet_ntoa memset socket strerror strstr
4942 do :
4943   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4944 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4945 eval as_val=\$$as_ac_var
4946    if test "x$as_val" = x""yes; then :
4947   cat >>confdefs.h <<_ACEOF
4948 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4949 _ACEOF
4950
4951 fi
4952 done
4953
4954 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
4955 if test "x$ac_cv_type_pid_t" = x""yes; then :
4956
4957 else
4958
4959 cat >>confdefs.h <<_ACEOF
4960 #define pid_t int
4961 _ACEOF
4962
4963 fi
4964
4965 for ac_header in vfork.h
4966 do :
4967   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
4968 if test "x$ac_cv_header_vfork_h" = x""yes; then :
4969   cat >>confdefs.h <<_ACEOF
4970 #define HAVE_VFORK_H 1
4971 _ACEOF
4972
4973 fi
4974
4975 done
4976
4977 for ac_func in fork vfork
4978 do :
4979   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4980 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4981 eval as_val=\$$as_ac_var
4982    if test "x$as_val" = x""yes; then :
4983   cat >>confdefs.h <<_ACEOF
4984 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4985 _ACEOF
4986
4987 fi
4988 done
4989
4990 if test "x$ac_cv_func_fork" = xyes; then
4991   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
4992 $as_echo_n "checking for working fork... " >&6; }
4993 if test "${ac_cv_func_fork_works+set}" = set; then :
4994   $as_echo_n "(cached) " >&6
4995 else
4996   if test "$cross_compiling" = yes; then :
4997   ac_cv_func_fork_works=cross
4998 else
4999   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5000 /* end confdefs.h.  */
5001 $ac_includes_default
5002 int
5003 main ()
5004 {
5005
5006           /* By Ruediger Kuhlmann. */
5007           return fork () < 0;
5008
5009   ;
5010   return 0;
5011 }
5012 _ACEOF
5013 if ac_fn_c_try_run "$LINENO"; then :
5014   ac_cv_func_fork_works=yes
5015 else
5016   ac_cv_func_fork_works=no
5017 fi
5018 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5019   conftest.$ac_objext conftest.beam conftest.$ac_ext
5020 fi
5021
5022 fi
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5024 $as_echo "$ac_cv_func_fork_works" >&6; }
5025
5026 else
5027   ac_cv_func_fork_works=$ac_cv_func_fork
5028 fi
5029 if test "x$ac_cv_func_fork_works" = xcross; then
5030   case $host in
5031     *-*-amigaos* | *-*-msdosdjgpp*)
5032       # Override, as these systems have only a dummy fork() stub
5033       ac_cv_func_fork_works=no
5034       ;;
5035     *)
5036       ac_cv_func_fork_works=yes
5037       ;;
5038   esac
5039   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5040 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5041 fi
5042 ac_cv_func_vfork_works=$ac_cv_func_vfork
5043 if test "x$ac_cv_func_vfork" = xyes; then
5044   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5045 $as_echo_n "checking for working vfork... " >&6; }
5046 if test "${ac_cv_func_vfork_works+set}" = set; then :
5047   $as_echo_n "(cached) " >&6
5048 else
5049   if test "$cross_compiling" = yes; then :
5050   ac_cv_func_vfork_works=cross
5051 else
5052   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053 /* end confdefs.h.  */
5054 /* Thanks to Paul Eggert for this test.  */
5055 $ac_includes_default
5056 #include <sys/wait.h>
5057 #ifdef HAVE_VFORK_H
5058 # include <vfork.h>
5059 #endif
5060 /* On some sparc systems, changes by the child to local and incoming
5061    argument registers are propagated back to the parent.  The compiler
5062    is told about this with #include <vfork.h>, but some compilers
5063    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
5064    static variable whose address is put into a register that is
5065    clobbered by the vfork.  */
5066 static void
5067 #ifdef __cplusplus
5068 sparc_address_test (int arg)
5069 # else
5070 sparc_address_test (arg) int arg;
5071 #endif
5072 {
5073   static pid_t child;
5074   if (!child) {
5075     child = vfork ();
5076     if (child < 0) {
5077       perror ("vfork");
5078       _exit(2);
5079     }
5080     if (!child) {
5081       arg = getpid();
5082       write(-1, "", 0);
5083       _exit (arg);
5084     }
5085   }
5086 }
5087
5088 int
5089 main ()
5090 {
5091   pid_t parent = getpid ();
5092   pid_t child;
5093
5094   sparc_address_test (0);
5095
5096   child = vfork ();
5097
5098   if (child == 0) {
5099     /* Here is another test for sparc vfork register problems.  This
5100        test uses lots of local variables, at least as many local
5101        variables as main has allocated so far including compiler
5102        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
5103        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
5104        reuse the register of parent for one of the local variables,
5105        since it will think that parent can't possibly be used any more
5106        in this routine.  Assigning to the local variable will thus
5107        munge parent in the parent process.  */
5108     pid_t
5109       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5110       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5111     /* Convince the compiler that p..p7 are live; otherwise, it might
5112        use the same hardware register for all 8 local variables.  */
5113     if (p != p1 || p != p2 || p != p3 || p != p4
5114         || p != p5 || p != p6 || p != p7)
5115       _exit(1);
5116
5117     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5118        from child file descriptors.  If the child closes a descriptor
5119        before it execs or exits, this munges the parent's descriptor
5120        as well.  Test for this by closing stdout in the child.  */
5121     _exit(close(fileno(stdout)) != 0);
5122   } else {
5123     int status;
5124     struct stat st;
5125
5126     while (wait(&status) != child)
5127       ;
5128     return (
5129          /* Was there some problem with vforking?  */
5130          child < 0
5131
5132          /* Did the child fail?  (This shouldn't happen.)  */
5133          || status
5134
5135          /* Did the vfork/compiler bug occur?  */
5136          || parent != getpid()
5137
5138          /* Did the file descriptor bug occur?  */
5139          || fstat(fileno(stdout), &st) != 0
5140          );
5141   }
5142 }
5143 _ACEOF
5144 if ac_fn_c_try_run "$LINENO"; then :
5145   ac_cv_func_vfork_works=yes
5146 else
5147   ac_cv_func_vfork_works=no
5148 fi
5149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5150   conftest.$ac_objext conftest.beam conftest.$ac_ext
5151 fi
5152
5153 fi
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5155 $as_echo "$ac_cv_func_vfork_works" >&6; }
5156
5157 fi;
5158 if test "x$ac_cv_func_fork_works" = xcross; then
5159   ac_cv_func_vfork_works=$ac_cv_func_vfork
5160   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5161 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5162 fi
5163
5164 if test "x$ac_cv_func_vfork_works" = xyes; then
5165
5166 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
5167
5168 else
5169
5170 $as_echo "#define vfork fork" >>confdefs.h
5171
5172 fi
5173 if test "x$ac_cv_func_fork_works" = xyes; then
5174
5175 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
5176
5177 fi
5178
5179 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
5180   $as_echo_n "(cached) " >&6
5181 else
5182   ac_cv_func_setvbuf_reversed=no
5183 fi
5184
5185
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether client should be built" >&5
5187 $as_echo_n "checking whether client should be built... " >&6; }
5188 case $host_os in
5189      linux*) sbin_PROGRAMS="$sbin_PROGRAMS nbd-client"
5190               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5191 $as_echo "yes" >&6; }
5192               ;;
5193      *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5194 $as_echo "no" >&6; } ;;
5195 esac
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find a working nbd.h" >&5
5197 $as_echo_n "checking where to find a working nbd.h... " >&6; }
5198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h.  */
5200 #define u32 int
5201 #define u64 int
5202 #define __be32 int
5203 #define __be64 int
5204 #include "nbd.h"
5205 #ifdef __GNUC__
5206 #define UNUSED __attribute__((__unused__))
5207 #else
5208 #define UNUSED
5209 #endif
5210
5211 int
5212 main ()
5213 {
5214 int UNUSED foo=NBD_CMD_DISC
5215   ;
5216   return 0;
5217 }
5218 _ACEOF
5219 if ac_fn_c_try_compile "$LINENO"; then :
5220
5221 $as_echo "#define NBD_H_LOCAL 1" >>confdefs.h
5222
5223     NBD_H='"nbd.h"'
5224 else
5225   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5226 /* end confdefs.h.  */
5227 #define u32 int
5228 #define u64 int
5229 #define __be32 int
5230 #define __be64 int
5231 #include <linux/nbd.h>
5232 #ifdef __GNUC__
5233 #define UNUSED __attribute__((__unused__))
5234 #else
5235 #define UNUSED
5236 #endif
5237
5238 int
5239 main ()
5240 {
5241 int UNUSED foo=NBD_CMD_DISC
5242   ;
5243   return 0;
5244 }
5245 _ACEOF
5246 if ac_fn_c_try_compile "$LINENO"; then :
5247
5248 $as_echo "#define NBD_H_LINUX 1" >>confdefs.h
5249
5250       NBD_H='<linux/nbd.h>'
5251 else
5252   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5253 /* end confdefs.h.  */
5254 #include <linux/nbd.h>
5255 #ifdef __GNUC__
5256 #define UNUSED __attribute__((__unused__))
5257 #else
5258 #define UNUSED
5259 #endif
5260
5261 int
5262 main ()
5263 {
5264 int UNUSED foo=NBD_CMD_DISC
5265   ;
5266   return 0;
5267 }
5268 _ACEOF
5269 if ac_fn_c_try_compile "$LINENO"; then :
5270
5271 $as_echo "#define NBD_H_LINUX 1" >>confdefs.h
5272
5273         NBD_H='<linux/nbd.h>'
5274 else
5275   as_fn_error "Could not find an nbd.h from 2.6 or above." "$LINENO" 5
5276
5277 fi
5278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5279
5280 fi
5281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5282
5283 fi
5284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5285 if test -f nbd.h
5286 then
5287   if test "$NBD_H" = '<linux/nbd.h>'
5288   then
5289     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: there is a local nbd.h, but it is from the 2.4-series of kernels. Using the system-provided, working, nbd.h" >&5
5290 $as_echo "$as_me: WARNING: there is a local nbd.h, but it is from the 2.4-series of kernels. Using the system-provided, working, nbd.h" >&2;}
5291   fi
5292 fi
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NBD_H" >&5
5294 $as_echo "$NBD_H" >&6; }
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind" >&5
5296 $as_echo_n "checking for library containing bind... " >&6; }
5297 if test "${ac_cv_search_bind+set}" = set; then :
5298   $as_echo_n "(cached) " >&6
5299 else
5300   ac_func_search_save_LIBS=$LIBS
5301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5302 /* end confdefs.h.  */
5303
5304 /* Override any GCC internal prototype to avoid an error.
5305    Use char because int might match the return type of a GCC
5306    builtin and then its argument prototype would still apply.  */
5307 #ifdef __cplusplus
5308 extern "C"
5309 #endif
5310 char bind ();
5311 int
5312 main ()
5313 {
5314 return bind ();
5315   ;
5316   return 0;
5317 }
5318 _ACEOF
5319 for ac_lib in '' socket; do
5320   if test -z "$ac_lib"; then
5321     ac_res="none required"
5322   else
5323     ac_res=-l$ac_lib
5324     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5325   fi
5326   if ac_fn_c_try_link "$LINENO"; then :
5327   ac_cv_search_bind=$ac_res
5328 fi
5329 rm -f core conftest.err conftest.$ac_objext \
5330     conftest$ac_exeext
5331   if test "${ac_cv_search_bind+set}" = set; then :
5332   break
5333 fi
5334 done
5335 if test "${ac_cv_search_bind+set}" = set; then :
5336
5337 else
5338   ac_cv_search_bind=no
5339 fi
5340 rm conftest.$ac_ext
5341 LIBS=$ac_func_search_save_LIBS
5342 fi
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind" >&5
5344 $as_echo "$ac_cv_search_bind" >&6; }
5345 ac_res=$ac_cv_search_bind
5346 if test "$ac_res" != no; then :
5347   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5348
5349 else
5350   as_fn_error "Could not find an implementation of the bind() system call" "$LINENO" 5
5351 fi
5352
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
5354 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
5355 if test "${ac_cv_search_inet_ntoa+set}" = set; then :
5356   $as_echo_n "(cached) " >&6
5357 else
5358   ac_func_search_save_LIBS=$LIBS
5359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5360 /* end confdefs.h.  */
5361
5362 /* Override any GCC internal prototype to avoid an error.
5363    Use char because int might match the return type of a GCC
5364    builtin and then its argument prototype would still apply.  */
5365 #ifdef __cplusplus
5366 extern "C"
5367 #endif
5368 char inet_ntoa ();
5369 int
5370 main ()
5371 {
5372 return inet_ntoa ();
5373   ;
5374   return 0;
5375 }
5376 _ACEOF
5377 for ac_lib in '' nsl; do
5378   if test -z "$ac_lib"; then
5379     ac_res="none required"
5380   else
5381     ac_res=-l$ac_lib
5382     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5383   fi
5384   if ac_fn_c_try_link "$LINENO"; then :
5385   ac_cv_search_inet_ntoa=$ac_res
5386 fi
5387 rm -f core conftest.err conftest.$ac_objext \
5388     conftest$ac_exeext
5389   if test "${ac_cv_search_inet_ntoa+set}" = set; then :
5390   break
5391 fi
5392 done
5393 if test "${ac_cv_search_inet_ntoa+set}" = set; then :
5394
5395 else
5396   ac_cv_search_inet_ntoa=no
5397 fi
5398 rm conftest.$ac_ext
5399 LIBS=$ac_func_search_save_LIBS
5400 fi
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
5402 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
5403 ac_res=$ac_cv_search_inet_ntoa
5404 if test "$ac_res" != no; then :
5405   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5406
5407 else
5408   as_fn_error "Could not find an implementation of the inet_ntoa() system call" "$LINENO" 5
5409 fi
5410
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing daemon" >&5
5412 $as_echo_n "checking for library containing daemon... " >&6; }
5413 if test "${ac_cv_search_daemon+set}" = set; then :
5414   $as_echo_n "(cached) " >&6
5415 else
5416   ac_func_search_save_LIBS=$LIBS
5417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5418 /* end confdefs.h.  */
5419
5420 /* Override any GCC internal prototype to avoid an error.
5421    Use char because int might match the return type of a GCC
5422    builtin and then its argument prototype would still apply.  */
5423 #ifdef __cplusplus
5424 extern "C"
5425 #endif
5426 char daemon ();
5427 int
5428 main ()
5429 {
5430 return daemon ();
5431   ;
5432   return 0;
5433 }
5434 _ACEOF
5435 for ac_lib in '' resolv; do
5436   if test -z "$ac_lib"; then
5437     ac_res="none required"
5438   else
5439     ac_res=-l$ac_lib
5440     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5441   fi
5442   if ac_fn_c_try_link "$LINENO"; then :
5443   ac_cv_search_daemon=$ac_res
5444 fi
5445 rm -f core conftest.err conftest.$ac_objext \
5446     conftest$ac_exeext
5447   if test "${ac_cv_search_daemon+set}" = set; then :
5448   break
5449 fi
5450 done
5451 if test "${ac_cv_search_daemon+set}" = set; then :
5452
5453 else
5454   ac_cv_search_daemon=no
5455 fi
5456 rm conftest.$ac_ext
5457 LIBS=$ac_func_search_save_LIBS
5458 fi
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_daemon" >&5
5460 $as_echo "$ac_cv_search_daemon" >&6; }
5461 ac_res=$ac_cv_search_daemon
5462 if test "$ac_res" != no; then :
5463   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5464
5465 else
5466   as_fn_error "Could not find an implementation of the daemon() system call" "$LINENO" 5
5467 fi
5468
5469 for ac_header in sys/mount.h
5470 do :
5471   ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
5472
5473 "
5474 if test "x$ac_cv_header_sys_mount_h" = x""yes; then :
5475   cat >>confdefs.h <<_ACEOF
5476 #define HAVE_SYS_MOUNT_H 1
5477 _ACEOF
5478
5479 fi
5480
5481 done
5482
5483 for ac_header in arpa/inet.h fcntl.h netdb.h netinet/in.h sys/ioctl.h sys/socket.h syslog.h linux/types.h
5484 do :
5485   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5486 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5487 eval as_val=\$$as_ac_Header
5488    if test "x$as_val" = x""yes; then :
5489   cat >>confdefs.h <<_ACEOF
5490 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5491 _ACEOF
5492
5493 fi
5494
5495 done
5496
5497 # Check whether --enable-glibtest was given.
5498 if test "${enable_glibtest+set}" = set; then :
5499   enableval=$enable_glibtest;
5500 else
5501   enable_glibtest=yes
5502 fi
5503
5504
5505   pkg_config_args=glib-2.0
5506   for module in .
5507   do
5508       case "$module" in
5509          gmodule)
5510              pkg_config_args="$pkg_config_args gmodule-2.0"
5511          ;;
5512          gmodule-no-export)
5513              pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
5514          ;;
5515          gobject)
5516              pkg_config_args="$pkg_config_args gobject-2.0"
5517          ;;
5518          gthread)
5519              pkg_config_args="$pkg_config_args gthread-2.0"
5520          ;;
5521          gio*)
5522              pkg_config_args="$pkg_config_args $module-2.0"
5523          ;;
5524       esac
5525   done
5526
5527
5528
5529 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5530         if test -n "$ac_tool_prefix"; then
5531   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5532 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5534 $as_echo_n "checking for $ac_word... " >&6; }
5535 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5536   $as_echo_n "(cached) " >&6
5537 else
5538   case $PKG_CONFIG in
5539   [\\/]* | ?:[\\/]*)
5540   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5541   ;;
5542   *)
5543   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544 for as_dir in $PATH
5545 do
5546   IFS=$as_save_IFS
5547   test -z "$as_dir" && as_dir=.
5548     for ac_exec_ext in '' $ac_executable_extensions; do
5549   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5550     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5552     break 2
5553   fi
5554 done
5555   done
5556 IFS=$as_save_IFS
5557
5558   ;;
5559 esac
5560 fi
5561 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5562 if test -n "$PKG_CONFIG"; then
5563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5564 $as_echo "$PKG_CONFIG" >&6; }
5565 else
5566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5567 $as_echo "no" >&6; }
5568 fi
5569
5570
5571 fi
5572 if test -z "$ac_cv_path_PKG_CONFIG"; then
5573   ac_pt_PKG_CONFIG=$PKG_CONFIG
5574   # Extract the first word of "pkg-config", so it can be a program name with args.
5575 set dummy pkg-config; ac_word=$2
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5577 $as_echo_n "checking for $ac_word... " >&6; }
5578 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
5579   $as_echo_n "(cached) " >&6
5580 else
5581   case $ac_pt_PKG_CONFIG in
5582   [\\/]* | ?:[\\/]*)
5583   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5584   ;;
5585   *)
5586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5587 for as_dir in $PATH
5588 do
5589   IFS=$as_save_IFS
5590   test -z "$as_dir" && as_dir=.
5591     for ac_exec_ext in '' $ac_executable_extensions; do
5592   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5593     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5594     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5595     break 2
5596   fi
5597 done
5598   done
5599 IFS=$as_save_IFS
5600
5601   ;;
5602 esac
5603 fi
5604 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5605 if test -n "$ac_pt_PKG_CONFIG"; then
5606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5607 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5608 else
5609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5610 $as_echo "no" >&6; }
5611 fi
5612
5613   if test "x$ac_pt_PKG_CONFIG" = x; then
5614     PKG_CONFIG=""
5615   else
5616     case $cross_compiling:$ac_tool_warned in
5617 yes:)
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5620 ac_tool_warned=yes ;;
5621 esac
5622     PKG_CONFIG=$ac_pt_PKG_CONFIG
5623   fi
5624 else
5625   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5626 fi
5627
5628 fi
5629 if test -n "$PKG_CONFIG"; then
5630         _pkg_min_version=0.16
5631         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5632 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5633         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5634                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5635 $as_echo "yes" >&6; }
5636         else
5637                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5638 $as_echo "no" >&6; }
5639                 PKG_CONFIG=""
5640         fi
5641
5642 fi
5643
5644   no_glib=""
5645
5646   if test "x$PKG_CONFIG" = x ; then
5647     no_glib=yes
5648     PKG_CONFIG=no
5649   fi
5650
5651   min_glib_version=2.6.0
5652   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
5653 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
5654
5655   if test x$PKG_CONFIG != xno ; then
5656     ## don't try to run the test against uninstalled libtool libs
5657     if $PKG_CONFIG --uninstalled $pkg_config_args; then
5658           echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
5659           enable_glibtest=no
5660     fi
5661
5662     if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
5663           :
5664     else
5665           no_glib=yes
5666     fi
5667   fi
5668
5669   if test x"$no_glib" = x ; then
5670     GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
5671     GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
5672     GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
5673
5674     GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
5675     GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
5676     glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
5677            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
5678     glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
5679            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
5680     glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
5681            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
5682     if test "x$enable_glibtest" = "xyes" ; then
5683       ac_save_CFLAGS="$CFLAGS"
5684       ac_save_LIBS="$LIBS"
5685       CFLAGS="$CFLAGS $GLIB_CFLAGS"
5686       LIBS="$GLIB_LIBS $LIBS"
5687       rm -f conf.glibtest
5688       if test "$cross_compiling" = yes; then :
5689   echo $ac_n "cross compiling; assumed OK... $ac_c"
5690 else
5691   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5692 /* end confdefs.h.  */
5693
5694 #include <glib.h>
5695 #include <stdio.h>
5696 #include <stdlib.h>
5697
5698 int
5699 main ()
5700 {
5701   int major, minor, micro;
5702   char *tmp_version;
5703   int ignored;
5704
5705   ignored = system ("touch conf.glibtest");
5706
5707   /* HP/UX 9 (%@#!) writes to sscanf strings */
5708   tmp_version = g_strdup("$min_glib_version");
5709   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
5710      printf("%s, bad version string\n", "$min_glib_version");
5711      exit(1);
5712    }
5713
5714   if ((glib_major_version != $glib_config_major_version) ||
5715       (glib_minor_version != $glib_config_minor_version) ||
5716       (glib_micro_version != $glib_config_micro_version))
5717     {
5718       printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
5719              $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
5720              glib_major_version, glib_minor_version, glib_micro_version);
5721       printf ("*** was found! If pkg-config was correct, then it is best\n");
5722       printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
5723       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
5724       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
5725       printf("*** required on your system.\n");
5726       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
5727       printf("*** to point to the correct configuration files\n");
5728     }
5729   else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
5730            (glib_minor_version != GLIB_MINOR_VERSION) ||
5731            (glib_micro_version != GLIB_MICRO_VERSION))
5732     {
5733       printf("*** GLIB header files (version %d.%d.%d) do not match\n",
5734              GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
5735       printf("*** library (version %d.%d.%d)\n",
5736              glib_major_version, glib_minor_version, glib_micro_version);
5737     }
5738   else
5739     {
5740       if ((glib_major_version > major) ||
5741         ((glib_major_version == major) && (glib_minor_version > minor)) ||
5742         ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
5743       {
5744         return 0;
5745        }
5746      else
5747       {
5748         printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
5749                glib_major_version, glib_minor_version, glib_micro_version);
5750         printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
5751                major, minor, micro);
5752         printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
5753         printf("***\n");
5754         printf("*** If you have already installed a sufficiently new version, this error\n");
5755         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
5756         printf("*** being found. The easiest way to fix this is to remove the old version\n");
5757         printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
5758         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
5759         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
5760         printf("*** so that the correct libraries are found at run-time))\n");
5761       }
5762     }
5763   return 1;
5764 }
5765
5766 _ACEOF
5767 if ac_fn_c_try_run "$LINENO"; then :
5768
5769 else
5770   no_glib=yes
5771 fi
5772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5773   conftest.$ac_objext conftest.beam conftest.$ac_ext
5774 fi
5775
5776        CFLAGS="$ac_save_CFLAGS"
5777        LIBS="$ac_save_LIBS"
5778      fi
5779   fi
5780   if test "x$no_glib" = x ; then
5781      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
5782 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
5783      HAVE_GLIB=yes
5784   else
5785      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5786 $as_echo "no" >&6; }
5787      if test "$PKG_CONFIG" = "no" ; then
5788        echo "*** A new enough version of pkg-config was not found."
5789        echo "*** See http://www.freedesktop.org/software/pkgconfig/"
5790      else
5791        if test -f conf.glibtest ; then
5792         :
5793        else
5794           echo "*** Could not run GLIB test program, checking why..."
5795           ac_save_CFLAGS="$CFLAGS"
5796           ac_save_LIBS="$LIBS"
5797           CFLAGS="$CFLAGS $GLIB_CFLAGS"
5798           LIBS="$LIBS $GLIB_LIBS"
5799           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5800 /* end confdefs.h.  */
5801
5802 #include <glib.h>
5803 #include <stdio.h>
5804
5805 int
5806 main ()
5807 {
5808  return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
5809   ;
5810   return 0;
5811 }
5812 _ACEOF
5813 if ac_fn_c_try_link "$LINENO"; then :
5814    echo "*** The test program compiled, but did not run. This usually means"
5815           echo "*** that the run-time linker is not finding GLIB or finding the wrong"
5816           echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
5817           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
5818           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
5819           echo "*** is required on your system"
5820           echo "***"
5821           echo "*** If you have an old version installed, it is best to remove it, although"
5822           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
5823 else
5824    echo "*** The test program failed to compile or link. See the file config.log for the"
5825           echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
5826 fi
5827 rm -f core conftest.err conftest.$ac_objext \
5828     conftest$ac_exeext conftest.$ac_ext
5829           CFLAGS="$ac_save_CFLAGS"
5830           LIBS="$ac_save_LIBS"
5831        fi
5832      fi
5833      GLIB_CFLAGS=""
5834      GLIB_LIBS=""
5835      GLIB_GENMARSHAL=""
5836      GOBJECT_QUERY=""
5837      GLIB_MKENUMS=""
5838      as_fn_error "Missing glib" "$LINENO" 5
5839   fi
5840
5841
5842
5843
5844
5845   rm -f conf.glibtest
5846
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
5848 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
5849 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
5850   $as_echo_n "(cached) " >&6
5851 else
5852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5853 /* end confdefs.h.  */
5854 #include <sys/types.h>
5855 #include <sys/wait.h>
5856 #ifndef WEXITSTATUS
5857 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5858 #endif
5859 #ifndef WIFEXITED
5860 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5861 #endif
5862
5863 int
5864 main ()
5865 {
5866   int s;
5867   wait (&s);
5868   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5869   ;
5870   return 0;
5871 }
5872 _ACEOF
5873 if ac_fn_c_try_compile "$LINENO"; then :
5874   ac_cv_header_sys_wait_h=yes
5875 else
5876   ac_cv_header_sys_wait_h=no
5877 fi
5878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5879 fi
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
5881 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
5882 if test $ac_cv_header_sys_wait_h = yes; then
5883
5884 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
5885
5886 fi
5887
5888 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5889 if test "x$ac_cv_type_off_t" = x""yes; then :
5890
5891 else
5892
5893 cat >>confdefs.h <<_ACEOF
5894 #define off_t long int
5895 _ACEOF
5896
5897 fi
5898
5899 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5900 if test "x$ac_cv_type_pid_t" = x""yes; then :
5901
5902 else
5903
5904 cat >>confdefs.h <<_ACEOF
5905 #define pid_t int
5906 _ACEOF
5907
5908 fi
5909
5910
5911 nbd_server_CPPFLAGS=$nbd_server_CPPFLAGS" -DSYSCONFDIR='\"$sysconfdir\"'"
5912
5913 ac_config_headers="$ac_config_headers config.h"
5914
5915 ac_config_files="$ac_config_files Makefile Doxyfile nbd-server.1 nbd-server.5 nbd-client.8"
5916
5917 cat >confcache <<\_ACEOF
5918 # This file is a shell script that caches the results of configure
5919 # tests run on this system so they can be shared between configure
5920 # scripts and configure runs, see configure's option --config-cache.
5921 # It is not useful on other systems.  If it contains results you don't
5922 # want to keep, you may remove or edit it.
5923 #
5924 # config.status only pays attention to the cache file if you give it
5925 # the --recheck option to rerun configure.
5926 #
5927 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5928 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5929 # following values.
5930
5931 _ACEOF
5932
5933 # The following way of writing the cache mishandles newlines in values,
5934 # but we know of no workaround that is simple, portable, and efficient.
5935 # So, we kill variables containing newlines.
5936 # Ultrix sh set writes to stderr and can't be redirected directly,
5937 # and sets the high bit in the cache file unless we assign to the vars.
5938 (
5939   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5940     eval ac_val=\$$ac_var
5941     case $ac_val in #(
5942     *${as_nl}*)
5943       case $ac_var in #(
5944       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5945 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5946       esac
5947       case $ac_var in #(
5948       _ | IFS | as_nl) ;; #(
5949       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5950       *) { eval $ac_var=; unset $ac_var;} ;;
5951       esac ;;
5952     esac
5953   done
5954
5955   (set) 2>&1 |
5956     case $as_nl`(ac_space=' '; set) 2>&1` in #(
5957     *${as_nl}ac_space=\ *)
5958       # `set' does not quote correctly, so add quotes: double-quote
5959       # substitution turns \\\\ into \\, and sed turns \\ into \.
5960       sed -n \
5961         "s/'/'\\\\''/g;
5962           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5963       ;; #(
5964     *)
5965       # `set' quotes correctly as required by POSIX, so do not add quotes.
5966       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5967       ;;
5968     esac |
5969     sort
5970 ) |
5971   sed '
5972      /^ac_cv_env_/b end
5973      t clear
5974      :clear
5975      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5976      t end
5977      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5978      :end' >>confcache
5979 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5980   if test -w "$cache_file"; then
5981     test "x$cache_file" != "x/dev/null" &&
5982       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5983 $as_echo "$as_me: updating cache $cache_file" >&6;}
5984     cat confcache >$cache_file
5985   else
5986     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5987 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5988   fi
5989 fi
5990 rm -f confcache
5991
5992 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5993 # Let make expand exec_prefix.
5994 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5995
5996 DEFS=-DHAVE_CONFIG_H
5997
5998 ac_libobjs=
5999 ac_ltlibobjs=
6000 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6001   # 1. Remove the extension, and $U if already installed.
6002   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6003   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6004   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
6005   #    will be set to the directory where LIBOBJS objects are built.
6006   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6007   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6008 done
6009 LIBOBJS=$ac_libobjs
6010
6011 LTLIBOBJS=$ac_ltlibobjs
6012
6013
6014  if test -n "$EXEEXT"; then
6015   am__EXEEXT_TRUE=
6016   am__EXEEXT_FALSE='#'
6017 else
6018   am__EXEEXT_TRUE='#'
6019   am__EXEEXT_FALSE=
6020 fi
6021
6022 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6023   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
6024 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6025 fi
6026 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6027   as_fn_error "conditional \"AMDEP\" was never defined.
6028 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6029 fi
6030 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6031   as_fn_error "conditional \"am__fastdepCC\" was never defined.
6032 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6033 fi
6034
6035
6036 : ${CONFIG_STATUS=./config.status}
6037 ac_write_fail=0
6038 ac_clean_files_save=$ac_clean_files
6039 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6041 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6042 as_write_fail=0
6043 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6044 #! $SHELL
6045 # Generated by $as_me.
6046 # Run this file to recreate the current configuration.
6047 # Compiler output produced by configure, useful for debugging
6048 # configure, is in config.log if it exists.
6049
6050 debug=false
6051 ac_cs_recheck=false
6052 ac_cs_silent=false
6053
6054 SHELL=\${CONFIG_SHELL-$SHELL}
6055 export SHELL
6056 _ASEOF
6057 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6058 ## -------------------- ##
6059 ## M4sh Initialization. ##
6060 ## -------------------- ##
6061
6062 # Be more Bourne compatible
6063 DUALCASE=1; export DUALCASE # for MKS sh
6064 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6065   emulate sh
6066   NULLCMD=:
6067   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6068   # is contrary to our usage.  Disable this feature.
6069   alias -g '${1+"$@"}'='"$@"'
6070   setopt NO_GLOB_SUBST
6071 else
6072   case `(set -o) 2>/dev/null` in #(
6073   *posix*) :
6074     set -o posix ;; #(
6075   *) :
6076      ;;
6077 esac
6078 fi
6079
6080
6081 as_nl='
6082 '
6083 export as_nl
6084 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6085 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6086 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6087 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6088 # Prefer a ksh shell builtin over an external printf program on Solaris,
6089 # but without wasting forks for bash or zsh.
6090 if test -z "$BASH_VERSION$ZSH_VERSION" \
6091     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6092   as_echo='print -r --'
6093   as_echo_n='print -rn --'
6094 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6095   as_echo='printf %s\n'
6096   as_echo_n='printf %s'
6097 else
6098   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6099     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6100     as_echo_n='/usr/ucb/echo -n'
6101   else
6102     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6103     as_echo_n_body='eval
6104       arg=$1;
6105       case $arg in #(
6106       *"$as_nl"*)
6107         expr "X$arg" : "X\\(.*\\)$as_nl";
6108         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6109       esac;
6110       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6111     '
6112     export as_echo_n_body
6113     as_echo_n='sh -c $as_echo_n_body as_echo'
6114   fi
6115   export as_echo_body
6116   as_echo='sh -c $as_echo_body as_echo'
6117 fi
6118
6119 # The user is always right.
6120 if test "${PATH_SEPARATOR+set}" != set; then
6121   PATH_SEPARATOR=:
6122   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6123     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6124       PATH_SEPARATOR=';'
6125   }
6126 fi
6127
6128
6129 # IFS
6130 # We need space, tab and new line, in precisely that order.  Quoting is
6131 # there to prevent editors from complaining about space-tab.
6132 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6133 # splitting by setting IFS to empty value.)
6134 IFS=" ""        $as_nl"
6135
6136 # Find who we are.  Look in the path if we contain no directory separator.
6137 case $0 in #((
6138   *[\\/]* ) as_myself=$0 ;;
6139   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6140 for as_dir in $PATH
6141 do
6142   IFS=$as_save_IFS
6143   test -z "$as_dir" && as_dir=.
6144     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6145   done
6146 IFS=$as_save_IFS
6147
6148      ;;
6149 esac
6150 # We did not find ourselves, most probably we were run as `sh COMMAND'
6151 # in which case we are not to be found in the path.
6152 if test "x$as_myself" = x; then
6153   as_myself=$0
6154 fi
6155 if test ! -f "$as_myself"; then
6156   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6157   exit 1
6158 fi
6159
6160 # Unset variables that we do not need and which cause bugs (e.g. in
6161 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
6162 # suppresses any "Segmentation fault" message there.  '((' could
6163 # trigger a bug in pdksh 5.2.14.
6164 for as_var in BASH_ENV ENV MAIL MAILPATH
6165 do eval test x\${$as_var+set} = xset \
6166   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6167 done
6168 PS1='$ '
6169 PS2='> '
6170 PS4='+ '
6171
6172 # NLS nuisances.
6173 LC_ALL=C
6174 export LC_ALL
6175 LANGUAGE=C
6176 export LANGUAGE
6177
6178 # CDPATH.
6179 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6180
6181
6182 # as_fn_error ERROR [LINENO LOG_FD]
6183 # ---------------------------------
6184 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6185 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6186 # script with status $?, using 1 if that was 0.
6187 as_fn_error ()
6188 {
6189   as_status=$?; test $as_status -eq 0 && as_status=1
6190   if test "$3"; then
6191     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6192     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6193   fi
6194   $as_echo "$as_me: error: $1" >&2
6195   as_fn_exit $as_status
6196 } # as_fn_error
6197
6198
6199 # as_fn_set_status STATUS
6200 # -----------------------
6201 # Set $? to STATUS, without forking.
6202 as_fn_set_status ()
6203 {
6204   return $1
6205 } # as_fn_set_status
6206
6207 # as_fn_exit STATUS
6208 # -----------------
6209 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6210 as_fn_exit ()
6211 {
6212   set +e
6213   as_fn_set_status $1
6214   exit $1
6215 } # as_fn_exit
6216
6217 # as_fn_unset VAR
6218 # ---------------
6219 # Portably unset VAR.
6220 as_fn_unset ()
6221 {
6222   { eval $1=; unset $1;}
6223 }
6224 as_unset=as_fn_unset
6225 # as_fn_append VAR VALUE
6226 # ----------------------
6227 # Append the text in VALUE to the end of the definition contained in VAR. Take
6228 # advantage of any shell optimizations that allow amortized linear growth over
6229 # repeated appends, instead of the typical quadratic growth present in naive
6230 # implementations.
6231 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6232   eval 'as_fn_append ()
6233   {
6234     eval $1+=\$2
6235   }'
6236 else
6237   as_fn_append ()
6238   {
6239     eval $1=\$$1\$2
6240   }
6241 fi # as_fn_append
6242
6243 # as_fn_arith ARG...
6244 # ------------------
6245 # Perform arithmetic evaluation on the ARGs, and store the result in the
6246 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6247 # must be portable across $(()) and expr.
6248 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6249   eval 'as_fn_arith ()
6250   {
6251     as_val=$(( $* ))
6252   }'
6253 else
6254   as_fn_arith ()
6255   {
6256     as_val=`expr "$@" || test $? -eq 1`
6257   }
6258 fi # as_fn_arith
6259
6260
6261 if expr a : '\(a\)' >/dev/null 2>&1 &&
6262    test "X`expr 00001 : '.*\(...\)'`" = X001; then
6263   as_expr=expr
6264 else
6265   as_expr=false
6266 fi
6267
6268 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6269   as_basename=basename
6270 else
6271   as_basename=false
6272 fi
6273
6274 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6275   as_dirname=dirname
6276 else
6277   as_dirname=false
6278 fi
6279
6280 as_me=`$as_basename -- "$0" ||
6281 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6282          X"$0" : 'X\(//\)$' \| \
6283          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6284 $as_echo X/"$0" |
6285     sed '/^.*\/\([^/][^/]*\)\/*$/{
6286             s//\1/
6287             q
6288           }
6289           /^X\/\(\/\/\)$/{
6290             s//\1/
6291             q
6292           }
6293           /^X\/\(\/\).*/{
6294             s//\1/
6295             q
6296           }
6297           s/.*/./; q'`
6298
6299 # Avoid depending upon Character Ranges.
6300 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6301 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6302 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6303 as_cr_digits='0123456789'
6304 as_cr_alnum=$as_cr_Letters$as_cr_digits
6305
6306 ECHO_C= ECHO_N= ECHO_T=
6307 case `echo -n x` in #(((((
6308 -n*)
6309   case `echo 'xy\c'` in
6310   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
6311   xy)  ECHO_C='\c';;
6312   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
6313        ECHO_T=' ';;
6314   esac;;
6315 *)
6316   ECHO_N='-n';;
6317 esac
6318
6319 rm -f conf$$ conf$$.exe conf$$.file
6320 if test -d conf$$.dir; then
6321   rm -f conf$$.dir/conf$$.file
6322 else
6323   rm -f conf$$.dir
6324   mkdir conf$$.dir 2>/dev/null
6325 fi
6326 if (echo >conf$$.file) 2>/dev/null; then
6327   if ln -s conf$$.file conf$$ 2>/dev/null; then
6328     as_ln_s='ln -s'
6329     # ... but there are two gotchas:
6330     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6331     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6332     # In both cases, we have to default to `cp -p'.
6333     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6334       as_ln_s='cp -p'
6335   elif ln conf$$.file conf$$ 2>/dev/null; then
6336     as_ln_s=ln
6337   else
6338     as_ln_s='cp -p'
6339   fi
6340 else
6341   as_ln_s='cp -p'
6342 fi
6343 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6344 rmdir conf$$.dir 2>/dev/null
6345
6346
6347 # as_fn_mkdir_p
6348 # -------------
6349 # Create "$as_dir" as a directory, including parents if necessary.
6350 as_fn_mkdir_p ()
6351 {
6352
6353   case $as_dir in #(
6354   -*) as_dir=./$as_dir;;
6355   esac
6356   test -d "$as_dir" || eval $as_mkdir_p || {
6357     as_dirs=
6358     while :; do
6359       case $as_dir in #(
6360       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6361       *) as_qdir=$as_dir;;
6362       esac
6363       as_dirs="'$as_qdir' $as_dirs"
6364       as_dir=`$as_dirname -- "$as_dir" ||
6365 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6366          X"$as_dir" : 'X\(//\)[^/]' \| \
6367          X"$as_dir" : 'X\(//\)$' \| \
6368          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6369 $as_echo X"$as_dir" |
6370     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6371             s//\1/
6372             q
6373           }
6374           /^X\(\/\/\)[^/].*/{
6375             s//\1/
6376             q
6377           }
6378           /^X\(\/\/\)$/{
6379             s//\1/
6380             q
6381           }
6382           /^X\(\/\).*/{
6383             s//\1/
6384             q
6385           }
6386           s/.*/./; q'`
6387       test -d "$as_dir" && break
6388     done
6389     test -z "$as_dirs" || eval "mkdir $as_dirs"
6390   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
6391
6392
6393 } # as_fn_mkdir_p
6394 if mkdir -p . 2>/dev/null; then
6395   as_mkdir_p='mkdir -p "$as_dir"'
6396 else
6397   test -d ./-p && rmdir ./-p
6398   as_mkdir_p=false
6399 fi
6400
6401 if test -x / >/dev/null 2>&1; then
6402   as_test_x='test -x'
6403 else
6404   if ls -dL / >/dev/null 2>&1; then
6405     as_ls_L_option=L
6406   else
6407     as_ls_L_option=
6408   fi
6409   as_test_x='
6410     eval sh -c '\''
6411       if test -d "$1"; then
6412         test -d "$1/.";
6413       else
6414         case $1 in #(
6415         -*)set "./$1";;
6416         esac;
6417         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6418         ???[sx]*):;;*)false;;esac;fi
6419     '\'' sh
6420   '
6421 fi
6422 as_executable_p=$as_test_x
6423
6424 # Sed expression to map a string onto a valid CPP name.
6425 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6426
6427 # Sed expression to map a string onto a valid variable name.
6428 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6429
6430
6431 exec 6>&1
6432 ## ----------------------------------- ##
6433 ## Main body of $CONFIG_STATUS script. ##
6434 ## ----------------------------------- ##
6435 _ASEOF
6436 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6437
6438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6439 # Save the log message, to keep $0 and so on meaningful, and to
6440 # report actual input values of CONFIG_FILES etc. instead of their
6441 # values after options handling.
6442 ac_log="
6443 This file was extended by nbd $as_me 2.9.15, which was
6444 generated by GNU Autoconf 2.65.  Invocation command line was
6445
6446   CONFIG_FILES    = $CONFIG_FILES
6447   CONFIG_HEADERS  = $CONFIG_HEADERS
6448   CONFIG_LINKS    = $CONFIG_LINKS
6449   CONFIG_COMMANDS = $CONFIG_COMMANDS
6450   $ $0 $@
6451
6452 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6453 "
6454
6455 _ACEOF
6456
6457 case $ac_config_files in *"
6458 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6459 esac
6460
6461 case $ac_config_headers in *"
6462 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6463 esac
6464
6465
6466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6467 # Files that config.status was made for.
6468 config_files="$ac_config_files"
6469 config_headers="$ac_config_headers"
6470 config_commands="$ac_config_commands"
6471
6472 _ACEOF
6473
6474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6475 ac_cs_usage="\
6476 \`$as_me' instantiates files and other configuration actions
6477 from templates according to the current configuration.  Unless the files
6478 and actions are specified as TAGs, all are instantiated by default.
6479
6480 Usage: $0 [OPTION]... [TAG]...
6481
6482   -h, --help       print this help, then exit
6483   -V, --version    print version number and configuration settings, then exit
6484       --config     print configuration, then exit
6485   -q, --quiet, --silent
6486                    do not print progress messages
6487   -d, --debug      don't remove temporary files
6488       --recheck    update $as_me by reconfiguring in the same conditions
6489       --file=FILE[:TEMPLATE]
6490                    instantiate the configuration file FILE
6491       --header=FILE[:TEMPLATE]
6492                    instantiate the configuration header FILE
6493
6494 Configuration files:
6495 $config_files
6496
6497 Configuration headers:
6498 $config_headers
6499
6500 Configuration commands:
6501 $config_commands
6502
6503 Report bugs to <wouter@debian.org>."
6504
6505 _ACEOF
6506 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6507 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6508 ac_cs_version="\\
6509 nbd config.status 2.9.15
6510 configured by $0, generated by GNU Autoconf 2.65,
6511   with options \\"\$ac_cs_config\\"
6512
6513 Copyright (C) 2009 Free Software Foundation, Inc.
6514 This config.status script is free software; the Free Software Foundation
6515 gives unlimited permission to copy, distribute and modify it."
6516
6517 ac_pwd='$ac_pwd'
6518 srcdir='$srcdir'
6519 INSTALL='$INSTALL'
6520 MKDIR_P='$MKDIR_P'
6521 AWK='$AWK'
6522 test -n "\$AWK" || AWK=awk
6523 _ACEOF
6524
6525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6526 # The default lists apply if the user does not specify any file.
6527 ac_need_defaults=:
6528 while test $# != 0
6529 do
6530   case $1 in
6531   --*=*)
6532     ac_option=`expr "X$1" : 'X\([^=]*\)='`
6533     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6534     ac_shift=:
6535     ;;
6536   *)
6537     ac_option=$1
6538     ac_optarg=$2
6539     ac_shift=shift
6540     ;;
6541   esac
6542
6543   case $ac_option in
6544   # Handling of the options.
6545   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6546     ac_cs_recheck=: ;;
6547   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6548     $as_echo "$ac_cs_version"; exit ;;
6549   --config | --confi | --conf | --con | --co | --c )
6550     $as_echo "$ac_cs_config"; exit ;;
6551   --debug | --debu | --deb | --de | --d | -d )
6552     debug=: ;;
6553   --file | --fil | --fi | --f )
6554     $ac_shift
6555     case $ac_optarg in
6556     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6557     esac
6558     as_fn_append CONFIG_FILES " '$ac_optarg'"
6559     ac_need_defaults=false;;
6560   --header | --heade | --head | --hea )
6561     $ac_shift
6562     case $ac_optarg in
6563     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6564     esac
6565     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6566     ac_need_defaults=false;;
6567   --he | --h)
6568     # Conflict between --help and --header
6569     as_fn_error "ambiguous option: \`$1'
6570 Try \`$0 --help' for more information.";;
6571   --help | --hel | -h )
6572     $as_echo "$ac_cs_usage"; exit ;;
6573   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6574   | -silent | --silent | --silen | --sile | --sil | --si | --s)
6575     ac_cs_silent=: ;;
6576
6577   # This is an error.
6578   -*) as_fn_error "unrecognized option: \`$1'
6579 Try \`$0 --help' for more information." ;;
6580
6581   *) as_fn_append ac_config_targets " $1"
6582      ac_need_defaults=false ;;
6583
6584   esac
6585   shift
6586 done
6587
6588 ac_configure_extra_args=
6589
6590 if $ac_cs_silent; then
6591   exec 6>/dev/null
6592   ac_configure_extra_args="$ac_configure_extra_args --silent"
6593 fi
6594
6595 _ACEOF
6596 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6597 if \$ac_cs_recheck; then
6598   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6599   shift
6600   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6601   CONFIG_SHELL='$SHELL'
6602   export CONFIG_SHELL
6603   exec "\$@"
6604 fi
6605
6606 _ACEOF
6607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6608 exec 5>>config.log
6609 {
6610   echo
6611   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6612 ## Running $as_me. ##
6613 _ASBOX
6614   $as_echo "$ac_log"
6615 } >&5
6616
6617 _ACEOF
6618 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6619 #
6620 # INIT-COMMANDS
6621 #
6622 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6623
6624 _ACEOF
6625
6626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6627
6628 # Handling of arguments.
6629 for ac_config_target in $ac_config_targets
6630 do
6631   case $ac_config_target in
6632     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6633     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6634     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6635     "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
6636     "nbd-server.1") CONFIG_FILES="$CONFIG_FILES nbd-server.1" ;;
6637     "nbd-server.5") CONFIG_FILES="$CONFIG_FILES nbd-server.5" ;;
6638     "nbd-client.8") CONFIG_FILES="$CONFIG_FILES nbd-client.8" ;;
6639
6640   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6641   esac
6642 done
6643
6644
6645 # If the user did not use the arguments to specify the items to instantiate,
6646 # then the envvar interface is used.  Set only those that are not.
6647 # We use the long form for the default assignment because of an extremely
6648 # bizarre bug on SunOS 4.1.3.
6649 if $ac_need_defaults; then
6650   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6651   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6652   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6653 fi
6654
6655 # Have a temporary directory for convenience.  Make it in the build tree
6656 # simply because there is no reason against having it here, and in addition,
6657 # creating and moving files from /tmp can sometimes cause problems.
6658 # Hook for its removal unless debugging.
6659 # Note that there is a small window in which the directory will not be cleaned:
6660 # after its creation but before its name has been assigned to `$tmp'.
6661 $debug ||
6662 {
6663   tmp=
6664   trap 'exit_status=$?
6665   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6666 ' 0
6667   trap 'as_fn_exit 1' 1 2 13 15
6668 }
6669 # Create a (secure) tmp directory for tmp files.
6670
6671 {
6672   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6673   test -n "$tmp" && test -d "$tmp"
6674 }  ||
6675 {
6676   tmp=./conf$$-$RANDOM
6677   (umask 077 && mkdir "$tmp")
6678 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
6679
6680 # Set up the scripts for CONFIG_FILES section.
6681 # No need to generate them if there are no CONFIG_FILES.
6682 # This happens for instance with `./config.status config.h'.
6683 if test -n "$CONFIG_FILES"; then
6684
6685
6686 ac_cr=`echo X | tr X '\015'`
6687 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6688 # But we know of no other shell where ac_cr would be empty at this
6689 # point, so we can use a bashism as a fallback.
6690 if test "x$ac_cr" = x; then
6691   eval ac_cr=\$\'\\r\'
6692 fi
6693 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6694 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6695   ac_cs_awk_cr='\r'
6696 else
6697   ac_cs_awk_cr=$ac_cr
6698 fi
6699
6700 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6701 _ACEOF
6702
6703
6704 {
6705   echo "cat >conf$$subs.awk <<_ACEOF" &&
6706   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6707   echo "_ACEOF"
6708 } >conf$$subs.sh ||
6709   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6710 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6711 ac_delim='%!_!# '
6712 for ac_last_try in false false false false false :; do
6713   . ./conf$$subs.sh ||
6714     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6715
6716   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6717   if test $ac_delim_n = $ac_delim_num; then
6718     break
6719   elif $ac_last_try; then
6720     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6721   else
6722     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6723   fi
6724 done
6725 rm -f conf$$subs.sh
6726
6727 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6728 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6729 _ACEOF
6730 sed -n '
6731 h
6732 s/^/S["/; s/!.*/"]=/
6733 p
6734 g
6735 s/^[^!]*!//
6736 :repl
6737 t repl
6738 s/'"$ac_delim"'$//
6739 t delim
6740 :nl
6741 h
6742 s/\(.\{148\}\)..*/\1/
6743 t more1
6744 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6745 p
6746 n
6747 b repl
6748 :more1
6749 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6750 p
6751 g
6752 s/.\{148\}//
6753 t nl
6754 :delim
6755 h
6756 s/\(.\{148\}\)..*/\1/
6757 t more2
6758 s/["\\]/\\&/g; s/^/"/; s/$/"/
6759 p
6760 b
6761 :more2
6762 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6763 p
6764 g
6765 s/.\{148\}//
6766 t delim
6767 ' <conf$$subs.awk | sed '
6768 /^[^""]/{
6769   N
6770   s/\n//
6771 }
6772 ' >>$CONFIG_STATUS || ac_write_fail=1
6773 rm -f conf$$subs.awk
6774 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6775 _ACAWK
6776 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6777   for (key in S) S_is_set[key] = 1
6778   FS = "\a"
6779
6780 }
6781 {
6782   line = $ 0
6783   nfields = split(line, field, "@")
6784   substed = 0
6785   len = length(field[1])
6786   for (i = 2; i < nfields; i++) {
6787     key = field[i]
6788     keylen = length(key)
6789     if (S_is_set[key]) {
6790       value = S[key]
6791       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6792       len += length(value) + length(field[++i])
6793       substed = 1
6794     } else
6795       len += 1 + keylen
6796   }
6797
6798   print line
6799 }
6800
6801 _ACAWK
6802 _ACEOF
6803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6804 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6805   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6806 else
6807   cat
6808 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6809   || as_fn_error "could not setup config files machinery" "$LINENO" 5
6810 _ACEOF
6811
6812 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6813 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6814 # trailing colons and then remove the whole line if VPATH becomes empty
6815 # (actually we leave an empty line to preserve line numbers).
6816 if test "x$srcdir" = x.; then
6817   ac_vpsub='/^[  ]*VPATH[        ]*=/{
6818 s/:*\$(srcdir):*/:/
6819 s/:*\${srcdir}:*/:/
6820 s/:*@srcdir@:*/:/
6821 s/^\([^=]*=[     ]*\):*/\1/
6822 s/:*$//
6823 s/^[^=]*=[       ]*$//
6824 }'
6825 fi
6826
6827 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6828 fi # test -n "$CONFIG_FILES"
6829
6830 # Set up the scripts for CONFIG_HEADERS section.
6831 # No need to generate them if there are no CONFIG_HEADERS.
6832 # This happens for instance with `./config.status Makefile'.
6833 if test -n "$CONFIG_HEADERS"; then
6834 cat >"$tmp/defines.awk" <<\_ACAWK ||
6835 BEGIN {
6836 _ACEOF
6837
6838 # Transform confdefs.h into an awk script `defines.awk', embedded as
6839 # here-document in config.status, that substitutes the proper values into
6840 # config.h.in to produce config.h.
6841
6842 # Create a delimiter string that does not exist in confdefs.h, to ease
6843 # handling of long lines.
6844 ac_delim='%!_!# '
6845 for ac_last_try in false false :; do
6846   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6847   if test -z "$ac_t"; then
6848     break
6849   elif $ac_last_try; then
6850     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
6851   else
6852     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6853   fi
6854 done
6855
6856 # For the awk script, D is an array of macro values keyed by name,
6857 # likewise P contains macro parameters if any.  Preserve backslash
6858 # newline sequences.
6859
6860 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6861 sed -n '
6862 s/.\{148\}/&'"$ac_delim"'/g
6863 t rset
6864 :rset
6865 s/^[     ]*#[    ]*define[       ][      ]*/ /
6866 t def
6867 d
6868 :def
6869 s/\\$//
6870 t bsnl
6871 s/["\\]/\\&/g
6872 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
6873 D["\1"]=" \3"/p
6874 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
6875 d
6876 :bsnl
6877 s/["\\]/\\&/g
6878 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
6879 D["\1"]=" \3\\\\\\n"\\/p
6880 t cont
6881 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6882 t cont
6883 d
6884 :cont
6885 n
6886 s/.\{148\}/&'"$ac_delim"'/g
6887 t clear
6888 :clear
6889 s/\\$//
6890 t bsnlc
6891 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6892 d
6893 :bsnlc
6894 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6895 b cont
6896 ' <confdefs.h | sed '
6897 s/'"$ac_delim"'/"\\\
6898 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6899
6900 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6901   for (key in D) D_is_set[key] = 1
6902   FS = "\a"
6903 }
6904 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6905   line = \$ 0
6906   split(line, arg, " ")
6907   if (arg[1] == "#") {
6908     defundef = arg[2]
6909     mac1 = arg[3]
6910   } else {
6911     defundef = substr(arg[1], 2)
6912     mac1 = arg[2]
6913   }
6914   split(mac1, mac2, "(") #)
6915   macro = mac2[1]
6916   prefix = substr(line, 1, index(line, defundef) - 1)
6917   if (D_is_set[macro]) {
6918     # Preserve the white space surrounding the "#".
6919     print prefix "define", macro P[macro] D[macro]
6920     next
6921   } else {
6922     # Replace #undef with comments.  This is necessary, for example,
6923     # in the case of _POSIX_SOURCE, which is predefined and required
6924     # on some systems where configure will not decide to define it.
6925     if (defundef == "undef") {
6926       print "/*", prefix defundef, macro, "*/"
6927       next
6928     }
6929   }
6930 }
6931 { print }
6932 _ACAWK
6933 _ACEOF
6934 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6935   as_fn_error "could not setup config headers machinery" "$LINENO" 5
6936 fi # test -n "$CONFIG_HEADERS"
6937
6938
6939 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
6940 shift
6941 for ac_tag
6942 do
6943   case $ac_tag in
6944   :[FHLC]) ac_mode=$ac_tag; continue;;
6945   esac
6946   case $ac_mode$ac_tag in
6947   :[FHL]*:*);;
6948   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
6949   :[FH]-) ac_tag=-:-;;
6950   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6951   esac
6952   ac_save_IFS=$IFS
6953   IFS=:
6954   set x $ac_tag
6955   IFS=$ac_save_IFS
6956   shift
6957   ac_file=$1
6958   shift
6959
6960   case $ac_mode in
6961   :L) ac_source=$1;;
6962   :[FH])
6963     ac_file_inputs=
6964     for ac_f
6965     do
6966       case $ac_f in
6967       -) ac_f="$tmp/stdin";;
6968       *) # Look for the file first in the build tree, then in the source tree
6969          # (if the path is not absolute).  The absolute path cannot be DOS-style,
6970          # because $ac_f cannot contain `:'.
6971          test -f "$ac_f" ||
6972            case $ac_f in
6973            [\\/$]*) false;;
6974            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6975            esac ||
6976            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6977       esac
6978       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6979       as_fn_append ac_file_inputs " '$ac_f'"
6980     done
6981
6982     # Let's still pretend it is `configure' which instantiates (i.e., don't
6983     # use $as_me), people would be surprised to read:
6984     #    /* config.h.  Generated by config.status.  */
6985     configure_input='Generated from '`
6986           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6987         `' by configure.'
6988     if test x"$ac_file" != x-; then
6989       configure_input="$ac_file.  $configure_input"
6990       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6991 $as_echo "$as_me: creating $ac_file" >&6;}
6992     fi
6993     # Neutralize special characters interpreted by sed in replacement strings.
6994     case $configure_input in #(
6995     *\&* | *\|* | *\\* )
6996        ac_sed_conf_input=`$as_echo "$configure_input" |
6997        sed 's/[\\\\&|]/\\\\&/g'`;; #(
6998     *) ac_sed_conf_input=$configure_input;;
6999     esac
7000
7001     case $ac_tag in
7002     *:-:* | *:-) cat >"$tmp/stdin" \
7003       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
7004     esac
7005     ;;
7006   esac
7007
7008   ac_dir=`$as_dirname -- "$ac_file" ||
7009 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7010          X"$ac_file" : 'X\(//\)[^/]' \| \
7011          X"$ac_file" : 'X\(//\)$' \| \
7012          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7013 $as_echo X"$ac_file" |
7014     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7015             s//\1/
7016             q
7017           }
7018           /^X\(\/\/\)[^/].*/{
7019             s//\1/
7020             q
7021           }
7022           /^X\(\/\/\)$/{
7023             s//\1/
7024             q
7025           }
7026           /^X\(\/\).*/{
7027             s//\1/
7028             q
7029           }
7030           s/.*/./; q'`
7031   as_dir="$ac_dir"; as_fn_mkdir_p
7032   ac_builddir=.
7033
7034 case "$ac_dir" in
7035 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7036 *)
7037   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7038   # A ".." for each directory in $ac_dir_suffix.
7039   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7040   case $ac_top_builddir_sub in
7041   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7042   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7043   esac ;;
7044 esac
7045 ac_abs_top_builddir=$ac_pwd
7046 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7047 # for backward compatibility:
7048 ac_top_builddir=$ac_top_build_prefix
7049
7050 case $srcdir in
7051   .)  # We are building in place.
7052     ac_srcdir=.
7053     ac_top_srcdir=$ac_top_builddir_sub
7054     ac_abs_top_srcdir=$ac_pwd ;;
7055   [\\/]* | ?:[\\/]* )  # Absolute name.
7056     ac_srcdir=$srcdir$ac_dir_suffix;
7057     ac_top_srcdir=$srcdir
7058     ac_abs_top_srcdir=$srcdir ;;
7059   *) # Relative name.
7060     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7061     ac_top_srcdir=$ac_top_build_prefix$srcdir
7062     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7063 esac
7064 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7065
7066
7067   case $ac_mode in
7068   :F)
7069   #
7070   # CONFIG_FILE
7071   #
7072
7073   case $INSTALL in
7074   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7075   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7076   esac
7077   ac_MKDIR_P=$MKDIR_P
7078   case $MKDIR_P in
7079   [\\/$]* | ?:[\\/]* ) ;;
7080   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7081   esac
7082 _ACEOF
7083
7084 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7085 # If the template does not know about datarootdir, expand it.
7086 # FIXME: This hack should be removed a few years after 2.60.
7087 ac_datarootdir_hack=; ac_datarootdir_seen=
7088 ac_sed_dataroot='
7089 /datarootdir/ {
7090   p
7091   q
7092 }
7093 /@datadir@/p
7094 /@docdir@/p
7095 /@infodir@/p
7096 /@localedir@/p
7097 /@mandir@/p'
7098 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7099 *datarootdir*) ac_datarootdir_seen=yes;;
7100 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7101   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7102 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7103 _ACEOF
7104 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7105   ac_datarootdir_hack='
7106   s&@datadir@&$datadir&g
7107   s&@docdir@&$docdir&g
7108   s&@infodir@&$infodir&g
7109   s&@localedir@&$localedir&g
7110   s&@mandir@&$mandir&g
7111   s&\\\${datarootdir}&$datarootdir&g' ;;
7112 esac
7113 _ACEOF
7114
7115 # Neutralize VPATH when `$srcdir' = `.'.
7116 # Shell code in configure.ac might set extrasub.
7117 # FIXME: do we really want to maintain this feature?
7118 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7119 ac_sed_extra="$ac_vpsub
7120 $extrasub
7121 _ACEOF
7122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7123 :t
7124 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7125 s|@configure_input@|$ac_sed_conf_input|;t t
7126 s&@top_builddir@&$ac_top_builddir_sub&;t t
7127 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7128 s&@srcdir@&$ac_srcdir&;t t
7129 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7130 s&@top_srcdir@&$ac_top_srcdir&;t t
7131 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7132 s&@builddir@&$ac_builddir&;t t
7133 s&@abs_builddir@&$ac_abs_builddir&;t t
7134 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7135 s&@INSTALL@&$ac_INSTALL&;t t
7136 s&@MKDIR_P@&$ac_MKDIR_P&;t t
7137 $ac_datarootdir_hack
7138 "
7139 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7140   || as_fn_error "could not create $ac_file" "$LINENO" 5
7141
7142 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7143   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7144   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7145   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7146 which seems to be undefined.  Please make sure it is defined." >&5
7147 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7148 which seems to be undefined.  Please make sure it is defined." >&2;}
7149
7150   rm -f "$tmp/stdin"
7151   case $ac_file in
7152   -) cat "$tmp/out" && rm -f "$tmp/out";;
7153   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7154   esac \
7155   || as_fn_error "could not create $ac_file" "$LINENO" 5
7156  ;;
7157   :H)
7158   #
7159   # CONFIG_HEADER
7160   #
7161   if test x"$ac_file" != x-; then
7162     {
7163       $as_echo "/* $configure_input  */" \
7164       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7165     } >"$tmp/config.h" \
7166       || as_fn_error "could not create $ac_file" "$LINENO" 5
7167     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7168       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7169 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7170     else
7171       rm -f "$ac_file"
7172       mv "$tmp/config.h" "$ac_file" \
7173         || as_fn_error "could not create $ac_file" "$LINENO" 5
7174     fi
7175   else
7176     $as_echo "/* $configure_input  */" \
7177       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7178       || as_fn_error "could not create -" "$LINENO" 5
7179   fi
7180 # Compute "$ac_file"'s index in $config_headers.
7181 _am_arg="$ac_file"
7182 _am_stamp_count=1
7183 for _am_header in $config_headers :; do
7184   case $_am_header in
7185     $_am_arg | $_am_arg:* )
7186       break ;;
7187     * )
7188       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7189   esac
7190 done
7191 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7192 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7193          X"$_am_arg" : 'X\(//\)[^/]' \| \
7194          X"$_am_arg" : 'X\(//\)$' \| \
7195          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
7196 $as_echo X"$_am_arg" |
7197     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7198             s//\1/
7199             q
7200           }
7201           /^X\(\/\/\)[^/].*/{
7202             s//\1/
7203             q
7204           }
7205           /^X\(\/\/\)$/{
7206             s//\1/
7207             q
7208           }
7209           /^X\(\/\).*/{
7210             s//\1/
7211             q
7212           }
7213           s/.*/./; q'`/stamp-h$_am_stamp_count
7214  ;;
7215
7216   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7217 $as_echo "$as_me: executing $ac_file commands" >&6;}
7218  ;;
7219   esac
7220
7221
7222   case $ac_file$ac_mode in
7223     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
7224   # Autoconf 2.62 quotes --file arguments for eval, but not when files
7225   # are listed without --file.  Let's play safe and only enable the eval
7226   # if we detect the quoting.
7227   case $CONFIG_FILES in
7228   *\'*) eval set x "$CONFIG_FILES" ;;
7229   *)   set x $CONFIG_FILES ;;
7230   esac
7231   shift
7232   for mf
7233   do
7234     # Strip MF so we end up with the name of the file.
7235     mf=`echo "$mf" | sed -e 's/:.*$//'`
7236     # Check whether this is an Automake generated Makefile or not.
7237     # We used to match only the files named `Makefile.in', but
7238     # some people rename them; so instead we look at the file content.
7239     # Grep'ing the first line is not enough: some people post-process
7240     # each Makefile.in and add a new line on top of each file to say so.
7241     # Grep'ing the whole file is not good either: AIX grep has a line
7242     # limit of 2048, but all sed's we know have understand at least 4000.
7243     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7244       dirpart=`$as_dirname -- "$mf" ||
7245 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7246          X"$mf" : 'X\(//\)[^/]' \| \
7247          X"$mf" : 'X\(//\)$' \| \
7248          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
7249 $as_echo X"$mf" |
7250     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7251             s//\1/
7252             q
7253           }
7254           /^X\(\/\/\)[^/].*/{
7255             s//\1/
7256             q
7257           }
7258           /^X\(\/\/\)$/{
7259             s//\1/
7260             q
7261           }
7262           /^X\(\/\).*/{
7263             s//\1/
7264             q
7265           }
7266           s/.*/./; q'`
7267     else
7268       continue
7269     fi
7270     # Extract the definition of DEPDIR, am__include, and am__quote
7271     # from the Makefile without running `make'.
7272     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7273     test -z "$DEPDIR" && continue
7274     am__include=`sed -n 's/^am__include = //p' < "$mf"`
7275     test -z "am__include" && continue
7276     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7277     # When using ansi2knr, U may be empty or an underscore; expand it
7278     U=`sed -n 's/^U = //p' < "$mf"`
7279     # Find all dependency output files, they are included files with
7280     # $(DEPDIR) in their names.  We invoke sed twice because it is the
7281     # simplest approach to changing $(DEPDIR) to its actual value in the
7282     # expansion.
7283     for file in `sed -n "
7284       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7285          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7286       # Make sure the directory exists.
7287       test -f "$dirpart/$file" && continue
7288       fdir=`$as_dirname -- "$file" ||
7289 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7290          X"$file" : 'X\(//\)[^/]' \| \
7291          X"$file" : 'X\(//\)$' \| \
7292          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
7293 $as_echo X"$file" |
7294     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7295             s//\1/
7296             q
7297           }
7298           /^X\(\/\/\)[^/].*/{
7299             s//\1/
7300             q
7301           }
7302           /^X\(\/\/\)$/{
7303             s//\1/
7304             q
7305           }
7306           /^X\(\/\).*/{
7307             s//\1/
7308             q
7309           }
7310           s/.*/./; q'`
7311       as_dir=$dirpart/$fdir; as_fn_mkdir_p
7312       # echo "creating $dirpart/$file"
7313       echo '# dummy' > "$dirpart/$file"
7314     done
7315   done
7316 }
7317  ;;
7318
7319   esac
7320 done # for ac_tag
7321
7322
7323 as_fn_exit 0
7324 _ACEOF
7325 ac_clean_files=$ac_clean_files_save
7326
7327 test $ac_write_fail = 0 ||
7328   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
7329
7330
7331 # configure is writing to config.log, and then calls config.status.
7332 # config.status does its own redirection, appending to config.log.
7333 # Unfortunately, on DOS this fails, as config.log is still kept open
7334 # by configure, so config.status won't be able to write to it; its
7335 # output is simply discarded.  So we exec the FD to /dev/null,
7336 # effectively closing config.log, so it can be properly (re)opened and
7337 # appended to by config.status.  When coming back to configure, we
7338 # need to make the FD available again.
7339 if test "$no_create" != yes; then
7340   ac_cs_success=:
7341   ac_config_status_args=
7342   test "$silent" = yes &&
7343     ac_config_status_args="$ac_config_status_args --quiet"
7344   exec 5>/dev/null
7345   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7346   exec 5>>config.log
7347   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7348   # would make configure fail if this is the last instruction.
7349   $ac_cs_success || as_fn_exit $?
7350 fi
7351 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7352   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7353 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7354 fi
7355
7356