"Fossies" - the Fresh Open Source Software Archive

Member "btrfs-progs-v5.4.1/configure" (9 Jan 2020, 238274 Bytes) of package /linux/misc/btrfs-progs-v5.4.1.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "configure": v5.4_vs_v5.4.1.

    1 #! /bin/sh
    2 # Guess values for system-dependent variables and create Makefiles.
    3 # Generated by GNU Autoconf 2.69 for btrfs-progs v5.4.1 .
    4 #
    5 # Report bugs to <linux-btrfs@vger.kernel.org>.
    6 #
    7 #
    8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
    9 #
   10 #
   11 # This configure script is free software; the Free Software Foundation
   12 # gives unlimited permission to copy, distribute and modify it.
   13 ## -------------------- ##
   14 ## M4sh Initialization. ##
   15 ## -------------------- ##
   16 
   17 # Be more Bourne compatible
   18 DUALCASE=1; export DUALCASE # for MKS sh
   19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
   20   emulate sh
   21   NULLCMD=:
   22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   23   # is contrary to our usage.  Disable this feature.
   24   alias -g '${1+"$@"}'='"$@"'
   25   setopt NO_GLOB_SUBST
   26 else
   27   case `(set -o) 2>/dev/null` in #(
   28   *posix*) :
   29     set -o posix ;; #(
   30   *) :
   31      ;;
   32 esac
   33 fi
   34 
   35 
   36 as_nl='
   37 '
   38 export as_nl
   39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
   40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
   42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
   43 # Prefer a ksh shell builtin over an external printf program on Solaris,
   44 # but without wasting forks for bash or zsh.
   45 if test -z "$BASH_VERSION$ZSH_VERSION" \
   46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
   47   as_echo='print -r --'
   48   as_echo_n='print -rn --'
   49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
   50   as_echo='printf %s\n'
   51   as_echo_n='printf %s'
   52 else
   53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
   54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
   55     as_echo_n='/usr/ucb/echo -n'
   56   else
   57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
   58     as_echo_n_body='eval
   59       arg=$1;
   60       case $arg in #(
   61       *"$as_nl"*)
   62     expr "X$arg" : "X\\(.*\\)$as_nl";
   63     arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
   64       esac;
   65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
   66     '
   67     export as_echo_n_body
   68     as_echo_n='sh -c $as_echo_n_body as_echo'
   69   fi
   70   export as_echo_body
   71   as_echo='sh -c $as_echo_body as_echo'
   72 fi
   73 
   74 # The user is always right.
   75 if test "${PATH_SEPARATOR+set}" != set; then
   76   PATH_SEPARATOR=:
   77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   79       PATH_SEPARATOR=';'
   80   }
   81 fi
   82 
   83 
   84 # IFS
   85 # We need space, tab and new line, in precisely that order.  Quoting is
   86 # there to prevent editors from complaining about space-tab.
   87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   88 # splitting by setting IFS to empty value.)
   89 IFS=" ""    $as_nl"
   90 
   91 # Find who we are.  Look in the path if we contain no directory separator.
   92 as_myself=
   93 case $0 in #((
   94   *[\\/]* ) as_myself=$0 ;;
   95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   96 for as_dir in $PATH
   97 do
   98   IFS=$as_save_IFS
   99   test -z "$as_dir" && as_dir=.
  100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  101   done
  102 IFS=$as_save_IFS
  103 
  104      ;;
  105 esac
  106 # We did not find ourselves, most probably we were run as `sh COMMAND'
  107 # in which case we are not to be found in the path.
  108 if test "x$as_myself" = x; then
  109   as_myself=$0
  110 fi
  111 if test ! -f "$as_myself"; then
  112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  113   exit 1
  114 fi
  115 
  116 # Unset variables that we do not need and which cause bugs (e.g. in
  117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
  118 # suppresses any "Segmentation fault" message there.  '((' could
  119 # trigger a bug in pdksh 5.2.14.
  120 for as_var in BASH_ENV ENV MAIL MAILPATH
  121 do eval test x\${$as_var+set} = xset \
  122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  123 done
  124 PS1='$ '
  125 PS2='> '
  126 PS4='+ '
  127 
  128 # NLS nuisances.
  129 LC_ALL=C
  130 export LC_ALL
  131 LANGUAGE=C
  132 export LANGUAGE
  133 
  134 # CDPATH.
  135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  136 
  137 # Use a proper internal environment variable to ensure we don't fall
  138   # into an infinite loop, continuously re-executing ourselves.
  139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  140     _as_can_reexec=no; export _as_can_reexec;
  141     # We cannot yet assume a decent shell, so we have to provide a
  142 # neutralization value for shells without unset; and this also
  143 # works around shells that cannot unset nonexistent variables.
  144 # Preserve -v and -x to the replacement shell.
  145 BASH_ENV=/dev/null
  146 ENV=/dev/null
  147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  148 case $- in # ((((
  149   *v*x* | *x*v* ) as_opts=-vx ;;
  150   *v* ) as_opts=-v ;;
  151   *x* ) as_opts=-x ;;
  152   * ) as_opts= ;;
  153 esac
  154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  155 # Admittedly, this is quite paranoid, since all the known shells bail
  156 # out after a failed `exec'.
  157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  158 as_fn_exit 255
  159   fi
  160   # We don't want this to propagate to other subprocesses.
  161           { _as_can_reexec=; unset _as_can_reexec;}
  162 if test "x$CONFIG_SHELL" = x; then
  163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  164   emulate sh
  165   NULLCMD=:
  166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  167   # is contrary to our usage.  Disable this feature.
  168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
  169   setopt NO_GLOB_SUBST
  170 else
  171   case \`(set -o) 2>/dev/null\` in #(
  172   *posix*) :
  173     set -o posix ;; #(
  174   *) :
  175      ;;
  176 esac
  177 fi
  178 "
  179   as_required="as_fn_return () { (exit \$1); }
  180 as_fn_success () { as_fn_return 0; }
  181 as_fn_failure () { as_fn_return 1; }
  182 as_fn_ret_success () { return 0; }
  183 as_fn_ret_failure () { return 1; }
  184 
  185 exitcode=0
  186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  191 
  192 else
  193   exitcode=1; echo positional parameters were not saved.
  194 fi
  195 test x\$exitcode = x0 || exit 1
  196 test -x / || exit 1"
  197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  201 test \$(( 1 + 1 )) = 2 || exit 1"
  202   if (eval "$as_required") 2>/dev/null; then :
  203   as_have_required=yes
  204 else
  205   as_have_required=no
  206 fi
  207   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  208 
  209 else
  210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  211 as_found=false
  212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  213 do
  214   IFS=$as_save_IFS
  215   test -z "$as_dir" && as_dir=.
  216   as_found=:
  217   case $as_dir in #(
  218      /*)
  219        for as_base in sh bash ksh sh5; do
  220          # Try only shells that exist, to save several forks.
  221          as_shell=$as_dir/$as_base
  222          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  223             { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  224   CONFIG_SHELL=$as_shell as_have_required=yes
  225            if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  226   break 2
  227 fi
  228 fi
  229        done;;
  230        esac
  231   as_found=false
  232 done
  233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  234           { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  235   CONFIG_SHELL=$SHELL as_have_required=yes
  236 fi; }
  237 IFS=$as_save_IFS
  238 
  239 
  240       if test "x$CONFIG_SHELL" != x; then :
  241   export CONFIG_SHELL
  242              # We cannot yet assume a decent shell, so we have to provide a
  243 # neutralization value for shells without unset; and this also
  244 # works around shells that cannot unset nonexistent variables.
  245 # Preserve -v and -x to the replacement shell.
  246 BASH_ENV=/dev/null
  247 ENV=/dev/null
  248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  249 case $- in # ((((
  250   *v*x* | *x*v* ) as_opts=-vx ;;
  251   *v* ) as_opts=-v ;;
  252   *x* ) as_opts=-x ;;
  253   * ) as_opts= ;;
  254 esac
  255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  256 # Admittedly, this is quite paranoid, since all the known shells bail
  257 # out after a failed `exec'.
  258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  259 exit 255
  260 fi
  261 
  262     if test x$as_have_required = xno; then :
  263   $as_echo "$0: This script requires a shell more modern than all"
  264   $as_echo "$0: the shells that I found on your system."
  265   if test x${ZSH_VERSION+set} = xset ; then
  266     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  267     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  268   else
  269     $as_echo "$0: Please tell bug-autoconf@gnu.org and
  270 $0: linux-btrfs@vger.kernel.org about your system,
  271 $0: including any error possibly output before this
  272 $0: message. Then install a modern shell, or manually run
  273 $0: the script under such a shell if you do have one."
  274   fi
  275   exit 1
  276 fi
  277 fi
  278 fi
  279 SHELL=${CONFIG_SHELL-/bin/sh}
  280 export SHELL
  281 # Unset more variables known to interfere with behavior of common tools.
  282 CLICOLOR_FORCE= GREP_OPTIONS=
  283 unset CLICOLOR_FORCE GREP_OPTIONS
  284 
  285 ## --------------------- ##
  286 ## M4sh Shell Functions. ##
  287 ## --------------------- ##
  288 # as_fn_unset VAR
  289 # ---------------
  290 # Portably unset VAR.
  291 as_fn_unset ()
  292 {
  293   { eval $1=; unset $1;}
  294 }
  295 as_unset=as_fn_unset
  296 
  297 # as_fn_set_status STATUS
  298 # -----------------------
  299 # Set $? to STATUS, without forking.
  300 as_fn_set_status ()
  301 {
  302   return $1
  303 } # as_fn_set_status
  304 
  305 # as_fn_exit STATUS
  306 # -----------------
  307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  308 as_fn_exit ()
  309 {
  310   set +e
  311   as_fn_set_status $1
  312   exit $1
  313 } # as_fn_exit
  314 
  315 # as_fn_mkdir_p
  316 # -------------
  317 # Create "$as_dir" as a directory, including parents if necessary.
  318 as_fn_mkdir_p ()
  319 {
  320 
  321   case $as_dir in #(
  322   -*) as_dir=./$as_dir;;
  323   esac
  324   test -d "$as_dir" || eval $as_mkdir_p || {
  325     as_dirs=
  326     while :; do
  327       case $as_dir in #(
  328       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  329       *) as_qdir=$as_dir;;
  330       esac
  331       as_dirs="'$as_qdir' $as_dirs"
  332       as_dir=`$as_dirname -- "$as_dir" ||
  333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  334      X"$as_dir" : 'X\(//\)[^/]' \| \
  335      X"$as_dir" : 'X\(//\)$' \| \
  336      X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  337 $as_echo X"$as_dir" |
  338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  339         s//\1/
  340         q
  341       }
  342       /^X\(\/\/\)[^/].*/{
  343         s//\1/
  344         q
  345       }
  346       /^X\(\/\/\)$/{
  347         s//\1/
  348         q
  349       }
  350       /^X\(\/\).*/{
  351         s//\1/
  352         q
  353       }
  354       s/.*/./; q'`
  355       test -d "$as_dir" && break
  356     done
  357     test -z "$as_dirs" || eval "mkdir $as_dirs"
  358   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  359 
  360 
  361 } # as_fn_mkdir_p
  362 
  363 # as_fn_executable_p FILE
  364 # -----------------------
  365 # Test if FILE is an executable regular file.
  366 as_fn_executable_p ()
  367 {
  368   test -f "$1" && test -x "$1"
  369 } # as_fn_executable_p
  370 # as_fn_append VAR VALUE
  371 # ----------------------
  372 # Append the text in VALUE to the end of the definition contained in VAR. Take
  373 # advantage of any shell optimizations that allow amortized linear growth over
  374 # repeated appends, instead of the typical quadratic growth present in naive
  375 # implementations.
  376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  377   eval 'as_fn_append ()
  378   {
  379     eval $1+=\$2
  380   }'
  381 else
  382   as_fn_append ()
  383   {
  384     eval $1=\$$1\$2
  385   }
  386 fi # as_fn_append
  387 
  388 # as_fn_arith ARG...
  389 # ------------------
  390 # Perform arithmetic evaluation on the ARGs, and store the result in the
  391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
  392 # must be portable across $(()) and expr.
  393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  394   eval 'as_fn_arith ()
  395   {
  396     as_val=$(( $* ))
  397   }'
  398 else
  399   as_fn_arith ()
  400   {
  401     as_val=`expr "$@" || test $? -eq 1`
  402   }
  403 fi # as_fn_arith
  404 
  405 
  406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
  407 # ----------------------------------------
  408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  410 # script with STATUS, using 1 if that was 0.
  411 as_fn_error ()
  412 {
  413   as_status=$1; test $as_status -eq 0 && as_status=1
  414   if test "$4"; then
  415     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  416     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  417   fi
  418   $as_echo "$as_me: error: $2" >&2
  419   as_fn_exit $as_status
  420 } # as_fn_error
  421 
  422 if expr a : '\(a\)' >/dev/null 2>&1 &&
  423    test "X`expr 00001 : '.*\(...\)'`" = X001; then
  424   as_expr=expr
  425 else
  426   as_expr=false
  427 fi
  428 
  429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  430   as_basename=basename
  431 else
  432   as_basename=false
  433 fi
  434 
  435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  436   as_dirname=dirname
  437 else
  438   as_dirname=false
  439 fi
  440 
  441 as_me=`$as_basename -- "$0" ||
  442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  443      X"$0" : 'X\(//\)$' \| \
  444      X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  445 $as_echo X/"$0" |
  446     sed '/^.*\/\([^/][^/]*\)\/*$/{
  447         s//\1/
  448         q
  449       }
  450       /^X\/\(\/\/\)$/{
  451         s//\1/
  452         q
  453       }
  454       /^X\/\(\/\).*/{
  455         s//\1/
  456         q
  457       }
  458       s/.*/./; q'`
  459 
  460 # Avoid depending upon Character Ranges.
  461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  464 as_cr_digits='0123456789'
  465 as_cr_alnum=$as_cr_Letters$as_cr_digits
  466 
  467 
  468   as_lineno_1=$LINENO as_lineno_1a=$LINENO
  469   as_lineno_2=$LINENO as_lineno_2a=$LINENO
  470   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  471   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  472   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
  473   sed -n '
  474     p
  475     /[$]LINENO/=
  476   ' <$as_myself |
  477     sed '
  478       s/[$]LINENO.*/&-/
  479       t lineno
  480       b
  481       :lineno
  482       N
  483       :loop
  484       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  485       t loop
  486       s/-\n.*//
  487     ' >$as_me.lineno &&
  488   chmod +x "$as_me.lineno" ||
  489     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  490 
  491   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  492   # already done that, so ensure we don't try to do so again and fall
  493   # in an infinite loop.  This has already happened in practice.
  494   _as_can_reexec=no; export _as_can_reexec
  495   # Don't try to exec as it changes $[0], causing all sort of problems
  496   # (the dirname of $[0] is not the place where we might find the
  497   # original and so on.  Autoconf is especially sensitive to this).
  498   . "./$as_me.lineno"
  499   # Exit status is that of the last command.
  500   exit
  501 }
  502 
  503 ECHO_C= ECHO_N= ECHO_T=
  504 case `echo -n x` in #(((((
  505 -n*)
  506   case `echo 'xy\c'` in
  507   *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  508   xy)  ECHO_C='\c';;
  509   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
  510        ECHO_T=' ';;
  511   esac;;
  512 *)
  513   ECHO_N='-n';;
  514 esac
  515 
  516 rm -f conf$$ conf$$.exe conf$$.file
  517 if test -d conf$$.dir; then
  518   rm -f conf$$.dir/conf$$.file
  519 else
  520   rm -f conf$$.dir
  521   mkdir conf$$.dir 2>/dev/null
  522 fi
  523 if (echo >conf$$.file) 2>/dev/null; then
  524   if ln -s conf$$.file conf$$ 2>/dev/null; then
  525     as_ln_s='ln -s'
  526     # ... but there are two gotchas:
  527     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  528     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  529     # In both cases, we have to default to `cp -pR'.
  530     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  531       as_ln_s='cp -pR'
  532   elif ln conf$$.file conf$$ 2>/dev/null; then
  533     as_ln_s=ln
  534   else
  535     as_ln_s='cp -pR'
  536   fi
  537 else
  538   as_ln_s='cp -pR'
  539 fi
  540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  541 rmdir conf$$.dir 2>/dev/null
  542 
  543 if mkdir -p . 2>/dev/null; then
  544   as_mkdir_p='mkdir -p "$as_dir"'
  545 else
  546   test -d ./-p && rmdir ./-p
  547   as_mkdir_p=false
  548 fi
  549 
  550 as_test_x='test -x'
  551 as_executable_p=as_fn_executable_p
  552 
  553 # Sed expression to map a string onto a valid CPP name.
  554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  555 
  556 # Sed expression to map a string onto a valid variable name.
  557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  558 
  559 
  560 test -n "$DJDIR" || exec 7<&0 </dev/null
  561 exec 6>&1
  562 
  563 # Name of the host.
  564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  565 # so uname gets run too.
  566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  567 
  568 #
  569 # Initializations.
  570 #
  571 ac_default_prefix=/usr/local
  572 ac_clean_files=
  573 ac_config_libobj_dir=.
  574 LIBOBJS=
  575 cross_compiling=no
  576 subdirs=
  577 MFLAGS=
  578 MAKEFLAGS=
  579 
  580 # Identity of this package.
  581 PACKAGE_NAME='btrfs-progs'
  582 PACKAGE_TARNAME='btrfs-progs'
  583 PACKAGE_VERSION='v5.4.1 '
  584 PACKAGE_STRING='btrfs-progs v5.4.1 '
  585 PACKAGE_BUGREPORT='linux-btrfs@vger.kernel.org'
  586 PACKAGE_URL='http://btrfs.wiki.kernel.org'
  587 
  588 # Factoring default headers for most tests.
  589 ac_includes_default="\
  590 #include <stdio.h>
  591 #ifdef HAVE_SYS_TYPES_H
  592 # include <sys/types.h>
  593 #endif
  594 #ifdef HAVE_SYS_STAT_H
  595 # include <sys/stat.h>
  596 #endif
  597 #ifdef STDC_HEADERS
  598 # include <stdlib.h>
  599 # include <stddef.h>
  600 #else
  601 # ifdef HAVE_STDLIB_H
  602 #  include <stdlib.h>
  603 # endif
  604 #endif
  605 #ifdef HAVE_STRING_H
  606 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  607 #  include <memory.h>
  608 # endif
  609 # include <string.h>
  610 #endif
  611 #ifdef HAVE_STRINGS_H
  612 # include <strings.h>
  613 #endif
  614 #ifdef HAVE_INTTYPES_H
  615 # include <inttypes.h>
  616 #endif
  617 #ifdef HAVE_STDINT_H
  618 # include <stdint.h>
  619 #endif
  620 #ifdef HAVE_UNISTD_H
  621 # include <unistd.h>
  622 #endif"
  623 
  624 ac_unique_file="btrfs.c"
  625 ac_default_prefix=/usr/local
  626 ac_subst_vars='LTLIBOBJS
  627 LIBOBJS
  628 LIBBTRFS_PATCHLEVEL
  629 LIBBTRFS_MINOR
  630 LIBBTRFS_MAJOR
  631 LZO2_CFLAGS
  632 LZO2_LIBS_STATIC
  633 LZO2_LIBS
  634 UDEVDIR
  635 PYTHON_BINDINGS
  636 PYTHON_LIBS
  637 PYTHON_CFLAGS
  638 pkgpyexecdir
  639 pyexecdir
  640 pkgpythondir
  641 pythondir
  642 PYTHON_PLATFORM
  643 PYTHON_EXEC_PREFIX
  644 PYTHON_PREFIX
  645 PYTHON_VERSION
  646 PYTHON
  647 BTRFSRESTORE_ZSTD
  648 ZSTD_LIBS_STATIC
  649 ZSTD_LIBS
  650 ZSTD_CFLAGS
  651 ZLIB_LIBS_STATIC
  652 ZLIB_LIBS
  653 ZLIB_CFLAGS
  654 UUID_LIBS_STATIC
  655 UUID_LIBS
  656 UUID_CFLAGS
  657 BLKID_LIBS_STATIC
  658 BLKID_LIBS
  659 BLKID_CFLAGS
  660 BTRFSCONVERT_REISERFS
  661 BTRFSCONVERT_EXT2
  662 REISERFS_LIBS
  663 REISERFS_CFLAGS
  664 COM_ERR_LIBS
  665 COM_ERR_CFLAGS
  666 EXT2FS_LIBS
  667 EXT2FS_CFLAGS
  668 DISABLE_BTRFSCONVERT
  669 BUILD_STATIC_LIBRARIES
  670 BUILD_SHARED_LIBRARIES
  671 BUILD_PROGRAMS
  672 ASCIIDOC_TOOL
  673 ASCIIDOCTOR
  674 ASCIIDOC
  675 SED
  676 MV
  677 XMLTO
  678 DISABLE_DOCUMENTATION
  679 PKG_CONFIG_LIBDIR
  680 PKG_CONFIG_PATH
  681 PKG_CONFIG
  682 RMDIR
  683 RM
  684 AR
  685 LN_S
  686 INSTALL_DATA
  687 INSTALL_SCRIPT
  688 INSTALL_PROGRAM
  689 host_os
  690 host_vendor
  691 host_cpu
  692 host
  693 build_os
  694 build_vendor
  695 build_cpu
  696 build
  697 BTRFS_CSTD_FLAGS
  698 EGREP
  699 GREP
  700 CPP
  701 OBJEXT
  702 EXEEXT
  703 ac_ct_CC
  704 CPPFLAGS
  705 LDFLAGS
  706 CC
  707 CFLAGS
  708 target_alias
  709 host_alias
  710 build_alias
  711 LIBS
  712 ECHO_T
  713 ECHO_N
  714 ECHO_C
  715 DEFS
  716 mandir
  717 localedir
  718 libdir
  719 psdir
  720 pdfdir
  721 dvidir
  722 htmldir
  723 infodir
  724 docdir
  725 oldincludedir
  726 includedir
  727 localstatedir
  728 sharedstatedir
  729 sysconfdir
  730 datadir
  731 datarootdir
  732 libexecdir
  733 sbindir
  734 bindir
  735 program_transform_name
  736 prefix
  737 exec_prefix
  738 PACKAGE_URL
  739 PACKAGE_BUGREPORT
  740 PACKAGE_STRING
  741 PACKAGE_VERSION
  742 PACKAGE_TARNAME
  743 PACKAGE_NAME
  744 PATH_SEPARATOR
  745 SHELL'
  746 ac_subst_files=''
  747 ac_user_opts='
  748 enable_option_checking
  749 enable_largefile
  750 enable_backtrace
  751 enable_documentation
  752 enable_programs
  753 enable_shared
  754 enable_static
  755 enable_convert
  756 with_convert
  757 enable_zstd
  758 enable_python
  759 '
  760       ac_precious_vars='build_alias
  761 host_alias
  762 target_alias
  763 CC
  764 CFLAGS
  765 LDFLAGS
  766 LIBS
  767 CPPFLAGS
  768 CPP
  769 PKG_CONFIG
  770 PKG_CONFIG_PATH
  771 PKG_CONFIG_LIBDIR
  772 EXT2FS_CFLAGS
  773 EXT2FS_LIBS
  774 COM_ERR_CFLAGS
  775 COM_ERR_LIBS
  776 REISERFS_CFLAGS
  777 REISERFS_LIBS
  778 BLKID_CFLAGS
  779 BLKID_LIBS
  780 UUID_CFLAGS
  781 UUID_LIBS
  782 ZLIB_CFLAGS
  783 ZLIB_LIBS
  784 ZSTD_CFLAGS
  785 ZSTD_LIBS
  786 PYTHON
  787 PYTHON_CFLAGS
  788 PYTHON_LIBS'
  789 
  790 
  791 # Initialize some variables set by options.
  792 ac_init_help=
  793 ac_init_version=false
  794 ac_unrecognized_opts=
  795 ac_unrecognized_sep=
  796 # The variables have the same names as the options, with
  797 # dashes changed to underlines.
  798 cache_file=/dev/null
  799 exec_prefix=NONE
  800 no_create=
  801 no_recursion=
  802 prefix=NONE
  803 program_prefix=NONE
  804 program_suffix=NONE
  805 program_transform_name=s,x,x,
  806 silent=
  807 site=
  808 srcdir=
  809 verbose=
  810 x_includes=NONE
  811 x_libraries=NONE
  812 
  813 # Installation directory options.
  814 # These are left unexpanded so users can "make install exec_prefix=/foo"
  815 # and all the variables that are supposed to be based on exec_prefix
  816 # by default will actually change.
  817 # Use braces instead of parens because sh, perl, etc. also accept them.
  818 # (The list follows the same order as the GNU Coding Standards.)
  819 bindir='${exec_prefix}/bin'
  820 sbindir='${exec_prefix}/sbin'
  821 libexecdir='${exec_prefix}/libexec'
  822 datarootdir='${prefix}/share'
  823 datadir='${datarootdir}'
  824 sysconfdir='${prefix}/etc'
  825 sharedstatedir='${prefix}/com'
  826 localstatedir='${prefix}/var'
  827 includedir='${prefix}/include'
  828 oldincludedir='/usr/include'
  829 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  830 infodir='${datarootdir}/info'
  831 htmldir='${docdir}'
  832 dvidir='${docdir}'
  833 pdfdir='${docdir}'
  834 psdir='${docdir}'
  835 libdir='${exec_prefix}/lib'
  836 localedir='${datarootdir}/locale'
  837 mandir='${datarootdir}/man'
  838 
  839 ac_prev=
  840 ac_dashdash=
  841 for ac_option
  842 do
  843   # If the previous option needs an argument, assign it.
  844   if test -n "$ac_prev"; then
  845     eval $ac_prev=\$ac_option
  846     ac_prev=
  847     continue
  848   fi
  849 
  850   case $ac_option in
  851   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  852   *=)   ac_optarg= ;;
  853   *)    ac_optarg=yes ;;
  854   esac
  855 
  856   # Accept the important Cygnus configure options, so we can diagnose typos.
  857 
  858   case $ac_dashdash$ac_option in
  859   --)
  860     ac_dashdash=yes ;;
  861 
  862   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  863     ac_prev=bindir ;;
  864   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  865     bindir=$ac_optarg ;;
  866 
  867   -build | --build | --buil | --bui | --bu)
  868     ac_prev=build_alias ;;
  869   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  870     build_alias=$ac_optarg ;;
  871 
  872   -cache-file | --cache-file | --cache-fil | --cache-fi \
  873   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  874     ac_prev=cache_file ;;
  875   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  876   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  877     cache_file=$ac_optarg ;;
  878 
  879   --config-cache | -C)
  880     cache_file=config.cache ;;
  881 
  882   -datadir | --datadir | --datadi | --datad)
  883     ac_prev=datadir ;;
  884   -datadir=* | --datadir=* | --datadi=* | --datad=*)
  885     datadir=$ac_optarg ;;
  886 
  887   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  888   | --dataroo | --dataro | --datar)
  889     ac_prev=datarootdir ;;
  890   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  891   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  892     datarootdir=$ac_optarg ;;
  893 
  894   -disable-* | --disable-*)
  895     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  896     # Reject names that are not valid shell variable names.
  897     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  898       as_fn_error $? "invalid feature name: $ac_useropt"
  899     ac_useropt_orig=$ac_useropt
  900     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  901     case $ac_user_opts in
  902       *"
  903 "enable_$ac_useropt"
  904 "*) ;;
  905       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  906      ac_unrecognized_sep=', ';;
  907     esac
  908     eval enable_$ac_useropt=no ;;
  909 
  910   -docdir | --docdir | --docdi | --doc | --do)
  911     ac_prev=docdir ;;
  912   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  913     docdir=$ac_optarg ;;
  914 
  915   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  916     ac_prev=dvidir ;;
  917   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  918     dvidir=$ac_optarg ;;
  919 
  920   -enable-* | --enable-*)
  921     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  922     # Reject names that are not valid shell variable names.
  923     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  924       as_fn_error $? "invalid feature name: $ac_useropt"
  925     ac_useropt_orig=$ac_useropt
  926     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  927     case $ac_user_opts in
  928       *"
  929 "enable_$ac_useropt"
  930 "*) ;;
  931       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  932      ac_unrecognized_sep=', ';;
  933     esac
  934     eval enable_$ac_useropt=\$ac_optarg ;;
  935 
  936   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  937   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  938   | --exec | --exe | --ex)
  939     ac_prev=exec_prefix ;;
  940   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  941   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  942   | --exec=* | --exe=* | --ex=*)
  943     exec_prefix=$ac_optarg ;;
  944 
  945   -gas | --gas | --ga | --g)
  946     # Obsolete; use --with-gas.
  947     with_gas=yes ;;
  948 
  949   -help | --help | --hel | --he | -h)
  950     ac_init_help=long ;;
  951   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  952     ac_init_help=recursive ;;
  953   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  954     ac_init_help=short ;;
  955 
  956   -host | --host | --hos | --ho)
  957     ac_prev=host_alias ;;
  958   -host=* | --host=* | --hos=* | --ho=*)
  959     host_alias=$ac_optarg ;;
  960 
  961   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  962     ac_prev=htmldir ;;
  963   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  964   | --ht=*)
  965     htmldir=$ac_optarg ;;
  966 
  967   -includedir | --includedir | --includedi | --included | --include \
  968   | --includ | --inclu | --incl | --inc)
  969     ac_prev=includedir ;;
  970   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  971   | --includ=* | --inclu=* | --incl=* | --inc=*)
  972     includedir=$ac_optarg ;;
  973 
  974   -infodir | --infodir | --infodi | --infod | --info | --inf)
  975     ac_prev=infodir ;;
  976   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  977     infodir=$ac_optarg ;;
  978 
  979   -libdir | --libdir | --libdi | --libd)
  980     ac_prev=libdir ;;
  981   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  982     libdir=$ac_optarg ;;
  983 
  984   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  985   | --libexe | --libex | --libe)
  986     ac_prev=libexecdir ;;
  987   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  988   | --libexe=* | --libex=* | --libe=*)
  989     libexecdir=$ac_optarg ;;
  990 
  991   -localedir | --localedir | --localedi | --localed | --locale)
  992     ac_prev=localedir ;;
  993   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  994     localedir=$ac_optarg ;;
  995 
  996   -localstatedir | --localstatedir | --localstatedi | --localstated \
  997   | --localstate | --localstat | --localsta | --localst | --locals)
  998     ac_prev=localstatedir ;;
  999   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 1000   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 1001     localstatedir=$ac_optarg ;;
 1002 
 1003   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 1004     ac_prev=mandir ;;
 1005   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 1006     mandir=$ac_optarg ;;
 1007 
 1008   -nfp | --nfp | --nf)
 1009     # Obsolete; use --without-fp.
 1010     with_fp=no ;;
 1011 
 1012   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 1013   | --no-cr | --no-c | -n)
 1014     no_create=yes ;;
 1015 
 1016   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 1017   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 1018     no_recursion=yes ;;
 1019 
 1020   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 1021   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 1022   | --oldin | --oldi | --old | --ol | --o)
 1023     ac_prev=oldincludedir ;;
 1024   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 1025   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 1026   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 1027     oldincludedir=$ac_optarg ;;
 1028 
 1029   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 1030     ac_prev=prefix ;;
 1031   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 1032     prefix=$ac_optarg ;;
 1033 
 1034   -program-prefix | --program-prefix | --program-prefi | --program-pref \
 1035   | --program-pre | --program-pr | --program-p)
 1036     ac_prev=program_prefix ;;
 1037   -program-prefix=* | --program-prefix=* | --program-prefi=* \
 1038   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 1039     program_prefix=$ac_optarg ;;
 1040 
 1041   -program-suffix | --program-suffix | --program-suffi | --program-suff \
 1042   | --program-suf | --program-su | --program-s)
 1043     ac_prev=program_suffix ;;
 1044   -program-suffix=* | --program-suffix=* | --program-suffi=* \
 1045   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 1046     program_suffix=$ac_optarg ;;
 1047 
 1048   -program-transform-name | --program-transform-name \
 1049   | --program-transform-nam | --program-transform-na \
 1050   | --program-transform-n | --program-transform- \
 1051   | --program-transform | --program-transfor \
 1052   | --program-transfo | --program-transf \
 1053   | --program-trans | --program-tran \
 1054   | --progr-tra | --program-tr | --program-t)
 1055     ac_prev=program_transform_name ;;
 1056   -program-transform-name=* | --program-transform-name=* \
 1057   | --program-transform-nam=* | --program-transform-na=* \
 1058   | --program-transform-n=* | --program-transform-=* \
 1059   | --program-transform=* | --program-transfor=* \
 1060   | --program-transfo=* | --program-transf=* \
 1061   | --program-trans=* | --program-tran=* \
 1062   | --progr-tra=* | --program-tr=* | --program-t=*)
 1063     program_transform_name=$ac_optarg ;;
 1064 
 1065   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 1066     ac_prev=pdfdir ;;
 1067   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 1068     pdfdir=$ac_optarg ;;
 1069 
 1070   -psdir | --psdir | --psdi | --psd | --ps)
 1071     ac_prev=psdir ;;
 1072   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 1073     psdir=$ac_optarg ;;
 1074 
 1075   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 1076   | -silent | --silent | --silen | --sile | --sil)
 1077     silent=yes ;;
 1078 
 1079   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 1080     ac_prev=sbindir ;;
 1081   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 1082   | --sbi=* | --sb=*)
 1083     sbindir=$ac_optarg ;;
 1084 
 1085   -sharedstatedir | --sharedstatedir | --sharedstatedi \
 1086   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 1087   | --sharedst | --shareds | --shared | --share | --shar \
 1088   | --sha | --sh)
 1089     ac_prev=sharedstatedir ;;
 1090   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 1091   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 1092   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 1093   | --sha=* | --sh=*)
 1094     sharedstatedir=$ac_optarg ;;
 1095 
 1096   -site | --site | --sit)
 1097     ac_prev=site ;;
 1098   -site=* | --site=* | --sit=*)
 1099     site=$ac_optarg ;;
 1100 
 1101   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 1102     ac_prev=srcdir ;;
 1103   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 1104     srcdir=$ac_optarg ;;
 1105 
 1106   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 1107   | --syscon | --sysco | --sysc | --sys | --sy)
 1108     ac_prev=sysconfdir ;;
 1109   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 1110   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 1111     sysconfdir=$ac_optarg ;;
 1112 
 1113   -target | --target | --targe | --targ | --tar | --ta | --t)
 1114     ac_prev=target_alias ;;
 1115   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 1116     target_alias=$ac_optarg ;;
 1117 
 1118   -v | -verbose | --verbose | --verbos | --verbo | --verb)
 1119     verbose=yes ;;
 1120 
 1121   -version | --version | --versio | --versi | --vers | -V)
 1122     ac_init_version=: ;;
 1123 
 1124   -with-* | --with-*)
 1125     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 1126     # Reject names that are not valid shell variable names.
 1127     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 1128       as_fn_error $? "invalid package name: $ac_useropt"
 1129     ac_useropt_orig=$ac_useropt
 1130     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 1131     case $ac_user_opts in
 1132       *"
 1133 "with_$ac_useropt"
 1134 "*) ;;
 1135       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 1136      ac_unrecognized_sep=', ';;
 1137     esac
 1138     eval with_$ac_useropt=\$ac_optarg ;;
 1139 
 1140   -without-* | --without-*)
 1141     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 1142     # Reject names that are not valid shell variable names.
 1143     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 1144       as_fn_error $? "invalid package name: $ac_useropt"
 1145     ac_useropt_orig=$ac_useropt
 1146     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 1147     case $ac_user_opts in
 1148       *"
 1149 "with_$ac_useropt"
 1150 "*) ;;
 1151       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 1152      ac_unrecognized_sep=', ';;
 1153     esac
 1154     eval with_$ac_useropt=no ;;
 1155 
 1156   --x)
 1157     # Obsolete; use --with-x.
 1158     with_x=yes ;;
 1159 
 1160   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 1161   | --x-incl | --x-inc | --x-in | --x-i)
 1162     ac_prev=x_includes ;;
 1163   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 1164   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 1165     x_includes=$ac_optarg ;;
 1166 
 1167   -x-libraries | --x-libraries | --x-librarie | --x-librari \
 1168   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 1169     ac_prev=x_libraries ;;
 1170   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 1171   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 1172     x_libraries=$ac_optarg ;;
 1173 
 1174   -*) as_fn_error $? "unrecognized option: \`$ac_option'
 1175 Try \`$0 --help' for more information"
 1176     ;;
 1177 
 1178   *=*)
 1179     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 1180     # Reject names that are not valid shell variable names.
 1181     case $ac_envvar in #(
 1182       '' | [0-9]* | *[!_$as_cr_alnum]* )
 1183       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
 1184     esac
 1185     eval $ac_envvar=\$ac_optarg
 1186     export $ac_envvar ;;
 1187 
 1188   *)
 1189     # FIXME: should be removed in autoconf 3.0.
 1190     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 1191     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 1192       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 1193     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
 1194     ;;
 1195 
 1196   esac
 1197 done
 1198 
 1199 if test -n "$ac_prev"; then
 1200   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 1201   as_fn_error $? "missing argument to $ac_option"
 1202 fi
 1203 
 1204 if test -n "$ac_unrecognized_opts"; then
 1205   case $enable_option_checking in
 1206     no) ;;
 1207     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
 1208     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 1209   esac
 1210 fi
 1211 
 1212 # Check all directory arguments for consistency.
 1213 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 1214         datadir sysconfdir sharedstatedir localstatedir includedir \
 1215         oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 1216         libdir localedir mandir
 1217 do
 1218   eval ac_val=\$$ac_var
 1219   # Remove trailing slashes.
 1220   case $ac_val in
 1221     */ )
 1222       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 1223       eval $ac_var=\$ac_val;;
 1224   esac
 1225   # Be sure to have absolute directory names.
 1226   case $ac_val in
 1227     [\\/$]* | ?:[\\/]* )  continue;;
 1228     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 1229   esac
 1230   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
 1231 done
 1232 
 1233 # There might be people who depend on the old broken behavior: `$host'
 1234 # used to hold the argument of --host etc.
 1235 # FIXME: To remove some day.
 1236 build=$build_alias
 1237 host=$host_alias
 1238 target=$target_alias
 1239 
 1240 # FIXME: To remove some day.
 1241 if test "x$host_alias" != x; then
 1242   if test "x$build_alias" = x; then
 1243     cross_compiling=maybe
 1244   elif test "x$build_alias" != "x$host_alias"; then
 1245     cross_compiling=yes
 1246   fi
 1247 fi
 1248 
 1249 ac_tool_prefix=
 1250 test -n "$host_alias" && ac_tool_prefix=$host_alias-
 1251 
 1252 test "$silent" = yes && exec 6>/dev/null
 1253 
 1254 
 1255 ac_pwd=`pwd` && test -n "$ac_pwd" &&
 1256 ac_ls_di=`ls -di .` &&
 1257 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 1258   as_fn_error $? "working directory cannot be determined"
 1259 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 1260   as_fn_error $? "pwd does not report name of working directory"
 1261 
 1262 
 1263 # Find the source files, if location was not specified.
 1264 if test -z "$srcdir"; then
 1265   ac_srcdir_defaulted=yes
 1266   # Try the directory containing this script, then the parent directory.
 1267   ac_confdir=`$as_dirname -- "$as_myself" ||
 1268 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 1269      X"$as_myself" : 'X\(//\)[^/]' \| \
 1270      X"$as_myself" : 'X\(//\)$' \| \
 1271      X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 1272 $as_echo X"$as_myself" |
 1273     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 1274         s//\1/
 1275         q
 1276       }
 1277       /^X\(\/\/\)[^/].*/{
 1278         s//\1/
 1279         q
 1280       }
 1281       /^X\(\/\/\)$/{
 1282         s//\1/
 1283         q
 1284       }
 1285       /^X\(\/\).*/{
 1286         s//\1/
 1287         q
 1288       }
 1289       s/.*/./; q'`
 1290   srcdir=$ac_confdir
 1291   if test ! -r "$srcdir/$ac_unique_file"; then
 1292     srcdir=..
 1293   fi
 1294 else
 1295   ac_srcdir_defaulted=no
 1296 fi
 1297 if test ! -r "$srcdir/$ac_unique_file"; then
 1298   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 1299   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
 1300 fi
 1301 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 1302 ac_abs_confdir=`(
 1303     cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
 1304     pwd)`
 1305 # When building in place, set srcdir=.
 1306 if test "$ac_abs_confdir" = "$ac_pwd"; then
 1307   srcdir=.
 1308 fi
 1309 # Remove unnecessary trailing slashes from srcdir.
 1310 # Double slashes in file names in object file debugging info
 1311 # mess up M-x gdb in Emacs.
 1312 case $srcdir in
 1313 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 1314 esac
 1315 for ac_var in $ac_precious_vars; do
 1316   eval ac_env_${ac_var}_set=\${${ac_var}+set}
 1317   eval ac_env_${ac_var}_value=\$${ac_var}
 1318   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 1319   eval ac_cv_env_${ac_var}_value=\$${ac_var}
 1320 done
 1321 
 1322 #
 1323 # Report the --help message.
 1324 #
 1325 if test "$ac_init_help" = "long"; then
 1326   # Omit some internal or obsolete options to make the list less imposing.
 1327   # This message is too long to be a string in the A/UX 3.1 sh.
 1328   cat <<_ACEOF
 1329 \`configure' configures btrfs-progs v5.4.1  to adapt to many kinds of systems.
 1330 
 1331 Usage: $0 [OPTION]... [VAR=VALUE]...
 1332 
 1333 To assign environment variables (e.g., CC, CFLAGS...), specify them as
 1334 VAR=VALUE.  See below for descriptions of some of the useful variables.
 1335 
 1336 Defaults for the options are specified in brackets.
 1337 
 1338 Configuration:
 1339   -h, --help              display this help and exit
 1340       --help=short        display options specific to this package
 1341       --help=recursive    display the short help of all the included packages
 1342   -V, --version           display version information and exit
 1343   -q, --quiet, --silent   do not print \`checking ...' messages
 1344       --cache-file=FILE   cache test results in FILE [disabled]
 1345   -C, --config-cache      alias for \`--cache-file=config.cache'
 1346   -n, --no-create         do not create output files
 1347       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 1348 
 1349 Installation directories:
 1350   --prefix=PREFIX         install architecture-independent files in PREFIX
 1351                           [$ac_default_prefix]
 1352   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 1353                           [PREFIX]
 1354 
 1355 By default, \`make install' will install all the files in
 1356 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 1357 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 1358 for instance \`--prefix=\$HOME'.
 1359 
 1360 For better control, use the options below.
 1361 
 1362 Fine tuning of the installation directories:
 1363   --bindir=DIR            user executables [EPREFIX/bin]
 1364   --sbindir=DIR           system admin executables [EPREFIX/sbin]
 1365   --libexecdir=DIR        program executables [EPREFIX/libexec]
 1366   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 1367   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 1368   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 1369   --libdir=DIR            object code libraries [EPREFIX/lib]
 1370   --includedir=DIR        C header files [PREFIX/include]
 1371   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 1372   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 1373   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 1374   --infodir=DIR           info documentation [DATAROOTDIR/info]
 1375   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 1376   --mandir=DIR            man documentation [DATAROOTDIR/man]
 1377   --docdir=DIR            documentation root [DATAROOTDIR/doc/btrfs-progs]
 1378   --htmldir=DIR           html documentation [DOCDIR]
 1379   --dvidir=DIR            dvi documentation [DOCDIR]
 1380   --pdfdir=DIR            pdf documentation [DOCDIR]
 1381   --psdir=DIR             ps documentation [DOCDIR]
 1382 _ACEOF
 1383 
 1384   cat <<\_ACEOF
 1385 
 1386 System types:
 1387   --build=BUILD     configure for building on BUILD [guessed]
 1388   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 1389 _ACEOF
 1390 fi
 1391 
 1392 if test -n "$ac_init_help"; then
 1393   case $ac_init_help in
 1394      short | recursive ) echo "Configuration of btrfs-progs v5.4.1 :";;
 1395    esac
 1396   cat <<\_ACEOF
 1397 
 1398 Optional Features:
 1399   --disable-option-checking  ignore unrecognized --enable/--with options
 1400   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 1401   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 1402   --disable-largefile     omit support for large files
 1403   --disable-backtrace     disable btrfs backtrace
 1404   --disable-documentation do not build documentation
 1405   --disable-programs      do not build utility programs
 1406   --disable-shared        do not build shared libraries
 1407   --disable-static        do not build static libraries
 1408   --disable-convert       do not build btrfs-convert
 1409   --disable-zstd          build without zstd support
 1410   --disable-python        do not build libbtrfsutil Python bindings
 1411 
 1412 Optional Packages:
 1413   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 1414   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 1415   --with-convert[=auto]
 1416                           built-in filesystems for convert (default: auto)
 1417                           supported (comma separated list): ext2,reiserfs
 1418 
 1419 Some influential environment variables:
 1420   CC          C compiler command
 1421   CFLAGS      C compiler flags
 1422   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 1423               nonstandard directory <lib dir>
 1424   LIBS        libraries to pass to the linker, e.g. -l<library>
 1425   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 1426               you have headers in a nonstandard directory <include dir>
 1427   CPP         C preprocessor
 1428   PKG_CONFIG  path to pkg-config utility
 1429   PKG_CONFIG_PATH
 1430               directories to add to pkg-config's search path
 1431   PKG_CONFIG_LIBDIR
 1432               path overriding pkg-config's built-in search path
 1433   EXT2FS_CFLAGS
 1434               C compiler flags for EXT2FS, overriding pkg-config
 1435   EXT2FS_LIBS linker flags for EXT2FS, overriding pkg-config
 1436   COM_ERR_CFLAGS
 1437               C compiler flags for COM_ERR, overriding pkg-config
 1438   COM_ERR_LIBS
 1439               linker flags for COM_ERR, overriding pkg-config
 1440   REISERFS_CFLAGS
 1441               C compiler flags for REISERFS, overriding pkg-config
 1442   REISERFS_LIBS
 1443               linker flags for REISERFS, overriding pkg-config
 1444   BLKID_CFLAGS
 1445               C compiler flags for BLKID, overriding pkg-config
 1446   BLKID_LIBS  linker flags for BLKID, overriding pkg-config
 1447   UUID_CFLAGS C compiler flags for UUID, overriding pkg-config
 1448   UUID_LIBS   linker flags for UUID, overriding pkg-config
 1449   ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
 1450   ZLIB_LIBS   linker flags for ZLIB, overriding pkg-config
 1451   ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config
 1452   ZSTD_LIBS   linker flags for ZSTD, overriding pkg-config
 1453   PYTHON      the Python interpreter
 1454   PYTHON_CFLAGS
 1455               C compiler flags for PYTHON, overriding pkg-config
 1456   PYTHON_LIBS linker flags for PYTHON, overriding pkg-config
 1457 
 1458 Use these variables to override the choices made by `configure' or to help
 1459 it to find libraries and programs with nonstandard names/locations.
 1460 
 1461 Report bugs to <linux-btrfs@vger.kernel.org>.
 1462 btrfs-progs home page: <http://btrfs.wiki.kernel.org>.
 1463 _ACEOF
 1464 ac_status=$?
 1465 fi
 1466 
 1467 if test "$ac_init_help" = "recursive"; then
 1468   # If there are subdirs, report their specific --help.
 1469   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 1470     test -d "$ac_dir" ||
 1471       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 1472       continue
 1473     ac_builddir=.
 1474 
 1475 case "$ac_dir" in
 1476 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 1477 *)
 1478   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 1479   # A ".." for each directory in $ac_dir_suffix.
 1480   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 1481   case $ac_top_builddir_sub in
 1482   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 1483   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 1484   esac ;;
 1485 esac
 1486 ac_abs_top_builddir=$ac_pwd
 1487 ac_abs_builddir=$ac_pwd$ac_dir_suffix
 1488 # for backward compatibility:
 1489 ac_top_builddir=$ac_top_build_prefix
 1490 
 1491 case $srcdir in
 1492   .)  # We are building in place.
 1493     ac_srcdir=.
 1494     ac_top_srcdir=$ac_top_builddir_sub
 1495     ac_abs_top_srcdir=$ac_pwd ;;
 1496   [\\/]* | ?:[\\/]* )  # Absolute name.
 1497     ac_srcdir=$srcdir$ac_dir_suffix;
 1498     ac_top_srcdir=$srcdir
 1499     ac_abs_top_srcdir=$srcdir ;;
 1500   *) # Relative name.
 1501     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 1502     ac_top_srcdir=$ac_top_build_prefix$srcdir
 1503     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 1504 esac
 1505 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 1506 
 1507     cd "$ac_dir" || { ac_status=$?; continue; }
 1508     # Check for guested configure.
 1509     if test -f "$ac_srcdir/configure.gnu"; then
 1510       echo &&
 1511       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 1512     elif test -f "$ac_srcdir/configure"; then
 1513       echo &&
 1514       $SHELL "$ac_srcdir/configure" --help=recursive
 1515     else
 1516       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 1517     fi || ac_status=$?
 1518     cd "$ac_pwd" || { ac_status=$?; break; }
 1519   done
 1520 fi
 1521 
 1522 test -n "$ac_init_help" && exit $ac_status
 1523 if $ac_init_version; then
 1524   cat <<\_ACEOF
 1525 btrfs-progs configure v5.4.1
 1526 generated by GNU Autoconf 2.69
 1527 
 1528 Copyright (C) 2012 Free Software Foundation, Inc.
 1529 This configure script is free software; the Free Software Foundation
 1530 gives unlimited permission to copy, distribute and modify it.
 1531 _ACEOF
 1532   exit
 1533 fi
 1534 
 1535 ## ------------------------ ##
 1536 ## Autoconf initialization. ##
 1537 ## ------------------------ ##
 1538 
 1539 # ac_fn_c_try_compile LINENO
 1540 # --------------------------
 1541 # Try to compile conftest.$ac_ext, and return whether this succeeded.
 1542 ac_fn_c_try_compile ()
 1543 {
 1544   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1545   rm -f conftest.$ac_objext
 1546   if { { ac_try="$ac_compile"
 1547 case "(($ac_try" in
 1548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1549   *) ac_try_echo=$ac_try;;
 1550 esac
 1551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1552 $as_echo "$ac_try_echo"; } >&5
 1553   (eval "$ac_compile") 2>conftest.err
 1554   ac_status=$?
 1555   if test -s conftest.err; then
 1556     grep -v '^ *+' conftest.err >conftest.er1
 1557     cat conftest.er1 >&5
 1558     mv -f conftest.er1 conftest.err
 1559   fi
 1560   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1561   test $ac_status = 0; } && {
 1562      test -z "$ac_c_werror_flag" ||
 1563      test ! -s conftest.err
 1564        } && test -s conftest.$ac_objext; then :
 1565   ac_retval=0
 1566 else
 1567   $as_echo "$as_me: failed program was:" >&5
 1568 sed 's/^/| /' conftest.$ac_ext >&5
 1569 
 1570     ac_retval=1
 1571 fi
 1572   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1573   as_fn_set_status $ac_retval
 1574 
 1575 } # ac_fn_c_try_compile
 1576 
 1577 # ac_fn_c_try_cpp LINENO
 1578 # ----------------------
 1579 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 1580 ac_fn_c_try_cpp ()
 1581 {
 1582   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1583   if { { ac_try="$ac_cpp conftest.$ac_ext"
 1584 case "(($ac_try" in
 1585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1586   *) ac_try_echo=$ac_try;;
 1587 esac
 1588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1589 $as_echo "$ac_try_echo"; } >&5
 1590   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 1591   ac_status=$?
 1592   if test -s conftest.err; then
 1593     grep -v '^ *+' conftest.err >conftest.er1
 1594     cat conftest.er1 >&5
 1595     mv -f conftest.er1 conftest.err
 1596   fi
 1597   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1598   test $ac_status = 0; } > conftest.i && {
 1599      test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 1600      test ! -s conftest.err
 1601        }; then :
 1602   ac_retval=0
 1603 else
 1604   $as_echo "$as_me: failed program was:" >&5
 1605 sed 's/^/| /' conftest.$ac_ext >&5
 1606 
 1607     ac_retval=1
 1608 fi
 1609   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1610   as_fn_set_status $ac_retval
 1611 
 1612 } # ac_fn_c_try_cpp
 1613 
 1614 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
 1615 # -------------------------------------------------------
 1616 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
 1617 # the include files in INCLUDES and setting the cache variable VAR
 1618 # accordingly.
 1619 ac_fn_c_check_header_mongrel ()
 1620 {
 1621   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1622   if eval \${$3+:} false; then :
 1623   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 1624 $as_echo_n "checking for $2... " >&6; }
 1625 if eval \${$3+:} false; then :
 1626   $as_echo_n "(cached) " >&6
 1627 fi
 1628 eval ac_res=\$$3
 1629            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 1630 $as_echo "$ac_res" >&6; }
 1631 else
 1632   # Is the header compilable?
 1633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 1634 $as_echo_n "checking $2 usability... " >&6; }
 1635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1636 /* end confdefs.h.  */
 1637 $4
 1638 #include <$2>
 1639 _ACEOF
 1640 if ac_fn_c_try_compile "$LINENO"; then :
 1641   ac_header_compiler=yes
 1642 else
 1643   ac_header_compiler=no
 1644 fi
 1645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 1646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 1647 $as_echo "$ac_header_compiler" >&6; }
 1648 
 1649 # Is the header present?
 1650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 1651 $as_echo_n "checking $2 presence... " >&6; }
 1652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1653 /* end confdefs.h.  */
 1654 #include <$2>
 1655 _ACEOF
 1656 if ac_fn_c_try_cpp "$LINENO"; then :
 1657   ac_header_preproc=yes
 1658 else
 1659   ac_header_preproc=no
 1660 fi
 1661 rm -f conftest.err conftest.i conftest.$ac_ext
 1662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 1663 $as_echo "$ac_header_preproc" >&6; }
 1664 
 1665 # So?  What about this header?
 1666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
 1667   yes:no: )
 1668     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 1669 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 1670     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 1671 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 1672     ;;
 1673   no:yes:* )
 1674     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 1675 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 1676     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 1677 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 1678     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 1679 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 1680     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 1681 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 1682     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 1683 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 1684 ( $as_echo "## ------------------------------------------ ##
 1685 ## Report this to linux-btrfs@vger.kernel.org ##
 1686 ## ------------------------------------------ ##"
 1687      ) | sed "s/^/$as_me: WARNING:     /" >&2
 1688     ;;
 1689 esac
 1690   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 1691 $as_echo_n "checking for $2... " >&6; }
 1692 if eval \${$3+:} false; then :
 1693   $as_echo_n "(cached) " >&6
 1694 else
 1695   eval "$3=\$ac_header_compiler"
 1696 fi
 1697 eval ac_res=\$$3
 1698            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 1699 $as_echo "$ac_res" >&6; }
 1700 fi
 1701   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1702 
 1703 } # ac_fn_c_check_header_mongrel
 1704 
 1705 # ac_fn_c_try_run LINENO
 1706 # ----------------------
 1707 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 1708 # that executables *can* be run.
 1709 ac_fn_c_try_run ()
 1710 {
 1711   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1712   if { { ac_try="$ac_link"
 1713 case "(($ac_try" in
 1714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1715   *) ac_try_echo=$ac_try;;
 1716 esac
 1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1718 $as_echo "$ac_try_echo"; } >&5
 1719   (eval "$ac_link") 2>&5
 1720   ac_status=$?
 1721   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1722   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 1723   { { case "(($ac_try" in
 1724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1725   *) ac_try_echo=$ac_try;;
 1726 esac
 1727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1728 $as_echo "$ac_try_echo"; } >&5
 1729   (eval "$ac_try") 2>&5
 1730   ac_status=$?
 1731   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1732   test $ac_status = 0; }; }; then :
 1733   ac_retval=0
 1734 else
 1735   $as_echo "$as_me: program exited with status $ac_status" >&5
 1736        $as_echo "$as_me: failed program was:" >&5
 1737 sed 's/^/| /' conftest.$ac_ext >&5
 1738 
 1739        ac_retval=$ac_status
 1740 fi
 1741   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 1742   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1743   as_fn_set_status $ac_retval
 1744 
 1745 } # ac_fn_c_try_run
 1746 
 1747 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 1748 # -------------------------------------------------------
 1749 # Tests whether HEADER exists and can be compiled using the include files in
 1750 # INCLUDES, setting the cache variable VAR accordingly.
 1751 ac_fn_c_check_header_compile ()
 1752 {
 1753   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1754   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 1755 $as_echo_n "checking for $2... " >&6; }
 1756 if eval \${$3+:} false; then :
 1757   $as_echo_n "(cached) " >&6
 1758 else
 1759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1760 /* end confdefs.h.  */
 1761 $4
 1762 #include <$2>
 1763 _ACEOF
 1764 if ac_fn_c_try_compile "$LINENO"; then :
 1765   eval "$3=yes"
 1766 else
 1767   eval "$3=no"
 1768 fi
 1769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 1770 fi
 1771 eval ac_res=\$$3
 1772            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 1773 $as_echo "$ac_res" >&6; }
 1774   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1775 
 1776 } # ac_fn_c_check_header_compile
 1777 
 1778 # ac_fn_c_try_link LINENO
 1779 # -----------------------
 1780 # Try to link conftest.$ac_ext, and return whether this succeeded.
 1781 ac_fn_c_try_link ()
 1782 {
 1783   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1784   rm -f conftest.$ac_objext conftest$ac_exeext
 1785   if { { ac_try="$ac_link"
 1786 case "(($ac_try" in
 1787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1788   *) ac_try_echo=$ac_try;;
 1789 esac
 1790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1791 $as_echo "$ac_try_echo"; } >&5
 1792   (eval "$ac_link") 2>conftest.err
 1793   ac_status=$?
 1794   if test -s conftest.err; then
 1795     grep -v '^ *+' conftest.err >conftest.er1
 1796     cat conftest.er1 >&5
 1797     mv -f conftest.er1 conftest.err
 1798   fi
 1799   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1800   test $ac_status = 0; } && {
 1801      test -z "$ac_c_werror_flag" ||
 1802      test ! -s conftest.err
 1803        } && test -s conftest$ac_exeext && {
 1804      test "$cross_compiling" = yes ||
 1805      test -x conftest$ac_exeext
 1806        }; then :
 1807   ac_retval=0
 1808 else
 1809   $as_echo "$as_me: failed program was:" >&5
 1810 sed 's/^/| /' conftest.$ac_ext >&5
 1811 
 1812     ac_retval=1
 1813 fi
 1814   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 1815   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 1816   # interfere with the next link command; also delete a directory that is
 1817   # left behind by Apple's compiler.  We do this before executing the actions.
 1818   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 1819   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1820   as_fn_set_status $ac_retval
 1821 
 1822 } # ac_fn_c_try_link
 1823 
 1824 # ac_fn_c_check_func LINENO FUNC VAR
 1825 # ----------------------------------
 1826 # Tests whether FUNC exists, setting the cache variable VAR accordingly
 1827 ac_fn_c_check_func ()
 1828 {
 1829   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1830   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 1831 $as_echo_n "checking for $2... " >&6; }
 1832 if eval \${$3+:} false; then :
 1833   $as_echo_n "(cached) " >&6
 1834 else
 1835   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1836 /* end confdefs.h.  */
 1837 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 1838    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 1839 #define $2 innocuous_$2
 1840 
 1841 /* System header to define __stub macros and hopefully few prototypes,
 1842     which can conflict with char $2 (); below.
 1843     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 1844     <limits.h> exists even on freestanding compilers.  */
 1845 
 1846 #ifdef __STDC__
 1847 # include <limits.h>
 1848 #else
 1849 # include <assert.h>
 1850 #endif
 1851 
 1852 #undef $2
 1853 
 1854 /* Override any GCC internal prototype to avoid an error.
 1855    Use char because int might match the return type of a GCC
 1856    builtin and then its argument prototype would still apply.  */
 1857 #ifdef __cplusplus
 1858 extern "C"
 1859 #endif
 1860 char $2 ();
 1861 /* The GNU C library defines this for functions which it implements
 1862     to always fail with ENOSYS.  Some functions are actually named
 1863     something starting with __ and the normal name is an alias.  */
 1864 #if defined __stub_$2 || defined __stub___$2
 1865 choke me
 1866 #endif
 1867 
 1868 int
 1869 main ()
 1870 {
 1871 return $2 ();
 1872   ;
 1873   return 0;
 1874 }
 1875 _ACEOF
 1876 if ac_fn_c_try_link "$LINENO"; then :
 1877   eval "$3=yes"
 1878 else
 1879   eval "$3=no"
 1880 fi
 1881 rm -f core conftest.err conftest.$ac_objext \
 1882     conftest$ac_exeext conftest.$ac_ext
 1883 fi
 1884 eval ac_res=\$$3
 1885            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 1886 $as_echo "$ac_res" >&6; }
 1887   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1888 
 1889 } # ac_fn_c_check_func
 1890 cat >config.log <<_ACEOF
 1891 This file contains any messages produced by compilers while
 1892 running configure, to aid debugging if configure makes a mistake.
 1893 
 1894 It was created by btrfs-progs $as_me v5.4.1 , which was
 1895 generated by GNU Autoconf 2.69.  Invocation command line was
 1896 
 1897   $ $0 $@
 1898 
 1899 _ACEOF
 1900 exec 5>>config.log
 1901 {
 1902 cat <<_ASUNAME
 1903 ## --------- ##
 1904 ## Platform. ##
 1905 ## --------- ##
 1906 
 1907 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 1908 uname -m = `(uname -m) 2>/dev/null || echo unknown`
 1909 uname -r = `(uname -r) 2>/dev/null || echo unknown`
 1910 uname -s = `(uname -s) 2>/dev/null || echo unknown`
 1911 uname -v = `(uname -v) 2>/dev/null || echo unknown`
 1912 
 1913 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 1914 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 1915 
 1916 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 1917 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 1918 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 1919 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 1920 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 1921 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 1922 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 1923 
 1924 _ASUNAME
 1925 
 1926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 1927 for as_dir in $PATH
 1928 do
 1929   IFS=$as_save_IFS
 1930   test -z "$as_dir" && as_dir=.
 1931     $as_echo "PATH: $as_dir"
 1932   done
 1933 IFS=$as_save_IFS
 1934 
 1935 } >&5
 1936 
 1937 cat >&5 <<_ACEOF
 1938 
 1939 
 1940 ## ----------- ##
 1941 ## Core tests. ##
 1942 ## ----------- ##
 1943 
 1944 _ACEOF
 1945 
 1946 
 1947 # Keep a trace of the command line.
 1948 # Strip out --no-create and --no-recursion so they do not pile up.
 1949 # Strip out --silent because we don't want to record it for future runs.
 1950 # Also quote any args containing shell meta-characters.
 1951 # Make two passes to allow for proper duplicate-argument suppression.
 1952 ac_configure_args=
 1953 ac_configure_args0=
 1954 ac_configure_args1=
 1955 ac_must_keep_next=false
 1956 for ac_pass in 1 2
 1957 do
 1958   for ac_arg
 1959   do
 1960     case $ac_arg in
 1961     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 1962     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 1963     | -silent | --silent | --silen | --sile | --sil)
 1964       continue ;;
 1965     *\'*)
 1966       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 1967     esac
 1968     case $ac_pass in
 1969     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
 1970     2)
 1971       as_fn_append ac_configure_args1 " '$ac_arg'"
 1972       if test $ac_must_keep_next = true; then
 1973     ac_must_keep_next=false # Got value, back to normal.
 1974       else
 1975     case $ac_arg in
 1976       *=* | --config-cache | -C | -disable-* | --disable-* \
 1977       | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 1978       | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 1979       | -with-* | --with-* | -without-* | --without-* | --x)
 1980         case "$ac_configure_args0 " in
 1981           "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 1982         esac
 1983         ;;
 1984       -* ) ac_must_keep_next=true ;;
 1985     esac
 1986       fi
 1987       as_fn_append ac_configure_args " '$ac_arg'"
 1988       ;;
 1989     esac
 1990   done
 1991 done
 1992 { ac_configure_args0=; unset ac_configure_args0;}
 1993 { ac_configure_args1=; unset ac_configure_args1;}
 1994 
 1995 # When interrupted or exit'd, cleanup temporary files, and complete
 1996 # config.log.  We remove comments because anyway the quotes in there
 1997 # would cause problems or look ugly.
 1998 # WARNING: Use '\'' to represent an apostrophe within the trap.
 1999 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 2000 trap 'exit_status=$?
 2001   # Save into config.log some information that might help in debugging.
 2002   {
 2003     echo
 2004 
 2005     $as_echo "## ---------------- ##
 2006 ## Cache variables. ##
 2007 ## ---------------- ##"
 2008     echo
 2009     # The following way of writing the cache mishandles newlines in values,
 2010 (
 2011   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 2012     eval ac_val=\$$ac_var
 2013     case $ac_val in #(
 2014     *${as_nl}*)
 2015       case $ac_var in #(
 2016       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 2017 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 2018       esac
 2019       case $ac_var in #(
 2020       _ | IFS | as_nl) ;; #(
 2021       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 2022       *) { eval $ac_var=; unset $ac_var;} ;;
 2023       esac ;;
 2024     esac
 2025   done
 2026   (set) 2>&1 |
 2027     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 2028     *${as_nl}ac_space=\ *)
 2029       sed -n \
 2030     "s/'\''/'\''\\\\'\'''\''/g;
 2031       s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 2032       ;; #(
 2033     *)
 2034       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 2035       ;;
 2036     esac |
 2037     sort
 2038 )
 2039     echo
 2040 
 2041     $as_echo "## ----------------- ##
 2042 ## Output variables. ##
 2043 ## ----------------- ##"
 2044     echo
 2045     for ac_var in $ac_subst_vars
 2046     do
 2047       eval ac_val=\$$ac_var
 2048       case $ac_val in
 2049       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 2050       esac
 2051       $as_echo "$ac_var='\''$ac_val'\''"
 2052     done | sort
 2053     echo
 2054 
 2055     if test -n "$ac_subst_files"; then
 2056       $as_echo "## ------------------- ##
 2057 ## File substitutions. ##
 2058 ## ------------------- ##"
 2059       echo
 2060       for ac_var in $ac_subst_files
 2061       do
 2062     eval ac_val=\$$ac_var
 2063     case $ac_val in
 2064     *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 2065     esac
 2066     $as_echo "$ac_var='\''$ac_val'\''"
 2067       done | sort
 2068       echo
 2069     fi
 2070 
 2071     if test -s confdefs.h; then
 2072       $as_echo "## ----------- ##
 2073 ## confdefs.h. ##
 2074 ## ----------- ##"
 2075       echo
 2076       cat confdefs.h
 2077       echo
 2078     fi
 2079     test "$ac_signal" != 0 &&
 2080       $as_echo "$as_me: caught signal $ac_signal"
 2081     $as_echo "$as_me: exit $exit_status"
 2082   } >&5
 2083   rm -f core *.core core.conftest.* &&
 2084     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 2085     exit $exit_status
 2086 ' 0
 2087 for ac_signal in 1 2 13 15; do
 2088   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
 2089 done
 2090 ac_signal=0
 2091 
 2092 # confdefs.h avoids OS command line length limits that DEFS can exceed.
 2093 rm -f -r conftest* confdefs.h
 2094 
 2095 $as_echo "/* confdefs.h */" > confdefs.h
 2096 
 2097 # Predefined preprocessor variables.
 2098 
 2099 cat >>confdefs.h <<_ACEOF
 2100 #define PACKAGE_NAME "$PACKAGE_NAME"
 2101 _ACEOF
 2102 
 2103 cat >>confdefs.h <<_ACEOF
 2104 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 2105 _ACEOF
 2106 
 2107 cat >>confdefs.h <<_ACEOF
 2108 #define PACKAGE_VERSION "$PACKAGE_VERSION"
 2109 _ACEOF
 2110 
 2111 cat >>confdefs.h <<_ACEOF
 2112 #define PACKAGE_STRING "$PACKAGE_STRING"
 2113 _ACEOF
 2114 
 2115 cat >>confdefs.h <<_ACEOF
 2116 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 2117 _ACEOF
 2118 
 2119 cat >>confdefs.h <<_ACEOF
 2120 #define PACKAGE_URL "$PACKAGE_URL"
 2121 _ACEOF
 2122 
 2123 
 2124 # Let the site file select an alternate cache file if it wants to.
 2125 # Prefer an explicitly selected file to automatically selected ones.
 2126 ac_site_file1=NONE
 2127 ac_site_file2=NONE
 2128 if test -n "$CONFIG_SITE"; then
 2129   # We do not want a PATH search for config.site.
 2130   case $CONFIG_SITE in #((
 2131     -*)  ac_site_file1=./$CONFIG_SITE;;
 2132     */*) ac_site_file1=$CONFIG_SITE;;
 2133     *)   ac_site_file1=./$CONFIG_SITE;;
 2134   esac
 2135 elif test "x$prefix" != xNONE; then
 2136   ac_site_file1=$prefix/share/config.site
 2137   ac_site_file2=$prefix/etc/config.site
 2138 else
 2139   ac_site_file1=$ac_default_prefix/share/config.site
 2140   ac_site_file2=$ac_default_prefix/etc/config.site
 2141 fi
 2142 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 2143 do
 2144   test "x$ac_site_file" = xNONE && continue
 2145   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 2146     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 2147 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
 2148     sed 's/^/| /' "$ac_site_file" >&5
 2149     . "$ac_site_file" \
 2150       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 2151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 2152 as_fn_error $? "failed to load site script $ac_site_file
 2153 See \`config.log' for more details" "$LINENO" 5; }
 2154   fi
 2155 done
 2156 
 2157 if test -r "$cache_file"; then
 2158   # Some versions of bash will fail to source /dev/null (special files
 2159   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 2160   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 2161     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 2162 $as_echo "$as_me: loading cache $cache_file" >&6;}
 2163     case $cache_file in
 2164       [\\/]* | ?:[\\/]* ) . "$cache_file";;
 2165       *)                      . "./$cache_file";;
 2166     esac
 2167   fi
 2168 else
 2169   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 2170 $as_echo "$as_me: creating cache $cache_file" >&6;}
 2171   >$cache_file
 2172 fi
 2173 
 2174 # Check that the precious variables saved in the cache have kept the same
 2175 # value.
 2176 ac_cache_corrupted=false
 2177 for ac_var in $ac_precious_vars; do
 2178   eval ac_old_set=\$ac_cv_env_${ac_var}_set
 2179   eval ac_new_set=\$ac_env_${ac_var}_set
 2180   eval ac_old_val=\$ac_cv_env_${ac_var}_value
 2181   eval ac_new_val=\$ac_env_${ac_var}_value
 2182   case $ac_old_set,$ac_new_set in
 2183     set,)
 2184       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 2185 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 2186       ac_cache_corrupted=: ;;
 2187     ,set)
 2188       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 2189 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 2190       ac_cache_corrupted=: ;;
 2191     ,);;
 2192     *)
 2193       if test "x$ac_old_val" != "x$ac_new_val"; then
 2194     # differences in whitespace do not lead to failure.
 2195     ac_old_val_w=`echo x $ac_old_val`
 2196     ac_new_val_w=`echo x $ac_new_val`
 2197     if test "$ac_old_val_w" != "$ac_new_val_w"; then
 2198       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 2199 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 2200       ac_cache_corrupted=:
 2201     else
 2202       { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 2203 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 2204       eval $ac_var=\$ac_old_val
 2205     fi
 2206     { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 2207 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 2208     { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 2209 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 2210       fi;;
 2211   esac
 2212   # Pass precious variables to config.status.
 2213   if test "$ac_new_set" = set; then
 2214     case $ac_new_val in
 2215     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 2216     *) ac_arg=$ac_var=$ac_new_val ;;
 2217     esac
 2218     case " $ac_configure_args " in
 2219       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 2220       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
 2221     esac
 2222   fi
 2223 done
 2224 if $ac_cache_corrupted; then
 2225   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 2226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 2227   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 2228 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 2229   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 2230 fi
 2231 ## -------------------- ##
 2232 ## Main body of script. ##
 2233 ## -------------------- ##
 2234 
 2235 ac_ext=c
 2236 ac_cpp='$CPP $CPPFLAGS'
 2237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 2238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 2239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 2240 
 2241 
 2242 
 2243 if test "x$PACKAGE_URL" = "x"; then
 2244 
 2245 $as_echo "#define PACKAGE_URL \"http://btrfs.wiki.kernel.org\"" >>confdefs.h
 2246 
 2247 fi
 2248 
 2249 LIBBTRFS_MAJOR=0
 2250 LIBBTRFS_MINOR=1
 2251 LIBBTRFS_PATCHLEVEL=2
 2252 
 2253 CFLAGS=${CFLAGS:-"-g -O1 -Wall -D_FORTIFY_SOURCE=2"}
 2254 
 2255 
 2256 
 2257 
 2258 ac_aux_dir=
 2259 for ac_dir in config "$srcdir"/config; do
 2260   if test -f "$ac_dir/install-sh"; then
 2261     ac_aux_dir=$ac_dir
 2262     ac_install_sh="$ac_aux_dir/install-sh -c"
 2263     break
 2264   elif test -f "$ac_dir/install.sh"; then
 2265     ac_aux_dir=$ac_dir
 2266     ac_install_sh="$ac_aux_dir/install.sh -c"
 2267     break
 2268   elif test -f "$ac_dir/shtool"; then
 2269     ac_aux_dir=$ac_dir
 2270     ac_install_sh="$ac_aux_dir/shtool install -c"
 2271     break
 2272   fi
 2273 done
 2274 if test -z "$ac_aux_dir"; then
 2275   as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
 2276 fi
 2277 
 2278 # These three variables are undocumented and unsupported,
 2279 # and are intended to be withdrawn in a future Autoconf release.
 2280 # They can cause serious problems if a builder's source tree is in a directory
 2281 # whose full name contains unusual characters.
 2282 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 2283 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 2284 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 2285 
 2286 
 2287 ac_ext=c
 2288 ac_cpp='$CPP $CPPFLAGS'
 2289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 2290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 2291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 2292 if test -n "$ac_tool_prefix"; then
 2293   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 2294 set dummy ${ac_tool_prefix}gcc; ac_word=$2
 2295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2296 $as_echo_n "checking for $ac_word... " >&6; }
 2297 if ${ac_cv_prog_CC+:} false; then :
 2298   $as_echo_n "(cached) " >&6
 2299 else
 2300   if test -n "$CC"; then
 2301   ac_cv_prog_CC="$CC" # Let the user override the test.
 2302 else
 2303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2304 for as_dir in $PATH
 2305 do
 2306   IFS=$as_save_IFS
 2307   test -z "$as_dir" && as_dir=.
 2308     for ac_exec_ext in '' $ac_executable_extensions; do
 2309   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2310     ac_cv_prog_CC="${ac_tool_prefix}gcc"
 2311     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2312     break 2
 2313   fi
 2314 done
 2315   done
 2316 IFS=$as_save_IFS
 2317 
 2318 fi
 2319 fi
 2320 CC=$ac_cv_prog_CC
 2321 if test -n "$CC"; then
 2322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 2323 $as_echo "$CC" >&6; }
 2324 else
 2325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2326 $as_echo "no" >&6; }
 2327 fi
 2328 
 2329 
 2330 fi
 2331 if test -z "$ac_cv_prog_CC"; then
 2332   ac_ct_CC=$CC
 2333   # Extract the first word of "gcc", so it can be a program name with args.
 2334 set dummy gcc; ac_word=$2
 2335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2336 $as_echo_n "checking for $ac_word... " >&6; }
 2337 if ${ac_cv_prog_ac_ct_CC+:} false; then :
 2338   $as_echo_n "(cached) " >&6
 2339 else
 2340   if test -n "$ac_ct_CC"; then
 2341   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 2342 else
 2343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2344 for as_dir in $PATH
 2345 do
 2346   IFS=$as_save_IFS
 2347   test -z "$as_dir" && as_dir=.
 2348     for ac_exec_ext in '' $ac_executable_extensions; do
 2349   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2350     ac_cv_prog_ac_ct_CC="gcc"
 2351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2352     break 2
 2353   fi
 2354 done
 2355   done
 2356 IFS=$as_save_IFS
 2357 
 2358 fi
 2359 fi
 2360 ac_ct_CC=$ac_cv_prog_ac_ct_CC
 2361 if test -n "$ac_ct_CC"; then
 2362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 2363 $as_echo "$ac_ct_CC" >&6; }
 2364 else
 2365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2366 $as_echo "no" >&6; }
 2367 fi
 2368 
 2369   if test "x$ac_ct_CC" = x; then
 2370     CC=""
 2371   else
 2372     case $cross_compiling:$ac_tool_warned in
 2373 yes:)
 2374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 2375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 2376 ac_tool_warned=yes ;;
 2377 esac
 2378     CC=$ac_ct_CC
 2379   fi
 2380 else
 2381   CC="$ac_cv_prog_CC"
 2382 fi
 2383 
 2384 if test -z "$CC"; then
 2385           if test -n "$ac_tool_prefix"; then
 2386     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 2387 set dummy ${ac_tool_prefix}cc; ac_word=$2
 2388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2389 $as_echo_n "checking for $ac_word... " >&6; }
 2390 if ${ac_cv_prog_CC+:} false; then :
 2391   $as_echo_n "(cached) " >&6
 2392 else
 2393   if test -n "$CC"; then
 2394   ac_cv_prog_CC="$CC" # Let the user override the test.
 2395 else
 2396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2397 for as_dir in $PATH
 2398 do
 2399   IFS=$as_save_IFS
 2400   test -z "$as_dir" && as_dir=.
 2401     for ac_exec_ext in '' $ac_executable_extensions; do
 2402   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2403     ac_cv_prog_CC="${ac_tool_prefix}cc"
 2404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2405     break 2
 2406   fi
 2407 done
 2408   done
 2409 IFS=$as_save_IFS
 2410 
 2411 fi
 2412 fi
 2413 CC=$ac_cv_prog_CC
 2414 if test -n "$CC"; then
 2415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 2416 $as_echo "$CC" >&6; }
 2417 else
 2418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2419 $as_echo "no" >&6; }
 2420 fi
 2421 
 2422 
 2423   fi
 2424 fi
 2425 if test -z "$CC"; then
 2426   # Extract the first word of "cc", so it can be a program name with args.
 2427 set dummy cc; ac_word=$2
 2428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2429 $as_echo_n "checking for $ac_word... " >&6; }
 2430 if ${ac_cv_prog_CC+:} false; then :
 2431   $as_echo_n "(cached) " >&6
 2432 else
 2433   if test -n "$CC"; then
 2434   ac_cv_prog_CC="$CC" # Let the user override the test.
 2435 else
 2436   ac_prog_rejected=no
 2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2438 for as_dir in $PATH
 2439 do
 2440   IFS=$as_save_IFS
 2441   test -z "$as_dir" && as_dir=.
 2442     for ac_exec_ext in '' $ac_executable_extensions; do
 2443   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2444     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 2445        ac_prog_rejected=yes
 2446        continue
 2447      fi
 2448     ac_cv_prog_CC="cc"
 2449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2450     break 2
 2451   fi
 2452 done
 2453   done
 2454 IFS=$as_save_IFS
 2455 
 2456 if test $ac_prog_rejected = yes; then
 2457   # We found a bogon in the path, so make sure we never use it.
 2458   set dummy $ac_cv_prog_CC
 2459   shift
 2460   if test $# != 0; then
 2461     # We chose a different compiler from the bogus one.
 2462     # However, it has the same basename, so the bogon will be chosen
 2463     # first if we set CC to just the basename; use the full file name.
 2464     shift
 2465     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 2466   fi
 2467 fi
 2468 fi
 2469 fi
 2470 CC=$ac_cv_prog_CC
 2471 if test -n "$CC"; then
 2472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 2473 $as_echo "$CC" >&6; }
 2474 else
 2475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2476 $as_echo "no" >&6; }
 2477 fi
 2478 
 2479 
 2480 fi
 2481 if test -z "$CC"; then
 2482   if test -n "$ac_tool_prefix"; then
 2483   for ac_prog in cl.exe
 2484   do
 2485     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 2486 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 2487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2488 $as_echo_n "checking for $ac_word... " >&6; }
 2489 if ${ac_cv_prog_CC+:} false; then :
 2490   $as_echo_n "(cached) " >&6
 2491 else
 2492   if test -n "$CC"; then
 2493   ac_cv_prog_CC="$CC" # Let the user override the test.
 2494 else
 2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2496 for as_dir in $PATH
 2497 do
 2498   IFS=$as_save_IFS
 2499   test -z "$as_dir" && as_dir=.
 2500     for ac_exec_ext in '' $ac_executable_extensions; do
 2501   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2502     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 2503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2504     break 2
 2505   fi
 2506 done
 2507   done
 2508 IFS=$as_save_IFS
 2509 
 2510 fi
 2511 fi
 2512 CC=$ac_cv_prog_CC
 2513 if test -n "$CC"; then
 2514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 2515 $as_echo "$CC" >&6; }
 2516 else
 2517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2518 $as_echo "no" >&6; }
 2519 fi
 2520 
 2521 
 2522     test -n "$CC" && break
 2523   done
 2524 fi
 2525 if test -z "$CC"; then
 2526   ac_ct_CC=$CC
 2527   for ac_prog in cl.exe
 2528 do
 2529   # Extract the first word of "$ac_prog", so it can be a program name with args.
 2530 set dummy $ac_prog; ac_word=$2
 2531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2532 $as_echo_n "checking for $ac_word... " >&6; }
 2533 if ${ac_cv_prog_ac_ct_CC+:} false; then :
 2534   $as_echo_n "(cached) " >&6
 2535 else
 2536   if test -n "$ac_ct_CC"; then
 2537   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 2538 else
 2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2540 for as_dir in $PATH
 2541 do
 2542   IFS=$as_save_IFS
 2543   test -z "$as_dir" && as_dir=.
 2544     for ac_exec_ext in '' $ac_executable_extensions; do
 2545   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2546     ac_cv_prog_ac_ct_CC="$ac_prog"
 2547     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2548     break 2
 2549   fi
 2550 done
 2551   done
 2552 IFS=$as_save_IFS
 2553 
 2554 fi
 2555 fi
 2556 ac_ct_CC=$ac_cv_prog_ac_ct_CC
 2557 if test -n "$ac_ct_CC"; then
 2558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 2559 $as_echo "$ac_ct_CC" >&6; }
 2560 else
 2561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2562 $as_echo "no" >&6; }
 2563 fi
 2564 
 2565 
 2566   test -n "$ac_ct_CC" && break
 2567 done
 2568 
 2569   if test "x$ac_ct_CC" = x; then
 2570     CC=""
 2571   else
 2572     case $cross_compiling:$ac_tool_warned in
 2573 yes:)
 2574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 2575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 2576 ac_tool_warned=yes ;;
 2577 esac
 2578     CC=$ac_ct_CC
 2579   fi
 2580 fi
 2581 
 2582 fi
 2583 
 2584 
 2585 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 2586 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 2587 as_fn_error $? "no acceptable C compiler found in \$PATH
 2588 See \`config.log' for more details" "$LINENO" 5; }
 2589 
 2590 # Provide some information about the compiler.
 2591 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 2592 set X $ac_compile
 2593 ac_compiler=$2
 2594 for ac_option in --version -v -V -qversion; do
 2595   { { ac_try="$ac_compiler $ac_option >&5"
 2596 case "(($ac_try" in
 2597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 2598   *) ac_try_echo=$ac_try;;
 2599 esac
 2600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 2601 $as_echo "$ac_try_echo"; } >&5
 2602   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 2603   ac_status=$?
 2604   if test -s conftest.err; then
 2605     sed '10a\
 2606 ... rest of stderr output deleted ...
 2607          10q' conftest.err >conftest.er1
 2608     cat conftest.er1 >&5
 2609   fi
 2610   rm -f conftest.er1 conftest.err
 2611   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 2612   test $ac_status = 0; }
 2613 done
 2614 
 2615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2616 /* end confdefs.h.  */
 2617 
 2618 int
 2619 main ()
 2620 {
 2621 
 2622   ;
 2623   return 0;
 2624 }
 2625 _ACEOF
 2626 ac_clean_files_save=$ac_clean_files
 2627 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 2628 # Try to create an executable without -o first, disregard a.out.
 2629 # It will help us diagnose broken compilers, and finding out an intuition
 2630 # of exeext.
 2631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 2632 $as_echo_n "checking whether the C compiler works... " >&6; }
 2633 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 2634 
 2635 # The possible output files:
 2636 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 2637 
 2638 ac_rmfiles=
 2639 for ac_file in $ac_files
 2640 do
 2641   case $ac_file in
 2642     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 2643     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 2644   esac
 2645 done
 2646 rm -f $ac_rmfiles
 2647 
 2648 if { { ac_try="$ac_link_default"
 2649 case "(($ac_try" in
 2650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 2651   *) ac_try_echo=$ac_try;;
 2652 esac
 2653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 2654 $as_echo "$ac_try_echo"; } >&5
 2655   (eval "$ac_link_default") 2>&5
 2656   ac_status=$?
 2657   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 2658   test $ac_status = 0; }; then :
 2659   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 2660 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 2661 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
 2662 # so that the user can short-circuit this test for compilers unknown to
 2663 # Autoconf.
 2664 for ac_file in $ac_files ''
 2665 do
 2666   test -f "$ac_file" || continue
 2667   case $ac_file in
 2668     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 2669     ;;
 2670     [ab].out )
 2671     # We found the default executable, but exeext='' is most
 2672     # certainly right.
 2673     break;;
 2674     *.* )
 2675     if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 2676     then :; else
 2677        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 2678     fi
 2679     # We set ac_cv_exeext here because the later test for it is not
 2680     # safe: cross compilers may not add the suffix if given an `-o'
 2681     # argument, so we may need to know it at that point already.
 2682     # Even if this section looks crufty: it has the advantage of
 2683     # actually working.
 2684     break;;
 2685     * )
 2686     break;;
 2687   esac
 2688 done
 2689 test "$ac_cv_exeext" = no && ac_cv_exeext=
 2690 
 2691 else
 2692   ac_file=''
 2693 fi
 2694 if test -z "$ac_file"; then :
 2695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2696 $as_echo "no" >&6; }
 2697 $as_echo "$as_me: failed program was:" >&5
 2698 sed 's/^/| /' conftest.$ac_ext >&5
 2699 
 2700 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 2701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 2702 as_fn_error 77 "C compiler cannot create executables
 2703 See \`config.log' for more details" "$LINENO" 5; }
 2704 else
 2705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 2706 $as_echo "yes" >&6; }
 2707 fi
 2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 2709 $as_echo_n "checking for C compiler default output file name... " >&6; }
 2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 2711 $as_echo "$ac_file" >&6; }
 2712 ac_exeext=$ac_cv_exeext
 2713 
 2714 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 2715 ac_clean_files=$ac_clean_files_save
 2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 2717 $as_echo_n "checking for suffix of executables... " >&6; }
 2718 if { { ac_try="$ac_link"
 2719 case "(($ac_try" in
 2720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 2721   *) ac_try_echo=$ac_try;;
 2722 esac
 2723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 2724 $as_echo "$ac_try_echo"; } >&5
 2725   (eval "$ac_link") 2>&5
 2726   ac_status=$?
 2727   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 2728   test $ac_status = 0; }; then :
 2729   # If both `conftest.exe' and `conftest' are `present' (well, observable)
 2730 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 2731 # work properly (i.e., refer to `conftest.exe'), while it won't with
 2732 # `rm'.
 2733 for ac_file in conftest.exe conftest conftest.*; do
 2734   test -f "$ac_file" || continue
 2735   case $ac_file in
 2736     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 2737     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 2738       break;;
 2739     * ) break;;
 2740   esac
 2741 done
 2742 else
 2743   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 2744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 2745 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
 2746 See \`config.log' for more details" "$LINENO" 5; }
 2747 fi
 2748 rm -f conftest conftest$ac_cv_exeext
 2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 2750 $as_echo "$ac_cv_exeext" >&6; }
 2751 
 2752 rm -f conftest.$ac_ext
 2753 EXEEXT=$ac_cv_exeext
 2754 ac_exeext=$EXEEXT
 2755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2756 /* end confdefs.h.  */
 2757 #include <stdio.h>
 2758 int
 2759 main ()
 2760 {
 2761 FILE *f = fopen ("conftest.out", "w");
 2762  return ferror (f) || fclose (f) != 0;
 2763 
 2764   ;
 2765   return 0;
 2766 }
 2767 _ACEOF
 2768 ac_clean_files="$ac_clean_files conftest.out"
 2769 # Check that the compiler produces executables we can run.  If not, either
 2770 # the compiler is broken, or we cross compile.
 2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 2772 $as_echo_n "checking whether we are cross compiling... " >&6; }
 2773 if test "$cross_compiling" != yes; then
 2774   { { ac_try="$ac_link"
 2775 case "(($ac_try" in
 2776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 2777   *) ac_try_echo=$ac_try;;
 2778 esac
 2779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 2780 $as_echo "$ac_try_echo"; } >&5
 2781   (eval "$ac_link") 2>&5
 2782   ac_status=$?
 2783   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 2784   test $ac_status = 0; }
 2785   if { ac_try='./conftest$ac_cv_exeext'
 2786   { { case "(($ac_try" in
 2787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 2788   *) ac_try_echo=$ac_try;;
 2789 esac
 2790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 2791 $as_echo "$ac_try_echo"; } >&5
 2792   (eval "$ac_try") 2>&5
 2793   ac_status=$?
 2794   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 2795   test $ac_status = 0; }; }; then
 2796     cross_compiling=no
 2797   else
 2798     if test "$cross_compiling" = maybe; then
 2799     cross_compiling=yes
 2800     else
 2801     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 2802 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 2803 as_fn_error $? "cannot run C compiled programs.
 2804 If you meant to cross compile, use \`--host'.
 2805 See \`config.log' for more details" "$LINENO" 5; }
 2806     fi
 2807   fi
 2808 fi
 2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 2810 $as_echo "$cross_compiling" >&6; }
 2811 
 2812 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 2813 ac_clean_files=$ac_clean_files_save
 2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 2815 $as_echo_n "checking for suffix of object files... " >&6; }
 2816 if ${ac_cv_objext+:} false; then :
 2817   $as_echo_n "(cached) " >&6
 2818 else
 2819   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2820 /* end confdefs.h.  */
 2821 
 2822 int
 2823 main ()
 2824 {
 2825 
 2826   ;
 2827   return 0;
 2828 }
 2829 _ACEOF
 2830 rm -f conftest.o conftest.obj
 2831 if { { ac_try="$ac_compile"
 2832 case "(($ac_try" in
 2833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 2834   *) ac_try_echo=$ac_try;;
 2835 esac
 2836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 2837 $as_echo "$ac_try_echo"; } >&5
 2838   (eval "$ac_compile") 2>&5
 2839   ac_status=$?
 2840   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 2841   test $ac_status = 0; }; then :
 2842   for ac_file in conftest.o conftest.obj conftest.*; do
 2843   test -f "$ac_file" || continue;
 2844   case $ac_file in
 2845     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 2846     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 2847        break;;
 2848   esac
 2849 done
 2850 else
 2851   $as_echo "$as_me: failed program was:" >&5
 2852 sed 's/^/| /' conftest.$ac_ext >&5
 2853 
 2854 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 2855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 2856 as_fn_error $? "cannot compute suffix of object files: cannot compile
 2857 See \`config.log' for more details" "$LINENO" 5; }
 2858 fi
 2859 rm -f conftest.$ac_cv_objext conftest.$ac_ext
 2860 fi
 2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 2862 $as_echo "$ac_cv_objext" >&6; }
 2863 OBJEXT=$ac_cv_objext
 2864 ac_objext=$OBJEXT
 2865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 2866 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 2867 if ${ac_cv_c_compiler_gnu+:} false; then :
 2868   $as_echo_n "(cached) " >&6
 2869 else
 2870   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2871 /* end confdefs.h.  */
 2872 
 2873 int
 2874 main ()
 2875 {
 2876 #ifndef __GNUC__
 2877        choke me
 2878 #endif
 2879 
 2880   ;
 2881   return 0;
 2882 }
 2883 _ACEOF
 2884 if ac_fn_c_try_compile "$LINENO"; then :
 2885   ac_compiler_gnu=yes
 2886 else
 2887   ac_compiler_gnu=no
 2888 fi
 2889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2890 ac_cv_c_compiler_gnu=$ac_compiler_gnu
 2891 
 2892 fi
 2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 2894 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
 2895 if test $ac_compiler_gnu = yes; then
 2896   GCC=yes
 2897 else
 2898   GCC=
 2899 fi
 2900 ac_test_CFLAGS=${CFLAGS+set}
 2901 ac_save_CFLAGS=$CFLAGS
 2902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 2903 $as_echo_n "checking whether $CC accepts -g... " >&6; }
 2904 if ${ac_cv_prog_cc_g+:} false; then :
 2905   $as_echo_n "(cached) " >&6
 2906 else
 2907   ac_save_c_werror_flag=$ac_c_werror_flag
 2908    ac_c_werror_flag=yes
 2909    ac_cv_prog_cc_g=no
 2910    CFLAGS="-g"
 2911    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2912 /* end confdefs.h.  */
 2913 
 2914 int
 2915 main ()
 2916 {
 2917 
 2918   ;
 2919   return 0;
 2920 }
 2921 _ACEOF
 2922 if ac_fn_c_try_compile "$LINENO"; then :
 2923   ac_cv_prog_cc_g=yes
 2924 else
 2925   CFLAGS=""
 2926       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2927 /* end confdefs.h.  */
 2928 
 2929 int
 2930 main ()
 2931 {
 2932 
 2933   ;
 2934   return 0;
 2935 }
 2936 _ACEOF
 2937 if ac_fn_c_try_compile "$LINENO"; then :
 2938 
 2939 else
 2940   ac_c_werror_flag=$ac_save_c_werror_flag
 2941      CFLAGS="-g"
 2942      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2943 /* end confdefs.h.  */
 2944 
 2945 int
 2946 main ()
 2947 {
 2948 
 2949   ;
 2950   return 0;
 2951 }
 2952 _ACEOF
 2953 if ac_fn_c_try_compile "$LINENO"; then :
 2954   ac_cv_prog_cc_g=yes
 2955 fi
 2956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2957 fi
 2958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2959 fi
 2960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2961    ac_c_werror_flag=$ac_save_c_werror_flag
 2962 fi
 2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 2964 $as_echo "$ac_cv_prog_cc_g" >&6; }
 2965 if test "$ac_test_CFLAGS" = set; then
 2966   CFLAGS=$ac_save_CFLAGS
 2967 elif test $ac_cv_prog_cc_g = yes; then
 2968   if test "$GCC" = yes; then
 2969     CFLAGS="-g -O2"
 2970   else
 2971     CFLAGS="-g"
 2972   fi
 2973 else
 2974   if test "$GCC" = yes; then
 2975     CFLAGS="-O2"
 2976   else
 2977     CFLAGS=
 2978   fi
 2979 fi
 2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 2981 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 2982 if ${ac_cv_prog_cc_c89+:} false; then :
 2983   $as_echo_n "(cached) " >&6
 2984 else
 2985   ac_cv_prog_cc_c89=no
 2986 ac_save_CC=$CC
 2987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2988 /* end confdefs.h.  */
 2989 #include <stdarg.h>
 2990 #include <stdio.h>
 2991 struct stat;
 2992 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 2993 struct buf { int x; };
 2994 FILE * (*rcsopen) (struct buf *, struct stat *, int);
 2995 static char *e (p, i)
 2996      char **p;
 2997      int i;
 2998 {
 2999   return p[i];
 3000 }
 3001 static char *f (char * (*g) (char **, int), char **p, ...)
 3002 {
 3003   char *s;
 3004   va_list v;
 3005   va_start (v,p);
 3006   s = g (p, va_arg (v,int));
 3007   va_end (v);
 3008   return s;
 3009 }
 3010 
 3011 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 3012    function prototypes and stuff, but not '\xHH' hex character constants.
 3013    These don't provoke an error unfortunately, instead are silently treated
 3014    as 'x'.  The following induces an error, until -std is added to get
 3015    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 3016    array size at least.  It's necessary to write '\x00'==0 to get something
 3017    that's true only with -std.  */
 3018 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 3019 
 3020 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 3021    inside strings and character constants.  */
 3022 #define FOO(x) 'x'
 3023 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 3024 
 3025 int test (int i, double x);
 3026 struct s1 {int (*f) (int a);};
 3027 struct s2 {int (*f) (double a);};
 3028 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 3029 int argc;
 3030 char **argv;
 3031 int
 3032 main ()
 3033 {
 3034 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 3035   ;
 3036   return 0;
 3037 }
 3038 _ACEOF
 3039 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 3040     -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 3041 do
 3042   CC="$ac_save_CC $ac_arg"
 3043   if ac_fn_c_try_compile "$LINENO"; then :
 3044   ac_cv_prog_cc_c89=$ac_arg
 3045 fi
 3046 rm -f core conftest.err conftest.$ac_objext
 3047   test "x$ac_cv_prog_cc_c89" != "xno" && break
 3048 done
 3049 rm -f conftest.$ac_ext
 3050 CC=$ac_save_CC
 3051 
 3052 fi
 3053 # AC_CACHE_VAL
 3054 case "x$ac_cv_prog_cc_c89" in
 3055   x)
 3056     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 3057 $as_echo "none needed" >&6; } ;;
 3058   xno)
 3059     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 3060 $as_echo "unsupported" >&6; } ;;
 3061   *)
 3062     CC="$CC $ac_cv_prog_cc_c89"
 3063     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 3064 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 3065 esac
 3066 if test "x$ac_cv_prog_cc_c89" != xno; then :
 3067 
 3068 fi
 3069 
 3070 ac_ext=c
 3071 ac_cpp='$CPP $CPPFLAGS'
 3072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 3073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 3074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 3075 
 3076 
 3077 ac_ext=c
 3078 ac_cpp='$CPP $CPPFLAGS'
 3079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 3080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 3081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 3083 $as_echo_n "checking how to run the C preprocessor... " >&6; }
 3084 # On Suns, sometimes $CPP names a directory.
 3085 if test -n "$CPP" && test -d "$CPP"; then
 3086   CPP=
 3087 fi
 3088 if test -z "$CPP"; then
 3089   if ${ac_cv_prog_CPP+:} false; then :
 3090   $as_echo_n "(cached) " >&6
 3091 else
 3092       # Double quotes because CPP needs to be expanded
 3093     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 3094     do
 3095       ac_preproc_ok=false
 3096 for ac_c_preproc_warn_flag in '' yes
 3097 do
 3098   # Use a header file that comes with gcc, so configuring glibc
 3099   # with a fresh cross-compiler works.
 3100   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 3101   # <limits.h> exists even on freestanding compilers.
 3102   # On the NeXT, cc -E runs the code through the compiler's parser,
 3103   # not just through cpp. "Syntax error" is here to catch this case.
 3104   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3105 /* end confdefs.h.  */
 3106 #ifdef __STDC__
 3107 # include <limits.h>
 3108 #else
 3109 # include <assert.h>
 3110 #endif
 3111              Syntax error
 3112 _ACEOF
 3113 if ac_fn_c_try_cpp "$LINENO"; then :
 3114 
 3115 else
 3116   # Broken: fails on valid input.
 3117 continue
 3118 fi
 3119 rm -f conftest.err conftest.i conftest.$ac_ext
 3120 
 3121   # OK, works on sane cases.  Now check whether nonexistent headers
 3122   # can be detected and how.
 3123   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3124 /* end confdefs.h.  */
 3125 #include <ac_nonexistent.h>
 3126 _ACEOF
 3127 if ac_fn_c_try_cpp "$LINENO"; then :
 3128   # Broken: success on invalid input.
 3129 continue
 3130 else
 3131   # Passes both tests.
 3132 ac_preproc_ok=:
 3133 break
 3134 fi
 3135 rm -f conftest.err conftest.i conftest.$ac_ext
 3136 
 3137 done
 3138 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 3139 rm -f conftest.i conftest.err conftest.$ac_ext
 3140 if $ac_preproc_ok; then :
 3141   break
 3142 fi
 3143 
 3144     done
 3145     ac_cv_prog_CPP=$CPP
 3146 
 3147 fi
 3148   CPP=$ac_cv_prog_CPP
 3149 else
 3150   ac_cv_prog_CPP=$CPP
 3151 fi
 3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 3153 $as_echo "$CPP" >&6; }
 3154 ac_preproc_ok=false
 3155 for ac_c_preproc_warn_flag in '' yes
 3156 do
 3157   # Use a header file that comes with gcc, so configuring glibc
 3158   # with a fresh cross-compiler works.
 3159   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 3160   # <limits.h> exists even on freestanding compilers.
 3161   # On the NeXT, cc -E runs the code through the compiler's parser,
 3162   # not just through cpp. "Syntax error" is here to catch this case.
 3163   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3164 /* end confdefs.h.  */
 3165 #ifdef __STDC__
 3166 # include <limits.h>
 3167 #else
 3168 # include <assert.h>
 3169 #endif
 3170              Syntax error
 3171 _ACEOF
 3172 if ac_fn_c_try_cpp "$LINENO"; then :
 3173 
 3174 else
 3175   # Broken: fails on valid input.
 3176 continue
 3177 fi
 3178 rm -f conftest.err conftest.i conftest.$ac_ext
 3179 
 3180   # OK, works on sane cases.  Now check whether nonexistent headers
 3181   # can be detected and how.
 3182   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3183 /* end confdefs.h.  */
 3184 #include <ac_nonexistent.h>
 3185 _ACEOF
 3186 if ac_fn_c_try_cpp "$LINENO"; then :
 3187   # Broken: success on invalid input.
 3188 continue
 3189 else
 3190   # Passes both tests.
 3191 ac_preproc_ok=:
 3192 break
 3193 fi
 3194 rm -f conftest.err conftest.i conftest.$ac_ext
 3195 
 3196 done
 3197 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 3198 rm -f conftest.i conftest.err conftest.$ac_ext
 3199 if $ac_preproc_ok; then :
 3200 
 3201 else
 3202   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 3203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 3204 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 3205 See \`config.log' for more details" "$LINENO" 5; }
 3206 fi
 3207 
 3208 ac_ext=c
 3209 ac_cpp='$CPP $CPPFLAGS'
 3210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 3211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 3212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 3213 
 3214 
 3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 3216 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 3217 if ${ac_cv_path_GREP+:} false; then :
 3218   $as_echo_n "(cached) " >&6
 3219 else
 3220   if test -z "$GREP"; then
 3221   ac_path_GREP_found=false
 3222   # Loop through the user's path and test for each of PROGNAME-LIST
 3223   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3224 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 3225 do
 3226   IFS=$as_save_IFS
 3227   test -z "$as_dir" && as_dir=.
 3228     for ac_prog in grep ggrep; do
 3229     for ac_exec_ext in '' $ac_executable_extensions; do
 3230       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 3231       as_fn_executable_p "$ac_path_GREP" || continue
 3232 # Check for GNU ac_path_GREP and select it if it is found.
 3233   # Check for GNU $ac_path_GREP
 3234 case `"$ac_path_GREP" --version 2>&1` in
 3235 *GNU*)
 3236   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 3237 *)
 3238   ac_count=0
 3239   $as_echo_n 0123456789 >"conftest.in"
 3240   while :
 3241   do
 3242     cat "conftest.in" "conftest.in" >"conftest.tmp"
 3243     mv "conftest.tmp" "conftest.in"
 3244     cp "conftest.in" "conftest.nl"
 3245     $as_echo 'GREP' >> "conftest.nl"
 3246     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 3247     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 3248     as_fn_arith $ac_count + 1 && ac_count=$as_val
 3249     if test $ac_count -gt ${ac_path_GREP_max-0}; then
 3250       # Best one so far, save it but keep looking for a better one
 3251       ac_cv_path_GREP="$ac_path_GREP"
 3252       ac_path_GREP_max=$ac_count
 3253     fi
 3254     # 10*(2^10) chars as input seems more than enough
 3255     test $ac_count -gt 10 && break
 3256   done
 3257   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 3258 esac
 3259 
 3260       $ac_path_GREP_found && break 3
 3261     done
 3262   done
 3263   done
 3264 IFS=$as_save_IFS
 3265   if test -z "$ac_cv_path_GREP"; then
 3266     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 3267   fi
 3268 else
 3269   ac_cv_path_GREP=$GREP
 3270 fi
 3271 
 3272 fi
 3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 3274 $as_echo "$ac_cv_path_GREP" >&6; }
 3275  GREP="$ac_cv_path_GREP"
 3276 
 3277 
 3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 3279 $as_echo_n "checking for egrep... " >&6; }
 3280 if ${ac_cv_path_EGREP+:} false; then :
 3281   $as_echo_n "(cached) " >&6
 3282 else
 3283   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 3284    then ac_cv_path_EGREP="$GREP -E"
 3285    else
 3286      if test -z "$EGREP"; then
 3287   ac_path_EGREP_found=false
 3288   # Loop through the user's path and test for each of PROGNAME-LIST
 3289   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3290 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 3291 do
 3292   IFS=$as_save_IFS
 3293   test -z "$as_dir" && as_dir=.
 3294     for ac_prog in egrep; do
 3295     for ac_exec_ext in '' $ac_executable_extensions; do
 3296       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 3297       as_fn_executable_p "$ac_path_EGREP" || continue
 3298 # Check for GNU ac_path_EGREP and select it if it is found.
 3299   # Check for GNU $ac_path_EGREP
 3300 case `"$ac_path_EGREP" --version 2>&1` in
 3301 *GNU*)
 3302   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 3303 *)
 3304   ac_count=0
 3305   $as_echo_n 0123456789 >"conftest.in"
 3306   while :
 3307   do
 3308     cat "conftest.in" "conftest.in" >"conftest.tmp"
 3309     mv "conftest.tmp" "conftest.in"
 3310     cp "conftest.in" "conftest.nl"
 3311     $as_echo 'EGREP' >> "conftest.nl"
 3312     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 3313     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 3314     as_fn_arith $ac_count + 1 && ac_count=$as_val
 3315     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 3316       # Best one so far, save it but keep looking for a better one
 3317       ac_cv_path_EGREP="$ac_path_EGREP"
 3318       ac_path_EGREP_max=$ac_count
 3319     fi
 3320     # 10*(2^10) chars as input seems more than enough
 3321     test $ac_count -gt 10 && break
 3322   done
 3323   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 3324 esac
 3325 
 3326       $ac_path_EGREP_found && break 3
 3327     done
 3328   done
 3329   done
 3330 IFS=$as_save_IFS
 3331   if test -z "$ac_cv_path_EGREP"; then
 3332     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 3333   fi
 3334 else
 3335   ac_cv_path_EGREP=$EGREP
 3336 fi
 3337 
 3338    fi
 3339 fi
 3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 3341 $as_echo "$ac_cv_path_EGREP" >&6; }
 3342  EGREP="$ac_cv_path_EGREP"
 3343 
 3344 
 3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 3346 $as_echo_n "checking for ANSI C header files... " >&6; }
 3347 if ${ac_cv_header_stdc+:} false; then :
 3348   $as_echo_n "(cached) " >&6
 3349 else
 3350   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3351 /* end confdefs.h.  */
 3352 #include <stdlib.h>
 3353 #include <stdarg.h>
 3354 #include <string.h>
 3355 #include <float.h>
 3356 
 3357 int
 3358 main ()
 3359 {
 3360 
 3361   ;
 3362   return 0;
 3363 }
 3364 _ACEOF
 3365 if ac_fn_c_try_compile "$LINENO"; then :
 3366   ac_cv_header_stdc=yes
 3367 else
 3368   ac_cv_header_stdc=no
 3369 fi
 3370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3371 
 3372 if test $ac_cv_header_stdc = yes; then
 3373   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 3374   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3375 /* end confdefs.h.  */
 3376 #include <string.h>
 3377 
 3378 _ACEOF
 3379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 3380   $EGREP "memchr" >/dev/null 2>&1; then :
 3381 
 3382 else
 3383   ac_cv_header_stdc=no
 3384 fi
 3385 rm -f conftest*
 3386 
 3387 fi
 3388 
 3389 if test $ac_cv_header_stdc = yes; then
 3390   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 3391   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3392 /* end confdefs.h.  */
 3393 #include <stdlib.h>
 3394 
 3395 _ACEOF
 3396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 3397   $EGREP "free" >/dev/null 2>&1; then :
 3398 
 3399 else
 3400   ac_cv_header_stdc=no
 3401 fi
 3402 rm -f conftest*
 3403 
 3404 fi
 3405 
 3406 if test $ac_cv_header_stdc = yes; then
 3407   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 3408   if test "$cross_compiling" = yes; then :
 3409   :
 3410 else
 3411   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3412 /* end confdefs.h.  */
 3413 #include <ctype.h>
 3414 #include <stdlib.h>
 3415 #if ((' ' & 0x0FF) == 0x020)
 3416 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 3417 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 3418 #else
 3419 # define ISLOWER(c) \
 3420            (('a' <= (c) && (c) <= 'i') \
 3421              || ('j' <= (c) && (c) <= 'r') \
 3422              || ('s' <= (c) && (c) <= 'z'))
 3423 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 3424 #endif
 3425 
 3426 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 3427 int
 3428 main ()
 3429 {
 3430   int i;
 3431   for (i = 0; i < 256; i++)
 3432     if (XOR (islower (i), ISLOWER (i))
 3433     || toupper (i) != TOUPPER (i))
 3434       return 2;
 3435   return 0;
 3436 }
 3437 _ACEOF
 3438 if ac_fn_c_try_run "$LINENO"; then :
 3439 
 3440 else
 3441   ac_cv_header_stdc=no
 3442 fi
 3443 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 3444   conftest.$ac_objext conftest.beam conftest.$ac_ext
 3445 fi
 3446 
 3447 fi
 3448 fi
 3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 3450 $as_echo "$ac_cv_header_stdc" >&6; }
 3451 if test $ac_cv_header_stdc = yes; then
 3452 
 3453 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
 3454 
 3455 fi
 3456 
 3457 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
 3458 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 3459           inttypes.h stdint.h unistd.h
 3460 do :
 3461   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 3462 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 3463 "
 3464 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 3465   cat >>confdefs.h <<_ACEOF
 3466 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 3467 _ACEOF
 3468 
 3469 fi
 3470 
 3471 done
 3472 
 3473 
 3474 
 3475   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
 3476 if test "x$ac_cv_header_minix_config_h" = xyes; then :
 3477   MINIX=yes
 3478 else
 3479   MINIX=
 3480 fi
 3481 
 3482 
 3483   if test "$MINIX" = yes; then
 3484 
 3485 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
 3486 
 3487 
 3488 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
 3489 
 3490 
 3491 $as_echo "#define _MINIX 1" >>confdefs.h
 3492 
 3493   fi
 3494 
 3495 
 3496   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
 3497 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
 3498 if ${ac_cv_safe_to_define___extensions__+:} false; then :
 3499   $as_echo_n "(cached) " >&6
 3500 else
 3501   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3502 /* end confdefs.h.  */
 3503 
 3504 #         define __EXTENSIONS__ 1
 3505           $ac_includes_default
 3506 int
 3507 main ()
 3508 {
 3509 
 3510   ;
 3511   return 0;
 3512 }
 3513 _ACEOF
 3514 if ac_fn_c_try_compile "$LINENO"; then :
 3515   ac_cv_safe_to_define___extensions__=yes
 3516 else
 3517   ac_cv_safe_to_define___extensions__=no
 3518 fi
 3519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3520 fi
 3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
 3522 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
 3523   test $ac_cv_safe_to_define___extensions__ = yes &&
 3524     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
 3525 
 3526   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
 3527 
 3528   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
 3529 
 3530   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
 3531 
 3532   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
 3533 
 3534 
 3535 
 3536 
 3537 
 3538 
 3539 ac_ext=c
 3540 ac_cpp='$CPP $CPPFLAGS'
 3541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 3542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 3543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 3544 if test -n "$ac_tool_prefix"; then
 3545   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 3546 set dummy ${ac_tool_prefix}gcc; ac_word=$2
 3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3548 $as_echo_n "checking for $ac_word... " >&6; }
 3549 if ${ac_cv_prog_CC+:} false; then :
 3550   $as_echo_n "(cached) " >&6
 3551 else
 3552   if test -n "$CC"; then
 3553   ac_cv_prog_CC="$CC" # Let the user override the test.
 3554 else
 3555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3556 for as_dir in $PATH
 3557 do
 3558   IFS=$as_save_IFS
 3559   test -z "$as_dir" && as_dir=.
 3560     for ac_exec_ext in '' $ac_executable_extensions; do
 3561   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 3562     ac_cv_prog_CC="${ac_tool_prefix}gcc"
 3563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3564     break 2
 3565   fi
 3566 done
 3567   done
 3568 IFS=$as_save_IFS
 3569 
 3570 fi
 3571 fi
 3572 CC=$ac_cv_prog_CC
 3573 if test -n "$CC"; then
 3574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 3575 $as_echo "$CC" >&6; }
 3576 else
 3577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3578 $as_echo "no" >&6; }
 3579 fi
 3580 
 3581 
 3582 fi
 3583 if test -z "$ac_cv_prog_CC"; then
 3584   ac_ct_CC=$CC
 3585   # Extract the first word of "gcc", so it can be a program name with args.
 3586 set dummy gcc; ac_word=$2
 3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3588 $as_echo_n "checking for $ac_word... " >&6; }
 3589 if ${ac_cv_prog_ac_ct_CC+:} false; then :
 3590   $as_echo_n "(cached) " >&6
 3591 else
 3592   if test -n "$ac_ct_CC"; then
 3593   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 3594 else
 3595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3596 for as_dir in $PATH
 3597 do
 3598   IFS=$as_save_IFS
 3599   test -z "$as_dir" && as_dir=.
 3600     for ac_exec_ext in '' $ac_executable_extensions; do
 3601   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 3602     ac_cv_prog_ac_ct_CC="gcc"
 3603     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3604     break 2
 3605   fi
 3606 done
 3607   done
 3608 IFS=$as_save_IFS
 3609 
 3610 fi
 3611 fi
 3612 ac_ct_CC=$ac_cv_prog_ac_ct_CC
 3613 if test -n "$ac_ct_CC"; then
 3614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 3615 $as_echo "$ac_ct_CC" >&6; }
 3616 else
 3617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3618 $as_echo "no" >&6; }
 3619 fi
 3620 
 3621   if test "x$ac_ct_CC" = x; then
 3622     CC=""
 3623   else
 3624     case $cross_compiling:$ac_tool_warned in
 3625 yes:)
 3626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 3627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 3628 ac_tool_warned=yes ;;
 3629 esac
 3630     CC=$ac_ct_CC
 3631   fi
 3632 else
 3633   CC="$ac_cv_prog_CC"
 3634 fi
 3635 
 3636 if test -z "$CC"; then
 3637           if test -n "$ac_tool_prefix"; then
 3638     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 3639 set dummy ${ac_tool_prefix}cc; ac_word=$2
 3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3641 $as_echo_n "checking for $ac_word... " >&6; }
 3642 if ${ac_cv_prog_CC+:} false; then :
 3643   $as_echo_n "(cached) " >&6
 3644 else
 3645   if test -n "$CC"; then
 3646   ac_cv_prog_CC="$CC" # Let the user override the test.
 3647 else
 3648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3649 for as_dir in $PATH
 3650 do
 3651   IFS=$as_save_IFS
 3652   test -z "$as_dir" && as_dir=.
 3653     for ac_exec_ext in '' $ac_executable_extensions; do
 3654   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 3655     ac_cv_prog_CC="${ac_tool_prefix}cc"
 3656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3657     break 2
 3658   fi
 3659 done
 3660   done
 3661 IFS=$as_save_IFS
 3662 
 3663 fi
 3664 fi
 3665 CC=$ac_cv_prog_CC
 3666 if test -n "$CC"; then
 3667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 3668 $as_echo "$CC" >&6; }
 3669 else
 3670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3671 $as_echo "no" >&6; }
 3672 fi
 3673 
 3674 
 3675   fi
 3676 fi
 3677 if test -z "$CC"; then
 3678   # Extract the first word of "cc", so it can be a program name with args.
 3679 set dummy cc; ac_word=$2
 3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3681 $as_echo_n "checking for $ac_word... " >&6; }
 3682 if ${ac_cv_prog_CC+:} false; then :
 3683   $as_echo_n "(cached) " >&6
 3684 else
 3685   if test -n "$CC"; then
 3686   ac_cv_prog_CC="$CC" # Let the user override the test.
 3687 else
 3688   ac_prog_rejected=no
 3689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3690 for as_dir in $PATH
 3691 do
 3692   IFS=$as_save_IFS
 3693   test -z "$as_dir" && as_dir=.
 3694     for ac_exec_ext in '' $ac_executable_extensions; do
 3695   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 3696     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 3697        ac_prog_rejected=yes
 3698        continue
 3699      fi
 3700     ac_cv_prog_CC="cc"
 3701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3702     break 2
 3703   fi
 3704 done
 3705   done
 3706 IFS=$as_save_IFS
 3707 
 3708 if test $ac_prog_rejected = yes; then
 3709   # We found a bogon in the path, so make sure we never use it.
 3710   set dummy $ac_cv_prog_CC
 3711   shift
 3712   if test $# != 0; then
 3713     # We chose a different compiler from the bogus one.
 3714     # However, it has the same basename, so the bogon will be chosen
 3715     # first if we set CC to just the basename; use the full file name.
 3716     shift
 3717     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 3718   fi
 3719 fi
 3720 fi
 3721 fi
 3722 CC=$ac_cv_prog_CC
 3723 if test -n "$CC"; then
 3724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 3725 $as_echo "$CC" >&6; }
 3726 else
 3727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3728 $as_echo "no" >&6; }
 3729 fi
 3730 
 3731 
 3732 fi
 3733 if test -z "$CC"; then
 3734   if test -n "$ac_tool_prefix"; then
 3735   for ac_prog in cl.exe
 3736   do
 3737     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 3738 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 3739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3740 $as_echo_n "checking for $ac_word... " >&6; }
 3741 if ${ac_cv_prog_CC+:} false; then :
 3742   $as_echo_n "(cached) " >&6
 3743 else
 3744   if test -n "$CC"; then
 3745   ac_cv_prog_CC="$CC" # Let the user override the test.
 3746 else
 3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3748 for as_dir in $PATH
 3749 do
 3750   IFS=$as_save_IFS
 3751   test -z "$as_dir" && as_dir=.
 3752     for ac_exec_ext in '' $ac_executable_extensions; do
 3753   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 3754     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 3755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3756     break 2
 3757   fi
 3758 done
 3759   done
 3760 IFS=$as_save_IFS
 3761 
 3762 fi
 3763 fi
 3764 CC=$ac_cv_prog_CC
 3765 if test -n "$CC"; then
 3766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 3767 $as_echo "$CC" >&6; }
 3768 else
 3769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3770 $as_echo "no" >&6; }
 3771 fi
 3772 
 3773 
 3774     test -n "$CC" && break
 3775   done
 3776 fi
 3777 if test -z "$CC"; then
 3778   ac_ct_CC=$CC
 3779   for ac_prog in cl.exe
 3780 do
 3781   # Extract the first word of "$ac_prog", so it can be a program name with args.
 3782 set dummy $ac_prog; ac_word=$2
 3783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3784 $as_echo_n "checking for $ac_word... " >&6; }
 3785 if ${ac_cv_prog_ac_ct_CC+:} false; then :
 3786   $as_echo_n "(cached) " >&6
 3787 else
 3788   if test -n "$ac_ct_CC"; then
 3789   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 3790 else
 3791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3792 for as_dir in $PATH
 3793 do
 3794   IFS=$as_save_IFS
 3795   test -z "$as_dir" && as_dir=.
 3796     for ac_exec_ext in '' $ac_executable_extensions; do
 3797   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 3798     ac_cv_prog_ac_ct_CC="$ac_prog"
 3799     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3800     break 2
 3801   fi
 3802 done
 3803   done
 3804 IFS=$as_save_IFS
 3805 
 3806 fi
 3807 fi
 3808 ac_ct_CC=$ac_cv_prog_ac_ct_CC
 3809 if test -n "$ac_ct_CC"; then
 3810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 3811 $as_echo "$ac_ct_CC" >&6; }
 3812 else
 3813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3814 $as_echo "no" >&6; }
 3815 fi
 3816 
 3817 
 3818   test -n "$ac_ct_CC" && break
 3819 done
 3820 
 3821   if test "x$ac_ct_CC" = x; then
 3822     CC=""
 3823   else
 3824     case $cross_compiling:$ac_tool_warned in
 3825 yes:)
 3826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 3827 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 3828 ac_tool_warned=yes ;;
 3829 esac
 3830     CC=$ac_ct_CC
 3831   fi
 3832 fi
 3833 
 3834 fi
 3835 
 3836 
 3837 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 3838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 3839 as_fn_error $? "no acceptable C compiler found in \$PATH
 3840 See \`config.log' for more details" "$LINENO" 5; }
 3841 
 3842 # Provide some information about the compiler.
 3843 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 3844 set X $ac_compile
 3845 ac_compiler=$2
 3846 for ac_option in --version -v -V -qversion; do
 3847   { { ac_try="$ac_compiler $ac_option >&5"
 3848 case "(($ac_try" in
 3849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 3850   *) ac_try_echo=$ac_try;;
 3851 esac
 3852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 3853 $as_echo "$ac_try_echo"; } >&5
 3854   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 3855   ac_status=$?
 3856   if test -s conftest.err; then
 3857     sed '10a\
 3858 ... rest of stderr output deleted ...
 3859          10q' conftest.err >conftest.er1
 3860     cat conftest.er1 >&5
 3861   fi
 3862   rm -f conftest.er1 conftest.err
 3863   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 3864   test $ac_status = 0; }
 3865 done
 3866 
 3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 3868 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 3869 if ${ac_cv_c_compiler_gnu+:} false; then :
 3870   $as_echo_n "(cached) " >&6
 3871 else
 3872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3873 /* end confdefs.h.  */
 3874 
 3875 int
 3876 main ()
 3877 {
 3878 #ifndef __GNUC__
 3879        choke me
 3880 #endif
 3881 
 3882   ;
 3883   return 0;
 3884 }
 3885 _ACEOF
 3886 if ac_fn_c_try_compile "$LINENO"; then :
 3887   ac_compiler_gnu=yes
 3888 else
 3889   ac_compiler_gnu=no
 3890 fi
 3891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3892 ac_cv_c_compiler_gnu=$ac_compiler_gnu
 3893 
 3894 fi
 3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 3896 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
 3897 if test $ac_compiler_gnu = yes; then
 3898   GCC=yes
 3899 else
 3900   GCC=
 3901 fi
 3902 ac_test_CFLAGS=${CFLAGS+set}
 3903 ac_save_CFLAGS=$CFLAGS
 3904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 3905 $as_echo_n "checking whether $CC accepts -g... " >&6; }
 3906 if ${ac_cv_prog_cc_g+:} false; then :
 3907   $as_echo_n "(cached) " >&6
 3908 else
 3909   ac_save_c_werror_flag=$ac_c_werror_flag
 3910    ac_c_werror_flag=yes
 3911    ac_cv_prog_cc_g=no
 3912    CFLAGS="-g"
 3913    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3914 /* end confdefs.h.  */
 3915 
 3916 int
 3917 main ()
 3918 {
 3919 
 3920   ;
 3921   return 0;
 3922 }
 3923 _ACEOF
 3924 if ac_fn_c_try_compile "$LINENO"; then :
 3925   ac_cv_prog_cc_g=yes
 3926 else
 3927   CFLAGS=""
 3928       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3929 /* end confdefs.h.  */
 3930 
 3931 int
 3932 main ()
 3933 {
 3934 
 3935   ;
 3936   return 0;
 3937 }
 3938 _ACEOF
 3939 if ac_fn_c_try_compile "$LINENO"; then :
 3940 
 3941 else
 3942   ac_c_werror_flag=$ac_save_c_werror_flag
 3943      CFLAGS="-g"
 3944      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3945 /* end confdefs.h.  */
 3946 
 3947 int
 3948 main ()
 3949 {
 3950 
 3951   ;
 3952   return 0;
 3953 }
 3954 _ACEOF
 3955 if ac_fn_c_try_compile "$LINENO"; then :
 3956   ac_cv_prog_cc_g=yes
 3957 fi
 3958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3959 fi
 3960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3961 fi
 3962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3963    ac_c_werror_flag=$ac_save_c_werror_flag
 3964 fi
 3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 3966 $as_echo "$ac_cv_prog_cc_g" >&6; }
 3967 if test "$ac_test_CFLAGS" = set; then
 3968   CFLAGS=$ac_save_CFLAGS
 3969 elif test $ac_cv_prog_cc_g = yes; then
 3970   if test "$GCC" = yes; then
 3971     CFLAGS="-g -O2"
 3972   else
 3973     CFLAGS="-g"
 3974   fi
 3975 else
 3976   if test "$GCC" = yes; then
 3977     CFLAGS="-O2"
 3978   else
 3979     CFLAGS=
 3980   fi
 3981 fi
 3982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 3983 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 3984 if ${ac_cv_prog_cc_c89+:} false; then :
 3985   $as_echo_n "(cached) " >&6
 3986 else
 3987   ac_cv_prog_cc_c89=no
 3988 ac_save_CC=$CC
 3989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3990 /* end confdefs.h.  */
 3991 #include <stdarg.h>
 3992 #include <stdio.h>
 3993 struct stat;
 3994 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 3995 struct buf { int x; };
 3996 FILE * (*rcsopen) (struct buf *, struct stat *, int);
 3997 static char *e (p, i)
 3998      char **p;
 3999      int i;
 4000 {
 4001   return p[i];
 4002 }
 4003 static char *f (char * (*g) (char **, int), char **p, ...)
 4004 {
 4005   char *s;
 4006   va_list v;
 4007   va_start (v,p);
 4008   s = g (p, va_arg (v,int));
 4009   va_end (v);
 4010   return s;
 4011 }
 4012 
 4013 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 4014    function prototypes and stuff, but not '\xHH' hex character constants.
 4015    These don't provoke an error unfortunately, instead are silently treated
 4016    as 'x'.  The following induces an error, until -std is added to get
 4017    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 4018    array size at least.  It's necessary to write '\x00'==0 to get something
 4019    that's true only with -std.  */
 4020 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 4021 
 4022 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 4023    inside strings and character constants.  */
 4024 #define FOO(x) 'x'
 4025 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 4026 
 4027 int test (int i, double x);
 4028 struct s1 {int (*f) (int a);};
 4029 struct s2 {int (*f) (double a);};
 4030 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 4031 int argc;
 4032 char **argv;
 4033 int
 4034 main ()
 4035 {
 4036 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 4037   ;
 4038   return 0;
 4039 }
 4040 _ACEOF
 4041 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 4042     -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 4043 do
 4044   CC="$ac_save_CC $ac_arg"
 4045   if ac_fn_c_try_compile "$LINENO"; then :
 4046   ac_cv_prog_cc_c89=$ac_arg
 4047 fi
 4048 rm -f core conftest.err conftest.$ac_objext
 4049   test "x$ac_cv_prog_cc_c89" != "xno" && break
 4050 done
 4051 rm -f conftest.$ac_ext
 4052 CC=$ac_save_CC
 4053 
 4054 fi
 4055 # AC_CACHE_VAL
 4056 case "x$ac_cv_prog_cc_c89" in
 4057   x)
 4058     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 4059 $as_echo "none needed" >&6; } ;;
 4060   xno)
 4061     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 4062 $as_echo "unsupported" >&6; } ;;
 4063   *)
 4064     CC="$CC $ac_cv_prog_cc_c89"
 4065     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 4066 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 4067 esac
 4068 if test "x$ac_cv_prog_cc_c89" != xno; then :
 4069 
 4070 fi
 4071 
 4072 ac_ext=c
 4073 ac_cpp='$CPP $CPPFLAGS'
 4074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 4075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 4076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 4077 
 4078 
 4079 
 4080      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -std=gnu90" >&5
 4081 $as_echo_n "checking whether C compiler accepts -std=gnu90... " >&6; }
 4082 if ${ax_cv_check_cflags___std_gnu90+:} false; then :
 4083   $as_echo_n "(cached) " >&6
 4084 else
 4085 
 4086   ax_check_save_flags=$CFLAGS
 4087   CFLAGS="$CFLAGS  -std=gnu90"
 4088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4089 /* end confdefs.h.  */
 4090 
 4091 int
 4092 main ()
 4093 {
 4094 
 4095   ;
 4096   return 0;
 4097 }
 4098 _ACEOF
 4099 if ac_fn_c_try_compile "$LINENO"; then :
 4100   ax_cv_check_cflags___std_gnu90=yes
 4101 else
 4102   ax_cv_check_cflags___std_gnu90=no
 4103 fi
 4104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4105   CFLAGS=$ax_check_save_flags
 4106 fi
 4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___std_gnu90" >&5
 4108 $as_echo "$ax_cv_check_cflags___std_gnu90" >&6; }
 4109 if test "x$ax_cv_check_cflags___std_gnu90" = xyes; then :
 4110   BTRFS_CSTD_FLAGS=-std=gnu90
 4111 else
 4112   BTRFS_CSTD_FLAGS=-std=gnu89
 4113 fi
 4114 
 4115 
 4116 
 4117 
 4118 # Make sure we can run config.sub.
 4119 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 4120   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
 4121 
 4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 4123 $as_echo_n "checking build system type... " >&6; }
 4124 if ${ac_cv_build+:} false; then :
 4125   $as_echo_n "(cached) " >&6
 4126 else
 4127   ac_build_alias=$build_alias
 4128 test "x$ac_build_alias" = x &&
 4129   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 4130 test "x$ac_build_alias" = x &&
 4131   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
 4132 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 4133   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
 4134 
 4135 fi
 4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 4137 $as_echo "$ac_cv_build" >&6; }
 4138 case $ac_cv_build in
 4139 *-*-*) ;;
 4140 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
 4141 esac
 4142 build=$ac_cv_build
 4143 ac_save_IFS=$IFS; IFS='-'
 4144 set x $ac_cv_build
 4145 shift
 4146 build_cpu=$1
 4147 build_vendor=$2
 4148 shift; shift
 4149 # Remember, the first character of IFS is used to create $*,
 4150 # except with old shells:
 4151 build_os=$*
 4152 IFS=$ac_save_IFS
 4153 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 4154 
 4155 
 4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 4157 $as_echo_n "checking host system type... " >&6; }
 4158 if ${ac_cv_host+:} false; then :
 4159   $as_echo_n "(cached) " >&6
 4160 else
 4161   if test "x$host_alias" = x; then
 4162   ac_cv_host=$ac_cv_build
 4163 else
 4164   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 4165     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 4166 fi
 4167 
 4168 fi
 4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 4170 $as_echo "$ac_cv_host" >&6; }
 4171 case $ac_cv_host in
 4172 *-*-*) ;;
 4173 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
 4174 esac
 4175 host=$ac_cv_host
 4176 ac_save_IFS=$IFS; IFS='-'
 4177 set x $ac_cv_host
 4178 shift
 4179 host_cpu=$1
 4180 host_vendor=$2
 4181 shift; shift
 4182 # Remember, the first character of IFS is used to create $*,
 4183 # except with old shells:
 4184 host_os=$*
 4185 IFS=$ac_save_IFS
 4186 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 4187 
 4188 
 4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
 4190 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
 4191 if ${ac_cv_c_const+:} false; then :
 4192   $as_echo_n "(cached) " >&6
 4193 else
 4194   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4195 /* end confdefs.h.  */
 4196 
 4197 int
 4198 main ()
 4199 {
 4200 
 4201 #ifndef __cplusplus
 4202   /* Ultrix mips cc rejects this sort of thing.  */
 4203   typedef int charset[2];
 4204   const charset cs = { 0, 0 };
 4205   /* SunOS 4.1.1 cc rejects this.  */
 4206   char const *const *pcpcc;
 4207   char **ppc;
 4208   /* NEC SVR4.0.2 mips cc rejects this.  */
 4209   struct point {int x, y;};
 4210   static struct point const zero = {0,0};
 4211   /* AIX XL C 1.02.0.0 rejects this.
 4212      It does not let you subtract one const X* pointer from another in
 4213      an arm of an if-expression whose if-part is not a constant
 4214      expression */
 4215   const char *g = "string";
 4216   pcpcc = &g + (g ? g-g : 0);
 4217   /* HPUX 7.0 cc rejects these. */
 4218   ++pcpcc;
 4219   ppc = (char**) pcpcc;
 4220   pcpcc = (char const *const *) ppc;
 4221   { /* SCO 3.2v4 cc rejects this sort of thing.  */
 4222     char tx;
 4223     char *t = &tx;
 4224     char const *s = 0 ? (char *) 0 : (char const *) 0;
 4225 
 4226     *t++ = 0;
 4227     if (s) return 0;
 4228   }
 4229   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 4230     int x[] = {25, 17};
 4231     const int *foo = &x[0];
 4232     ++foo;
 4233   }
 4234   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 4235     typedef const int *iptr;
 4236     iptr p = 0;
 4237     ++p;
 4238   }
 4239   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
 4240        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 4241     struct s { int j; const int *ap[3]; } bx;
 4242     struct s *b = &bx; b->j = 5;
 4243   }
 4244   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 4245     const int foo = 10;
 4246     if (!foo) return 0;
 4247   }
 4248   return !cs[0] && !zero.x;
 4249 #endif
 4250 
 4251   ;
 4252   return 0;
 4253 }
 4254 _ACEOF
 4255 if ac_fn_c_try_compile "$LINENO"; then :
 4256   ac_cv_c_const=yes
 4257 else
 4258   ac_cv_c_const=no
 4259 fi
 4260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4261 fi
 4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
 4263 $as_echo "$ac_cv_c_const" >&6; }
 4264 if test $ac_cv_c_const = no; then
 4265 
 4266 $as_echo "#define const /**/" >>confdefs.h
 4267 
 4268 fi
 4269 
 4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
 4271 $as_echo_n "checking for working volatile... " >&6; }
 4272 if ${ac_cv_c_volatile+:} false; then :
 4273   $as_echo_n "(cached) " >&6
 4274 else
 4275   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4276 /* end confdefs.h.  */
 4277 
 4278 int
 4279 main ()
 4280 {
 4281 
 4282 volatile int x;
 4283 int * volatile y = (int *) 0;
 4284 return !x && !y;
 4285   ;
 4286   return 0;
 4287 }
 4288 _ACEOF
 4289 if ac_fn_c_try_compile "$LINENO"; then :
 4290   ac_cv_c_volatile=yes
 4291 else
 4292   ac_cv_c_volatile=no
 4293 fi
 4294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4295 fi
 4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
 4297 $as_echo "$ac_cv_c_volatile" >&6; }
 4298 if test $ac_cv_c_volatile = no; then
 4299 
 4300 $as_echo "#define volatile /**/" >>confdefs.h
 4301 
 4302 fi
 4303 
 4304  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
 4305 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
 4306 if ${ac_cv_c_bigendian+:} false; then :
 4307   $as_echo_n "(cached) " >&6
 4308 else
 4309   ac_cv_c_bigendian=unknown
 4310     # See if we're dealing with a universal compiler.
 4311     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4312 /* end confdefs.h.  */
 4313 #ifndef __APPLE_CC__
 4314            not a universal capable compiler
 4315          #endif
 4316          typedef int dummy;
 4317 
 4318 _ACEOF
 4319 if ac_fn_c_try_compile "$LINENO"; then :
 4320 
 4321     # Check for potential -arch flags.  It is not universal unless
 4322     # there are at least two -arch flags with different values.
 4323     ac_arch=
 4324     ac_prev=
 4325     for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
 4326      if test -n "$ac_prev"; then
 4327        case $ac_word in
 4328          i?86 | x86_64 | ppc | ppc64)
 4329            if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
 4330          ac_arch=$ac_word
 4331            else
 4332          ac_cv_c_bigendian=universal
 4333          break
 4334            fi
 4335            ;;
 4336        esac
 4337        ac_prev=
 4338      elif test "x$ac_word" = "x-arch"; then
 4339        ac_prev=arch
 4340      fi
 4341        done
 4342 fi
 4343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4344     if test $ac_cv_c_bigendian = unknown; then
 4345       # See if sys/param.h defines the BYTE_ORDER macro.
 4346       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4347 /* end confdefs.h.  */
 4348 #include <sys/types.h>
 4349          #include <sys/param.h>
 4350 
 4351 int
 4352 main ()
 4353 {
 4354 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
 4355              && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
 4356              && LITTLE_ENDIAN)
 4357           bogus endian macros
 4358          #endif
 4359 
 4360   ;
 4361   return 0;
 4362 }
 4363 _ACEOF
 4364 if ac_fn_c_try_compile "$LINENO"; then :
 4365   # It does; now see whether it defined to BIG_ENDIAN or not.
 4366      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4367 /* end confdefs.h.  */
 4368 #include <sys/types.h>
 4369         #include <sys/param.h>
 4370 
 4371 int
 4372 main ()
 4373 {
 4374 #if BYTE_ORDER != BIG_ENDIAN
 4375          not big endian
 4376         #endif
 4377 
 4378   ;
 4379   return 0;
 4380 }
 4381 _ACEOF
 4382 if ac_fn_c_try_compile "$LINENO"; then :
 4383   ac_cv_c_bigendian=yes
 4384 else
 4385   ac_cv_c_bigendian=no
 4386 fi
 4387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4388 fi
 4389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4390     fi
 4391     if test $ac_cv_c_bigendian = unknown; then
 4392       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
 4393       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4394 /* end confdefs.h.  */
 4395 #include <limits.h>
 4396 
 4397 int
 4398 main ()
 4399 {
 4400 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
 4401           bogus endian macros
 4402          #endif
 4403 
 4404   ;
 4405   return 0;
 4406 }
 4407 _ACEOF
 4408 if ac_fn_c_try_compile "$LINENO"; then :
 4409   # It does; now see whether it defined to _BIG_ENDIAN or not.
 4410      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4411 /* end confdefs.h.  */
 4412 #include <limits.h>
 4413 
 4414 int
 4415 main ()
 4416 {
 4417 #ifndef _BIG_ENDIAN
 4418          not big endian
 4419         #endif
 4420 
 4421   ;
 4422   return 0;
 4423 }
 4424 _ACEOF
 4425 if ac_fn_c_try_compile "$LINENO"; then :
 4426   ac_cv_c_bigendian=yes
 4427 else
 4428   ac_cv_c_bigendian=no
 4429 fi
 4430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4431 fi
 4432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4433     fi
 4434     if test $ac_cv_c_bigendian = unknown; then
 4435       # Compile a test program.
 4436       if test "$cross_compiling" = yes; then :
 4437   # Try to guess by grepping values from an object file.
 4438      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4439 /* end confdefs.h.  */
 4440 short int ascii_mm[] =
 4441           { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 4442         short int ascii_ii[] =
 4443           { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 4444         int use_ascii (int i) {
 4445           return ascii_mm[i] + ascii_ii[i];
 4446         }
 4447         short int ebcdic_ii[] =
 4448           { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 4449         short int ebcdic_mm[] =
 4450           { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 4451         int use_ebcdic (int i) {
 4452           return ebcdic_mm[i] + ebcdic_ii[i];
 4453         }
 4454         extern int foo;
 4455 
 4456 int
 4457 main ()
 4458 {
 4459 return use_ascii (foo) == use_ebcdic (foo);
 4460   ;
 4461   return 0;
 4462 }
 4463 _ACEOF
 4464 if ac_fn_c_try_compile "$LINENO"; then :
 4465   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
 4466           ac_cv_c_bigendian=yes
 4467         fi
 4468         if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 4469           if test "$ac_cv_c_bigendian" = unknown; then
 4470         ac_cv_c_bigendian=no
 4471           else
 4472         # finding both strings is unlikely to happen, but who knows?
 4473         ac_cv_c_bigendian=unknown
 4474           fi
 4475         fi
 4476 fi
 4477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4478 else
 4479   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4480 /* end confdefs.h.  */
 4481 $ac_includes_default
 4482 int
 4483 main ()
 4484 {
 4485 
 4486          /* Are we little or big endian?  From Harbison&Steele.  */
 4487          union
 4488          {
 4489            long int l;
 4490            char c[sizeof (long int)];
 4491          } u;
 4492          u.l = 1;
 4493          return u.c[sizeof (long int) - 1] == 1;
 4494 
 4495   ;
 4496   return 0;
 4497 }
 4498 _ACEOF
 4499 if ac_fn_c_try_run "$LINENO"; then :
 4500   ac_cv_c_bigendian=no
 4501 else
 4502   ac_cv_c_bigendian=yes
 4503 fi
 4504 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 4505   conftest.$ac_objext conftest.beam conftest.$ac_ext
 4506 fi
 4507 
 4508     fi
 4509 fi
 4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
 4511 $as_echo "$ac_cv_c_bigendian" >&6; }
 4512  case $ac_cv_c_bigendian in #(
 4513    yes)
 4514      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
 4515 ;; #(
 4516    no)
 4517       ;; #(
 4518    universal)
 4519 
 4520 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
 4521 
 4522      ;; #(
 4523    *)
 4524      as_fn_error $? "unknown endianness
 4525  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
 4526  esac
 4527 
 4528 
 4529 # Check whether --enable-largefile was given.
 4530 if test "${enable_largefile+set}" = set; then :
 4531   enableval=$enable_largefile;
 4532 fi
 4533 
 4534 if test "$enable_largefile" != no; then
 4535 
 4536   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
 4537 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
 4538 if ${ac_cv_sys_largefile_CC+:} false; then :
 4539   $as_echo_n "(cached) " >&6
 4540 else
 4541   ac_cv_sys_largefile_CC=no
 4542      if test "$GCC" != yes; then
 4543        ac_save_CC=$CC
 4544        while :; do
 4545      # IRIX 6.2 and later do not support large files by default,
 4546      # so use the C compiler's -n32 option if that helps.
 4547      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4548 /* end confdefs.h.  */
 4549 #include <sys/types.h>
 4550  /* Check that off_t can represent 2**63 - 1 correctly.
 4551     We can't simply define LARGE_OFF_T to be 9223372036854775807,
 4552     since some C++ compilers masquerading as C compilers
 4553     incorrectly reject 9223372036854775807.  */
 4554 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 4555   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 4556                && LARGE_OFF_T % 2147483647 == 1)
 4557               ? 1 : -1];
 4558 int
 4559 main ()
 4560 {
 4561 
 4562   ;
 4563   return 0;
 4564 }
 4565 _ACEOF
 4566      if ac_fn_c_try_compile "$LINENO"; then :
 4567   break
 4568 fi
 4569 rm -f core conftest.err conftest.$ac_objext
 4570      CC="$CC -n32"
 4571      if ac_fn_c_try_compile "$LINENO"; then :
 4572   ac_cv_sys_largefile_CC=' -n32'; break
 4573 fi
 4574 rm -f core conftest.err conftest.$ac_objext
 4575      break
 4576        done
 4577        CC=$ac_save_CC
 4578        rm -f conftest.$ac_ext
 4579     fi
 4580 fi
 4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
 4582 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
 4583   if test "$ac_cv_sys_largefile_CC" != no; then
 4584     CC=$CC$ac_cv_sys_largefile_CC
 4585   fi
 4586 
 4587   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
 4588 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
 4589 if ${ac_cv_sys_file_offset_bits+:} false; then :
 4590   $as_echo_n "(cached) " >&6
 4591 else
 4592   while :; do
 4593   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4594 /* end confdefs.h.  */
 4595 #include <sys/types.h>
 4596  /* Check that off_t can represent 2**63 - 1 correctly.
 4597     We can't simply define LARGE_OFF_T to be 9223372036854775807,
 4598     since some C++ compilers masquerading as C compilers
 4599     incorrectly reject 9223372036854775807.  */
 4600 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 4601   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 4602                && LARGE_OFF_T % 2147483647 == 1)
 4603               ? 1 : -1];
 4604 int
 4605 main ()
 4606 {
 4607 
 4608   ;
 4609   return 0;
 4610 }
 4611 _ACEOF
 4612 if ac_fn_c_try_compile "$LINENO"; then :
 4613   ac_cv_sys_file_offset_bits=no; break
 4614 fi
 4615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4616   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4617 /* end confdefs.h.  */
 4618 #define _FILE_OFFSET_BITS 64
 4619 #include <sys/types.h>
 4620  /* Check that off_t can represent 2**63 - 1 correctly.
 4621     We can't simply define LARGE_OFF_T to be 9223372036854775807,
 4622     since some C++ compilers masquerading as C compilers
 4623     incorrectly reject 9223372036854775807.  */
 4624 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 4625   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 4626                && LARGE_OFF_T % 2147483647 == 1)
 4627               ? 1 : -1];
 4628 int
 4629 main ()
 4630 {
 4631 
 4632   ;
 4633   return 0;
 4634 }
 4635 _ACEOF
 4636 if ac_fn_c_try_compile "$LINENO"; then :
 4637   ac_cv_sys_file_offset_bits=64; break
 4638 fi
 4639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4640   ac_cv_sys_file_offset_bits=unknown
 4641   break
 4642 done
 4643 fi
 4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
 4645 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
 4646 case $ac_cv_sys_file_offset_bits in #(
 4647   no | unknown) ;;
 4648   *)
 4649 cat >>confdefs.h <<_ACEOF
 4650 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
 4651 _ACEOF
 4652 ;;
 4653 esac
 4654 rm -rf conftest*
 4655   if test $ac_cv_sys_file_offset_bits = unknown; then
 4656     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
 4657 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
 4658 if ${ac_cv_sys_large_files+:} false; then :
 4659   $as_echo_n "(cached) " >&6
 4660 else
 4661   while :; do
 4662   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4663 /* end confdefs.h.  */
 4664 #include <sys/types.h>
 4665  /* Check that off_t can represent 2**63 - 1 correctly.
 4666     We can't simply define LARGE_OFF_T to be 9223372036854775807,
 4667     since some C++ compilers masquerading as C compilers
 4668     incorrectly reject 9223372036854775807.  */
 4669 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 4670   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 4671                && LARGE_OFF_T % 2147483647 == 1)
 4672               ? 1 : -1];
 4673 int
 4674 main ()
 4675 {
 4676 
 4677   ;
 4678   return 0;
 4679 }
 4680 _ACEOF
 4681 if ac_fn_c_try_compile "$LINENO"; then :
 4682   ac_cv_sys_large_files=no; break
 4683 fi
 4684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4685   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4686 /* end confdefs.h.  */
 4687 #define _LARGE_FILES 1
 4688 #include <sys/types.h>
 4689  /* Check that off_t can represent 2**63 - 1 correctly.
 4690     We can't simply define LARGE_OFF_T to be 9223372036854775807,
 4691     since some C++ compilers masquerading as C compilers
 4692     incorrectly reject 9223372036854775807.  */
 4693 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 4694   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 4695                && LARGE_OFF_T % 2147483647 == 1)
 4696               ? 1 : -1];
 4697 int
 4698 main ()
 4699 {
 4700 
 4701   ;
 4702   return 0;
 4703 }
 4704 _ACEOF
 4705 if ac_fn_c_try_compile "$LINENO"; then :
 4706   ac_cv_sys_large_files=1; break
 4707 fi
 4708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4709   ac_cv_sys_large_files=unknown
 4710   break
 4711 done
 4712 fi
 4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
 4714 $as_echo "$ac_cv_sys_large_files" >&6; }
 4715 case $ac_cv_sys_large_files in #(
 4716   no | unknown) ;;
 4717   *)
 4718 cat >>confdefs.h <<_ACEOF
 4719 #define _LARGE_FILES $ac_cv_sys_large_files
 4720 _ACEOF
 4721 ;;
 4722 esac
 4723 rm -rf conftest*
 4724   fi
 4725 
 4726 
 4727 fi
 4728 
 4729 
 4730 # Find a good install program.  We prefer a C program (faster),
 4731 # so one script is as good as another.  But avoid the broken or
 4732 # incompatible versions:
 4733 # SysV /etc/install, /usr/sbin/install
 4734 # SunOS /usr/etc/install
 4735 # IRIX /sbin/install
 4736 # AIX /bin/install
 4737 # AmigaOS /C/install, which installs bootblocks on floppy discs
 4738 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 4739 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
 4740 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 4741 # OS/2's system install, which has a completely different semantic
 4742 # ./install, which can be erroneously created by make from ./install.sh.
 4743 # Reject install programs that cannot install multiple files.
 4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 4745 $as_echo_n "checking for a BSD-compatible install... " >&6; }
 4746 if test -z "$INSTALL"; then
 4747 if ${ac_cv_path_install+:} false; then :
 4748   $as_echo_n "(cached) " >&6
 4749 else
 4750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 4751 for as_dir in $PATH
 4752 do
 4753   IFS=$as_save_IFS
 4754   test -z "$as_dir" && as_dir=.
 4755     # Account for people who put trailing slashes in PATH elements.
 4756 case $as_dir/ in #((
 4757   ./ | .// | /[cC]/* | \
 4758   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 4759   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
 4760   /usr/ucb/* ) ;;
 4761   *)
 4762     # OSF1 and SCO ODT 3.0 have their own names for install.
 4763     # Don't use installbsd from OSF since it installs stuff as root
 4764     # by default.
 4765     for ac_prog in ginstall scoinst install; do
 4766       for ac_exec_ext in '' $ac_executable_extensions; do
 4767     if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 4768       if test $ac_prog = install &&
 4769         grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 4770         # AIX install.  It has an incompatible calling convention.
 4771         :
 4772       elif test $ac_prog = install &&
 4773         grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 4774         # program-specific install script used by HP pwplus--don't use.
 4775         :
 4776       else
 4777         rm -rf conftest.one conftest.two conftest.dir
 4778         echo one > conftest.one
 4779         echo two > conftest.two
 4780         mkdir conftest.dir
 4781         if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 4782           test -s conftest.one && test -s conftest.two &&
 4783           test -s conftest.dir/conftest.one &&
 4784           test -s conftest.dir/conftest.two
 4785         then
 4786           ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 4787           break 3
 4788         fi
 4789       fi
 4790     fi
 4791       done
 4792     done
 4793     ;;
 4794 esac
 4795 
 4796   done
 4797 IFS=$as_save_IFS
 4798 
 4799 rm -rf conftest.one conftest.two conftest.dir
 4800 
 4801 fi
 4802   if test "${ac_cv_path_install+set}" = set; then
 4803     INSTALL=$ac_cv_path_install
 4804   else
 4805     # As a last resort, use the slow shell script.  Don't cache a
 4806     # value for INSTALL within a source directory, because that will
 4807     # break other packages using the cache if that directory is
 4808     # removed, or if the value is a relative name.
 4809     INSTALL=$ac_install_sh
 4810   fi
 4811 fi
 4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 4813 $as_echo "$INSTALL" >&6; }
 4814 
 4815 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 4816 # It thinks the first close brace ends the variable substitution.
 4817 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 4818 
 4819 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 4820 
 4821 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 4822 
 4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
 4824 $as_echo_n "checking whether ln -s works... " >&6; }
 4825 LN_S=$as_ln_s
 4826 if test "$LN_S" = "ln -s"; then
 4827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 4828 $as_echo "yes" >&6; }
 4829 else
 4830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
 4831 $as_echo "no, using $LN_S" >&6; }
 4832 fi
 4833 
 4834 if test -n "$ac_tool_prefix"; then
 4835   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 4836 set dummy ${ac_tool_prefix}ar; ac_word=$2
 4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 4838 $as_echo_n "checking for $ac_word... " >&6; }
 4839 if ${ac_cv_prog_AR+:} false; then :
 4840   $as_echo_n "(cached) " >&6
 4841 else
 4842   if test -n "$AR"; then
 4843   ac_cv_prog_AR="$AR" # Let the user override the test.
 4844 else
 4845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 4846 for as_dir in $PATH
 4847 do
 4848   IFS=$as_save_IFS
 4849   test -z "$as_dir" && as_dir=.
 4850     for ac_exec_ext in '' $ac_executable_extensions; do
 4851   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 4852     ac_cv_prog_AR="${ac_tool_prefix}ar"
 4853     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 4854     break 2
 4855   fi
 4856 done
 4857   done
 4858 IFS=$as_save_IFS
 4859 
 4860 fi
 4861 fi
 4862 AR=$ac_cv_prog_AR
 4863 if test -n "$AR"; then
 4864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
 4865 $as_echo "$AR" >&6; }
 4866 else
 4867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4868 $as_echo "no" >&6; }
 4869 fi
 4870 
 4871 
 4872 fi
 4873 if test -z "$ac_cv_prog_AR"; then
 4874   ac_ct_AR=$AR
 4875   # Extract the first word of "ar", so it can be a program name with args.
 4876 set dummy ar; ac_word=$2
 4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 4878 $as_echo_n "checking for $ac_word... " >&6; }
 4879 if ${ac_cv_prog_ac_ct_AR+:} false; then :
 4880   $as_echo_n "(cached) " >&6
 4881 else
 4882   if test -n "$ac_ct_AR"; then
 4883   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 4884 else
 4885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 4886 for as_dir in $PATH
 4887 do
 4888   IFS=$as_save_IFS
 4889   test -z "$as_dir" && as_dir=.
 4890     for ac_exec_ext in '' $ac_executable_extensions; do
 4891   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 4892     ac_cv_prog_ac_ct_AR="ar"
 4893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 4894     break 2
 4895   fi
 4896 done
 4897   done
 4898 IFS=$as_save_IFS
 4899 
 4900 fi
 4901 fi
 4902 ac_ct_AR=$ac_cv_prog_ac_ct_AR
 4903 if test -n "$ac_ct_AR"; then
 4904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
 4905 $as_echo "$ac_ct_AR" >&6; }
 4906 else
 4907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4908 $as_echo "no" >&6; }
 4909 fi
 4910 
 4911   if test "x$ac_ct_AR" = x; then
 4912     AR=""
 4913   else
 4914     case $cross_compiling:$ac_tool_warned in
 4915 yes:)
 4916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 4917 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 4918 ac_tool_warned=yes ;;
 4919 esac
 4920     AR=$ac_ct_AR
 4921   fi
 4922 else
 4923   AR="$ac_cv_prog_AR"
 4924 fi
 4925 
 4926 # Extract the first word of "rm", so it can be a program name with args.
 4927 set dummy rm; ac_word=$2
 4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 4929 $as_echo_n "checking for $ac_word... " >&6; }
 4930 if ${ac_cv_path_RM+:} false; then :
 4931   $as_echo_n "(cached) " >&6
 4932 else
 4933   case $RM in
 4934   [\\/]* | ?:[\\/]*)
 4935   ac_cv_path_RM="$RM" # Let the user override the test with a path.
 4936   ;;
 4937   *)
 4938   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 4939 for as_dir in $PATH
 4940 do
 4941   IFS=$as_save_IFS
 4942   test -z "$as_dir" && as_dir=.
 4943     for ac_exec_ext in '' $ac_executable_extensions; do
 4944   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 4945     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
 4946     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 4947     break 2
 4948   fi
 4949 done
 4950   done
 4951 IFS=$as_save_IFS
 4952 
 4953   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
 4954   ;;
 4955 esac
 4956 fi
 4957 RM=$ac_cv_path_RM
 4958 if test -n "$RM"; then
 4959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
 4960 $as_echo "$RM" >&6; }
 4961 else
 4962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4963 $as_echo "no" >&6; }
 4964 fi
 4965 
 4966 
 4967 # Extract the first word of "rmdir", so it can be a program name with args.
 4968 set dummy rmdir; ac_word=$2
 4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 4970 $as_echo_n "checking for $ac_word... " >&6; }
 4971 if ${ac_cv_path_RMDIR+:} false; then :
 4972   $as_echo_n "(cached) " >&6
 4973 else
 4974   case $RMDIR in
 4975   [\\/]* | ?:[\\/]*)
 4976   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
 4977   ;;
 4978   *)
 4979   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 4980 for as_dir in $PATH
 4981 do
 4982   IFS=$as_save_IFS
 4983   test -z "$as_dir" && as_dir=.
 4984     for ac_exec_ext in '' $ac_executable_extensions; do
 4985   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 4986     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
 4987     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 4988     break 2
 4989   fi
 4990 done
 4991   done
 4992 IFS=$as_save_IFS
 4993 
 4994   test -z "$ac_cv_path_RMDIR" && ac_cv_path_RMDIR="rmdir"
 4995   ;;
 4996 esac
 4997 fi
 4998 RMDIR=$ac_cv_path_RMDIR
 4999 if test -n "$RMDIR"; then
 5000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
 5001 $as_echo "$RMDIR" >&6; }
 5002 else
 5003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5004 $as_echo "no" >&6; }
 5005 fi
 5006 
 5007 
 5008 
 5009 
 5010 for ac_func in openat
 5011 do :
 5012   ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat"
 5013 if test "x$ac_cv_func_openat" = xyes; then :
 5014   cat >>confdefs.h <<_ACEOF
 5015 #define HAVE_OPENAT 1
 5016 _ACEOF
 5017 
 5018 else
 5019   as_fn_error $? "cannot find openat() function" "$LINENO" 5
 5020 fi
 5021 done
 5022 
 5023 
 5024 for ac_func in reallocarray
 5025 do :
 5026   ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
 5027 if test "x$ac_cv_func_reallocarray" = xyes; then :
 5028   cat >>confdefs.h <<_ACEOF
 5029 #define HAVE_REALLOCARRAY 1
 5030 _ACEOF
 5031 
 5032 fi
 5033 done
 5034 
 5035 
 5036 
 5037 
 5038 
 5039 
 5040 
 5041 
 5042 
 5043 
 5044 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 5045     if test -n "$ac_tool_prefix"; then
 5046   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 5047 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
 5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 5049 $as_echo_n "checking for $ac_word... " >&6; }
 5050 if ${ac_cv_path_PKG_CONFIG+:} false; then :
 5051   $as_echo_n "(cached) " >&6
 5052 else
 5053   case $PKG_CONFIG in
 5054   [\\/]* | ?:[\\/]*)
 5055   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 5056   ;;
 5057   *)
 5058   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 5059 for as_dir in $PATH
 5060 do
 5061   IFS=$as_save_IFS
 5062   test -z "$as_dir" && as_dir=.
 5063     for ac_exec_ext in '' $ac_executable_extensions; do
 5064   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 5065     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 5066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 5067     break 2
 5068   fi
 5069 done
 5070   done
 5071 IFS=$as_save_IFS
 5072 
 5073   ;;
 5074 esac
 5075 fi
 5076 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 5077 if test -n "$PKG_CONFIG"; then
 5078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
 5079 $as_echo "$PKG_CONFIG" >&6; }
 5080 else
 5081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5082 $as_echo "no" >&6; }
 5083 fi
 5084 
 5085 
 5086 fi
 5087 if test -z "$ac_cv_path_PKG_CONFIG"; then
 5088   ac_pt_PKG_CONFIG=$PKG_CONFIG
 5089   # Extract the first word of "pkg-config", so it can be a program name with args.
 5090 set dummy pkg-config; ac_word=$2
 5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 5092 $as_echo_n "checking for $ac_word... " >&6; }
 5093 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
 5094   $as_echo_n "(cached) " >&6
 5095 else
 5096   case $ac_pt_PKG_CONFIG in
 5097   [\\/]* | ?:[\\/]*)
 5098   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 5099   ;;
 5100   *)
 5101   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 5102 for as_dir in $PATH
 5103 do
 5104   IFS=$as_save_IFS
 5105   test -z "$as_dir" && as_dir=.
 5106     for ac_exec_ext in '' $ac_executable_extensions; do
 5107   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 5108     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 5109     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 5110     break 2
 5111   fi
 5112 done
 5113   done
 5114 IFS=$as_save_IFS
 5115 
 5116   ;;
 5117 esac
 5118 fi
 5119 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 5120 if test -n "$ac_pt_PKG_CONFIG"; then
 5121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
 5122 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
 5123 else
 5124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5125 $as_echo "no" >&6; }
 5126 fi
 5127 
 5128   if test "x$ac_pt_PKG_CONFIG" = x; then
 5129     PKG_CONFIG=""
 5130   else
 5131     case $cross_compiling:$ac_tool_warned in
 5132 yes:)
 5133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 5134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 5135 ac_tool_warned=yes ;;
 5136 esac
 5137     PKG_CONFIG=$ac_pt_PKG_CONFIG
 5138   fi
 5139 else
 5140   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 5141 fi
 5142 
 5143 fi
 5144 if test -n "$PKG_CONFIG"; then
 5145     _pkg_min_version=0.9.0
 5146     { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
 5147 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
 5148     if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 5149         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 5150 $as_echo "yes" >&6; }
 5151     else
 5152         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5153 $as_echo "no" >&6; }
 5154         PKG_CONFIG=""
 5155     fi
 5156 fi
 5157 
 5158 
 5159 
 5160 
 5161 
 5162 # Check whether --enable-backtrace was given.
 5163 if test "${enable_backtrace+set}" = set; then :
 5164   enableval=$enable_backtrace;
 5165 else
 5166   enable_backtrace=yes
 5167 
 5168 fi
 5169 
 5170 
 5171 if test "x$enable_backtrace" = xno; then :
 5172 
 5173 
 5174 $as_echo "#define BTRFS_DISABLE_BACKTRACE 1" >>confdefs.h
 5175 
 5176 
 5177 fi
 5178 
 5179 if test "x$enable_backtrace" = xyes; then
 5180     for ac_header in execinfo.h
 5181 do :
 5182   ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
 5183 if test "x$ac_cv_header_execinfo_h" = xyes; then :
 5184   cat >>confdefs.h <<_ACEOF
 5185 #define HAVE_EXECINFO_H 1
 5186 _ACEOF
 5187 
 5188 fi
 5189 
 5190 done
 5191 
 5192     for ac_func in backtrace backtrace_symbols_fd
 5193 do :
 5194   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 5195 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 5196 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 5197   cat >>confdefs.h <<_ACEOF
 5198 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 5199 _ACEOF
 5200 
 5201 else
 5202   as_fn_error $? "standard library does not have backtrace support" "$LINENO" 5
 5203 fi
 5204 done
 5205 
 5206 fi
 5207 
 5208 
 5209 # Check whether --enable-documentation was given.
 5210 if test "${enable_documentation+set}" = set; then :
 5211   enableval=$enable_documentation;
 5212 else
 5213   enable_documentation=yes
 5214 
 5215 fi
 5216 
 5217 if test "x$enable_documentation" = xyes; then :
 5218   DISABLE_DOCUMENTATION=0
 5219 else
 5220   DISABLE_DOCUMENTATION=1
 5221 fi
 5222 
 5223 
 5224 ASCIIDOC_TOOL="none"
 5225 if test "x$enable_documentation" = xyes; then
 5226     # Extract the first word of "xmlto", so it can be a program name with args.
 5227 set dummy xmlto; ac_word=$2
 5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 5229 $as_echo_n "checking for $ac_word... " >&6; }
 5230 if ${ac_cv_path_XMLTO+:} false; then :
 5231   $as_echo_n "(cached) " >&6
 5232 else
 5233   case $XMLTO in
 5234   [\\/]* | ?:[\\/]*)
 5235   ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
 5236   ;;
 5237   *)
 5238   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 5239 for as_dir in $PATH
 5240 do
 5241   IFS=$as_save_IFS
 5242   test -z "$as_dir" && as_dir=.
 5243     for ac_exec_ext in '' $ac_executable_extensions; do
 5244   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 5245     ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
 5246     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 5247     break 2
 5248   fi
 5249 done
 5250   done
 5251 IFS=$as_save_IFS
 5252 
 5253   ;;
 5254 esac
 5255 fi
 5256 XMLTO=$ac_cv_path_XMLTO
 5257 if test -n "$XMLTO"; then
 5258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
 5259 $as_echo "$XMLTO" >&6; }
 5260 else
 5261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5262 $as_echo "no" >&6; }
 5263 fi
 5264 
 5265 
 5266     if test -z "$XMLTO"; then
 5267         as_fn_error $? "cannot find xmlto, cannot build documentation" "$LINENO" 5
 5268     fi
 5269 
 5270     # Extract the first word of "mv", so it can be a program name with args.
 5271 set dummy mv; ac_word=$2
 5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 5273 $as_echo_n "checking for $ac_word... " >&6; }
 5274 if ${ac_cv_path_MV+:} false; then :
 5275   $as_echo_n "(cached) " >&6
 5276 else
 5277   case $MV in
 5278   [\\/]* | ?:[\\/]*)
 5279   ac_cv_path_MV="$MV" # Let the user override the test with a path.
 5280   ;;
 5281   *)
 5282   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 5283 for as_dir in $PATH
 5284 do
 5285   IFS=$as_save_IFS
 5286   test -z "$as_dir" && as_dir=.
 5287     for ac_exec_ext in '' $ac_executable_extensions; do
 5288   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 5289     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
 5290     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 5291     break 2
 5292   fi
 5293 done
 5294   done
 5295 IFS=$as_save_IFS
 5296 
 5297   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
 5298   ;;
 5299 esac
 5300 fi
 5301 MV=$ac_cv_path_MV
 5302 if test -n "$MV"; then
 5303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
 5304 $as_echo "$MV" >&6; }
 5305 else
 5306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5307 $as_echo "no" >&6; }
 5308 fi
 5309 
 5310 
 5311     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
 5312 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
 5313 if ${ac_cv_path_SED+:} false; then :
 5314   $as_echo_n "(cached) " >&6
 5315 else
 5316             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 5317      for ac_i in 1 2 3 4 5 6 7; do
 5318        ac_script="$ac_script$as_nl$ac_script"
 5319      done
 5320      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 5321      { ac_script=; unset ac_script;}
 5322      if test -z "$SED"; then
 5323   ac_path_SED_found=false
 5324   # Loop through the user's path and test for each of PROGNAME-LIST
 5325   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 5326 for as_dir in $PATH
 5327 do
 5328   IFS=$as_save_IFS
 5329   test -z "$as_dir" && as_dir=.
 5330     for ac_prog in sed gsed; do
 5331     for ac_exec_ext in '' $ac_executable_extensions; do
 5332       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 5333       as_fn_executable_p "$ac_path_SED" || continue
 5334 # Check for GNU ac_path_SED and select it if it is found.
 5335   # Check for GNU $ac_path_SED
 5336 case `"$ac_path_SED" --version 2>&1` in
 5337 *GNU*)
 5338   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 5339 *)
 5340   ac_count=0
 5341   $as_echo_n 0123456789 >"conftest.in"
 5342   while :
 5343   do
 5344     cat "conftest.in" "conftest.in" >"conftest.tmp"
 5345     mv "conftest.tmp" "conftest.in"
 5346     cp "conftest.in" "conftest.nl"
 5347     $as_echo '' >> "conftest.nl"
 5348     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 5349     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 5350     as_fn_arith $ac_count + 1 && ac_count=$as_val
 5351     if test $ac_count -gt ${ac_path_SED_max-0}; then
 5352       # Best one so far, save it but keep looking for a better one
 5353       ac_cv_path_SED="$ac_path_SED"
 5354       ac_path_SED_max=$ac_count
 5355     fi
 5356     # 10*(2^10) chars as input seems more than enough
 5357     test $ac_count -gt 10 && break
 5358   done
 5359   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 5360 esac
 5361 
 5362       $ac_path_SED_found && break 3
 5363     done
 5364   done
 5365   done
 5366 IFS=$as_save_IFS
 5367   if test -z "$ac_cv_path_SED"; then
 5368     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
 5369   fi
 5370 else
 5371   ac_cv_path_SED=$SED
 5372 fi
 5373 
 5374 fi
 5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
 5376 $as_echo "$ac_cv_path_SED" >&6; }
 5377  SED="$ac_cv_path_SED"
 5378   rm -f conftest.sed
 5379 
 5380     # Extract the first word of "asciidoc", so it can be a program name with args.
 5381 set dummy asciidoc; ac_word=$2
 5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 5383 $as_echo_n "checking for $ac_word... " >&6; }
 5384 if ${ac_cv_path_ASCIIDOC+:} false; then :
 5385   $as_echo_n "(cached) " >&6
 5386 else
 5387   case $ASCIIDOC in
 5388   [\\/]* | ?:[\\/]*)
 5389   ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path.
 5390   ;;
 5391   *)
 5392   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 5393 for as_dir in $PATH
 5394 do
 5395   IFS=$as_save_IFS
 5396   test -z "$as_dir" && as_dir=.
 5397     for ac_exec_ext in '' $ac_executable_extensions; do
 5398   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 5399     ac_cv_path_ASCIIDOC="$as_dir/$ac_word$ac_exec_ext"
 5400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 5401     break 2
 5402   fi
 5403 done
 5404   done
 5405 IFS=$as_save_IFS
 5406 
 5407   ;;
 5408 esac
 5409 fi
 5410 ASCIIDOC=$ac_cv_path_ASCIIDOC
 5411 if test -n "$ASCIIDOC"; then
 5412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5
 5413 $as_echo "$ASCIIDOC" >&6; }
 5414 else
 5415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5416 $as_echo "no" >&6; }
 5417 fi
 5418 
 5419 
 5420     # Extract the first word of "asciidoctor", so it can be a program name with args.
 5421 set dummy asciidoctor; ac_word=$2
 5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 5423 $as_echo_n "checking for $ac_word... " >&6; }
 5424 if ${ac_cv_path_ASCIIDOCTOR+:} false; then :
 5425   $as_echo_n "(cached) " >&6
 5426 else
 5427   case $ASCIIDOCTOR in
 5428   [\\/]* | ?:[\\/]*)
 5429   ac_cv_path_ASCIIDOCTOR="$ASCIIDOCTOR" # Let the user override the test with a path.
 5430   ;;
 5431   *)
 5432   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 5433 for as_dir in $PATH
 5434 do
 5435   IFS=$as_save_IFS
 5436   test -z "$as_dir" && as_dir=.
 5437     for ac_exec_ext in '' $ac_executable_extensions; do
 5438   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 5439     ac_cv_path_ASCIIDOCTOR="$as_dir/$ac_word$ac_exec_ext"
 5440     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 5441     break 2
 5442   fi
 5443 done
 5444   done
 5445 IFS=$as_save_IFS
 5446 
 5447   ;;
 5448 esac
 5449 fi
 5450 ASCIIDOCTOR=$ac_cv_path_ASCIIDOCTOR
 5451 if test -n "$ASCIIDOCTOR"; then
 5452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOCTOR" >&5
 5453 $as_echo "$ASCIIDOCTOR" >&6; }
 5454 else
 5455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5456 $as_echo "no" >&6; }
 5457 fi
 5458 
 5459 
 5460 
 5461         if test -n "$ASCIIDOC"; then
 5462         ASCIIDOC_TOOL="asciidoc"
 5463     else
 5464         if test -n "$ASCIIDOCTOR"; then
 5465             ASCIIDOC_TOOL="asciidoctor"
 5466         else
 5467             as_fn_error $? "cannot find asciidoc or asciidoctor, cannot build documentation" "$LINENO" 5
 5468         fi
 5469     fi
 5470 fi
 5471 
 5472 
 5473 # Check whether --enable-programs was given.
 5474 if test "${enable_programs+set}" = set; then :
 5475   enableval=$enable_programs;
 5476 else
 5477   enable_programs=yes
 5478 
 5479 fi
 5480 
 5481 if test "x$enable_programs" = xyes; then :
 5482   BUILD_PROGRAMS=1
 5483 else
 5484   BUILD_PROGRAMS=0
 5485 fi
 5486 
 5487 
 5488 # Check whether --enable-shared was given.
 5489 if test "${enable_shared+set}" = set; then :
 5490   enableval=$enable_shared;
 5491 else
 5492   enable_shared=yes
 5493 
 5494 fi
 5495 
 5496 if test "x$enable_shared" = xyes; then :
 5497   BUILD_SHARED_LIBRARIES=1
 5498 else
 5499   BUILD_SHARED_LIBRARIES=0
 5500 fi
 5501 
 5502 
 5503 # Check whether --enable-static was given.
 5504 if test "${enable_static+set}" = set; then :
 5505   enableval=$enable_static;
 5506 else
 5507   enable_static=yes
 5508 
 5509 fi
 5510 
 5511 if test "x$enable_static" = xyes; then :
 5512   BUILD_STATIC_LIBRARIES=1
 5513 else
 5514   BUILD_STATIC_LIBRARIES=0
 5515 fi
 5516 
 5517 
 5518 # Check whether --enable-convert was given.
 5519 if test "${enable_convert+set}" = set; then :
 5520   enableval=$enable_convert;
 5521 else
 5522   enable_convert=$enable_programs
 5523 
 5524 fi
 5525 
 5526 
 5527 if test "x$enable_convert" = xyes; then :
 5528   DISABLE_BTRFSCONVERT=0
 5529 else
 5530   DISABLE_BTRFSCONVERT=1
 5531 fi
 5532 
 5533 
 5534 
 5535 # Check whether --with-convert was given.
 5536 if test "${with_convert+set}" = set; then :
 5537   withval=$with_convert;
 5538 else
 5539   with_convert=auto
 5540 
 5541 fi
 5542 
 5543 
 5544 if test "$with_convert" = "yes"; then
 5545     with_convert=auto
 5546 fi
 5547 
 5548 if test "$with_convert" = "no"; then
 5549     with_convert=
 5550 fi
 5551 
 5552 convertfs=
 5553 BTRFSCONVERT_EXT2=0
 5554 BTRFSCONVERT_REISERFS=0
 5555 if test "x$enable_convert" = xyes; then
 5556     if test "x$with_convert" = "xauto" || echo "$with_convert" | grep -q "ext2"; then
 5557 
 5558 pkg_failed=no
 5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXT2FS" >&5
 5560 $as_echo_n "checking for EXT2FS... " >&6; }
 5561 
 5562 if test -n "$EXT2FS_CFLAGS"; then
 5563     pkg_cv_EXT2FS_CFLAGS="$EXT2FS_CFLAGS"
 5564  elif test -n "$PKG_CONFIG"; then
 5565     if test -n "$PKG_CONFIG" && \
 5566     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ext2fs\""; } >&5
 5567   ($PKG_CONFIG --exists --print-errors "ext2fs") 2>&5
 5568   ac_status=$?
 5569   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 5570   test $ac_status = 0; }; then
 5571   pkg_cv_EXT2FS_CFLAGS=`$PKG_CONFIG --cflags "ext2fs" 2>/dev/null`
 5572               test "x$?" != "x0" && pkg_failed=yes
 5573 else
 5574   pkg_failed=yes
 5575 fi
 5576  else
 5577     pkg_failed=untried
 5578 fi
 5579 if test -n "$EXT2FS_LIBS"; then
 5580     pkg_cv_EXT2FS_LIBS="$EXT2FS_LIBS"
 5581  elif test -n "$PKG_CONFIG"; then
 5582     if test -n "$PKG_CONFIG" && \
 5583     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ext2fs\""; } >&5
 5584   ($PKG_CONFIG --exists --print-errors "ext2fs") 2>&5
 5585   ac_status=$?
 5586   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 5587   test $ac_status = 0; }; then
 5588   pkg_cv_EXT2FS_LIBS=`$PKG_CONFIG --libs "ext2fs" 2>/dev/null`
 5589               test "x$?" != "x0" && pkg_failed=yes
 5590 else
 5591   pkg_failed=yes
 5592 fi
 5593  else
 5594     pkg_failed=untried
 5595 fi
 5596 
 5597 
 5598 
 5599 if test $pkg_failed = yes; then
 5600     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5601 $as_echo "no" >&6; }
 5602 
 5603 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 5604         _pkg_short_errors_supported=yes
 5605 else
 5606         _pkg_short_errors_supported=no
 5607 fi
 5608         if test $_pkg_short_errors_supported = yes; then
 5609             EXT2FS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ext2fs" 2>&1`
 5610         else
 5611             EXT2FS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ext2fs" 2>&1`
 5612         fi
 5613     # Put the nasty error message in config.log where it belongs
 5614     echo "$EXT2FS_PKG_ERRORS" >&5
 5615 
 5616     as_fn_error $? "Package requirements (ext2fs) were not met:
 5617 
 5618 $EXT2FS_PKG_ERRORS
 5619 
 5620 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 5621 installed software in a non-standard prefix.
 5622 
 5623 Alternatively, you may set the environment variables EXT2FS_CFLAGS
 5624 and EXT2FS_LIBS to avoid the need to call pkg-config.
 5625 See the pkg-config man page for more details." "$LINENO" 5
 5626 elif test $pkg_failed = untried; then
 5627         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5628 $as_echo "no" >&6; }
 5629     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 5630 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 5631 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
 5632 is in your PATH or set the PKG_CONFIG environment variable to the full
 5633 path to pkg-config.
 5634 
 5635 Alternatively, you may set the environment variables EXT2FS_CFLAGS
 5636 and EXT2FS_LIBS to avoid the need to call pkg-config.
 5637 See the pkg-config man page for more details.
 5638 
 5639 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 5640 See \`config.log' for more details" "$LINENO" 5; }
 5641 else
 5642     EXT2FS_CFLAGS=$pkg_cv_EXT2FS_CFLAGS
 5643     EXT2FS_LIBS=$pkg_cv_EXT2FS_LIBS
 5644         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 5645 $as_echo "yes" >&6; }
 5646 
 5647 fi
 5648 
 5649 pkg_failed=no
 5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COM_ERR" >&5
 5651 $as_echo_n "checking for COM_ERR... " >&6; }
 5652 
 5653 if test -n "$COM_ERR_CFLAGS"; then
 5654     pkg_cv_COM_ERR_CFLAGS="$COM_ERR_CFLAGS"
 5655  elif test -n "$PKG_CONFIG"; then
 5656     if test -n "