home *** CD-ROM | disk | FTP | other *** search
/ ftp.parl.clemson.edu / 2015-02-07.ftp.parl.clemson.edu.tar / ftp.parl.clemson.edu / pub / pvfs2 / orangefs-2.8.3-20110323.tar.gz / orangefs-2.8.3-20110323.tar / orangefs / autom4te.cache / output.0 next >
Text File  |  2011-03-23  |  344KB  |  12,573 lines

  1. @%:@! /bin/sh
  2. @%:@ Guess values for system-dependent variables and create Makefiles.
  3. @%:@ Generated by GNU Autoconf 2.65.
  4. @%:@ 
  5. @%:@ 
  6. @%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  7. @%:@ 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  8. @%:@ 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. case $0 in @%:@((
  93.   *[\\/]* ) as_myself=$0 ;;
  94.   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  95. for as_dir in $PATH
  96. do
  97.   IFS=$as_save_IFS
  98.   test -z "$as_dir" && as_dir=.
  99.     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  100.   done
  101. IFS=$as_save_IFS
  102.  
  103.      ;;
  104. esac
  105. # We did not find ourselves, most probably we were run as `sh COMMAND'
  106. # in which case we are not to be found in the path.
  107. if test "x$as_myself" = x; then
  108.   as_myself=$0
  109. fi
  110. if test ! -f "$as_myself"; then
  111.   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  112.   exit 1
  113. fi
  114.  
  115. # Unset variables that we do not need and which cause bugs (e.g. in
  116. # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
  117. # suppresses any "Segmentation fault" message there.  '((' could
  118. # trigger a bug in pdksh 5.2.14.
  119. for as_var in BASH_ENV ENV MAIL MAILPATH
  120. do eval test x\${$as_var+set} = xset \
  121.   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  122. done
  123. PS1='$ '
  124. PS2='> '
  125. PS4='+ '
  126.  
  127. # NLS nuisances.
  128. LC_ALL=C
  129. export LC_ALL
  130. LANGUAGE=C
  131. export LANGUAGE
  132.  
  133. # CDPATH.
  134. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  135.  
  136. if test "x$CONFIG_SHELL" = x; then
  137.   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  138.   emulate sh
  139.   NULLCMD=:
  140.   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  141.   # is contrary to our usage.  Disable this feature.
  142.   alias -g '\${1+\"\$@\"}'='\"\$@\"'
  143.   setopt NO_GLOB_SUBST
  144. else
  145.   case \`(set -o) 2>/dev/null\` in @%:@(
  146.   *posix*) :
  147.     set -o posix ;; @%:@(
  148.   *) :
  149.      ;;
  150. esac
  151. fi
  152. "
  153.   as_required="as_fn_return () { (exit \$1); }
  154. as_fn_success () { as_fn_return 0; }
  155. as_fn_failure () { as_fn_return 1; }
  156. as_fn_ret_success () { return 0; }
  157. as_fn_ret_failure () { return 1; }
  158.  
  159. exitcode=0
  160. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  161. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  162. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  163. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  164. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  165.   
  166. else
  167.   exitcode=1; echo positional parameters were not saved.
  168. fi
  169. test x\$exitcode = x0 || exit 1"
  170.   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  171.   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  172.   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  173.   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  174. test \$(( 1 + 1 )) = 2 || exit 1"
  175.   if (eval "$as_required") 2>/dev/null; then :
  176.   as_have_required=yes
  177. else
  178.   as_have_required=no
  179. fi
  180.   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  181.   
  182. else
  183.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  184. as_found=false
  185. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  186. do
  187.   IFS=$as_save_IFS
  188.   test -z "$as_dir" && as_dir=.
  189.   as_found=:
  190.   case $as_dir in @%:@(
  191.      /*)
  192.        for as_base in sh bash ksh sh5; do
  193.          # Try only shells that exist, to save several forks.
  194.          as_shell=$as_dir/$as_base
  195.          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  196.             { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  197.   CONFIG_SHELL=$as_shell as_have_required=yes
  198.            if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  199.   break 2
  200. fi
  201. fi
  202.        done;;
  203.        esac
  204.   as_found=false
  205. done
  206. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  207.           { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  208.   CONFIG_SHELL=$SHELL as_have_required=yes
  209. fi; }
  210. IFS=$as_save_IFS
  211.  
  212.  
  213.       if test "x$CONFIG_SHELL" != x; then :
  214.   # We cannot yet assume a decent shell, so we have to provide a
  215.     # neutralization value for shells without unset; and this also
  216.     # works around shells that cannot unset nonexistent variables.
  217.     BASH_ENV=/dev/null
  218.     ENV=/dev/null
  219.     (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  220.     export CONFIG_SHELL
  221.     exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  222. fi
  223.  
  224.     if test x$as_have_required = xno; then :
  225.   $as_echo "$0: This script requires a shell more modern than all"
  226.   $as_echo "$0: the shells that I found on your system."
  227.   if test x${ZSH_VERSION+set} = xset ; then
  228.     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  229.     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  230.   else
  231.     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  232. $0: including any error possibly output before this
  233. $0: message. Then install a modern shell, or manually run
  234. $0: the script under such a shell if you do have one."
  235.   fi
  236.   exit 1
  237. fi
  238. fi
  239. fi
  240. SHELL=${CONFIG_SHELL-/bin/sh}
  241. export SHELL
  242. # Unset more variables known to interfere with behavior of common tools.
  243. CLICOLOR_FORCE= GREP_OPTIONS=
  244. unset CLICOLOR_FORCE GREP_OPTIONS
  245.  
  246. ## --------------------- ##
  247. ## M4sh Shell Functions. ##
  248. ## --------------------- ##
  249. @%:@ as_fn_unset VAR
  250. @%:@ ---------------
  251. @%:@ Portably unset VAR.
  252. as_fn_unset ()
  253. {
  254.   { eval $1=; unset $1;}
  255. }
  256. as_unset=as_fn_unset
  257.  
  258. @%:@ as_fn_set_status STATUS
  259. @%:@ -----------------------
  260. @%:@ Set @S|@? to STATUS, without forking.
  261. as_fn_set_status ()
  262. {
  263.   return $1
  264. } @%:@ as_fn_set_status
  265.  
  266. @%:@ as_fn_exit STATUS
  267. @%:@ -----------------
  268. @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  269. as_fn_exit ()
  270. {
  271.   set +e
  272.   as_fn_set_status $1
  273.   exit $1
  274. } @%:@ as_fn_exit
  275.  
  276. @%:@ as_fn_mkdir_p
  277. @%:@ -------------
  278. @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
  279. as_fn_mkdir_p ()
  280. {
  281.  
  282.   case $as_dir in #(
  283.   -*) as_dir=./$as_dir;;
  284.   esac
  285.   test -d "$as_dir" || eval $as_mkdir_p || {
  286.     as_dirs=
  287.     while :; do
  288.       case $as_dir in #(
  289.       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  290.       *) as_qdir=$as_dir;;
  291.       esac
  292.       as_dirs="'$as_qdir' $as_dirs"
  293.       as_dir=`$as_dirname -- "$as_dir" ||
  294. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  295.      X"$as_dir" : 'X\(//\)[^/]' \| \
  296.      X"$as_dir" : 'X\(//\)$' \| \
  297.      X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  298. $as_echo X"$as_dir" |
  299.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  300.         s//\1/
  301.         q
  302.       }
  303.       /^X\(\/\/\)[^/].*/{
  304.         s//\1/
  305.         q
  306.       }
  307.       /^X\(\/\/\)$/{
  308.         s//\1/
  309.         q
  310.       }
  311.       /^X\(\/\).*/{
  312.         s//\1/
  313.         q
  314.       }
  315.       s/.*/./; q'`
  316.       test -d "$as_dir" && break
  317.     done
  318.     test -z "$as_dirs" || eval "mkdir $as_dirs"
  319.   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  320.  
  321.  
  322. } @%:@ as_fn_mkdir_p
  323. @%:@ as_fn_append VAR VALUE
  324. @%:@ ----------------------
  325. @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
  326. @%:@ advantage of any shell optimizations that allow amortized linear growth over
  327. @%:@ repeated appends, instead of the typical quadratic growth present in naive
  328. @%:@ implementations.
  329. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  330.   eval 'as_fn_append ()
  331.   {
  332.     eval $1+=\$2
  333.   }'
  334. else
  335.   as_fn_append ()
  336.   {
  337.     eval $1=\$$1\$2
  338.   }
  339. fi # as_fn_append
  340.  
  341. @%:@ as_fn_arith ARG...
  342. @%:@ ------------------
  343. @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
  344. @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
  345. @%:@ must be portable across @S|@(()) and expr.
  346. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  347.   eval 'as_fn_arith ()
  348.   {
  349.     as_val=$(( $* ))
  350.   }'
  351. else
  352.   as_fn_arith ()
  353.   {
  354.     as_val=`expr "$@" || test $? -eq 1`
  355.   }
  356. fi # as_fn_arith
  357.  
  358.  
  359. @%:@ as_fn_error ERROR [LINENO LOG_FD]
  360. @%:@ ---------------------------------
  361. @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  362. @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  363. @%:@ script with status @S|@?, using 1 if that was 0.
  364. as_fn_error ()
  365. {
  366.   as_status=$?; test $as_status -eq 0 && as_status=1
  367.   if test "$3"; then
  368.     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  369.     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  370.   fi
  371.   $as_echo "$as_me: error: $1" >&2
  372.   as_fn_exit $as_status
  373. } @%:@ as_fn_error
  374.  
  375. if expr a : '\(a\)' >/dev/null 2>&1 &&
  376.    test "X`expr 00001 : '.*\(...\)'`" = X001; then
  377.   as_expr=expr
  378. else
  379.   as_expr=false
  380. fi
  381.  
  382. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  383.   as_basename=basename
  384. else
  385.   as_basename=false
  386. fi
  387.  
  388. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  389.   as_dirname=dirname
  390. else
  391.   as_dirname=false
  392. fi
  393.  
  394. as_me=`$as_basename -- "$0" ||
  395. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  396.      X"$0" : 'X\(//\)$' \| \
  397.      X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  398. $as_echo X/"$0" |
  399.     sed '/^.*\/\([^/][^/]*\)\/*$/{
  400.         s//\1/
  401.         q
  402.       }
  403.       /^X\/\(\/\/\)$/{
  404.         s//\1/
  405.         q
  406.       }
  407.       /^X\/\(\/\).*/{
  408.         s//\1/
  409.         q
  410.       }
  411.       s/.*/./; q'`
  412.  
  413. # Avoid depending upon Character Ranges.
  414. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  415. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  416. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  417. as_cr_digits='0123456789'
  418. as_cr_alnum=$as_cr_Letters$as_cr_digits
  419.  
  420.  
  421.   as_lineno_1=$LINENO as_lineno_1a=$LINENO
  422.   as_lineno_2=$LINENO as_lineno_2a=$LINENO
  423.   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  424.   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  425.   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
  426.   sed -n '
  427.     p
  428.     /[$]LINENO/=
  429.   ' <$as_myself |
  430.     sed '
  431.       s/[$]LINENO.*/&-/
  432.       t lineno
  433.       b
  434.       :lineno
  435.       N
  436.       :loop
  437.       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  438.       t loop
  439.       s/-\n.*//
  440.     ' >$as_me.lineno &&
  441.   chmod +x "$as_me.lineno" ||
  442.     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  443.  
  444.   # Don't try to exec as it changes $[0], causing all sort of problems
  445.   # (the dirname of $[0] is not the place where we might find the
  446.   # original and so on.  Autoconf is especially sensitive to this).
  447.   . "./$as_me.lineno"
  448.   # Exit status is that of the last command.
  449.   exit
  450. }
  451.  
  452. ECHO_C= ECHO_N= ECHO_T=
  453. case `echo -n x` in @%:@(((((
  454. -n*)
  455.   case `echo 'xy\c'` in
  456.   *c*) ECHO_T='    ';;    # ECHO_T is single tab character.
  457.   xy)  ECHO_C='\c';;
  458.   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
  459.        ECHO_T='    ';;
  460.   esac;;
  461. *)
  462.   ECHO_N='-n';;
  463. esac
  464.  
  465. rm -f conf$$ conf$$.exe conf$$.file
  466. if test -d conf$$.dir; then
  467.   rm -f conf$$.dir/conf$$.file
  468. else
  469.   rm -f conf$$.dir
  470.   mkdir conf$$.dir 2>/dev/null
  471. fi
  472. if (echo >conf$$.file) 2>/dev/null; then
  473.   if ln -s conf$$.file conf$$ 2>/dev/null; then
  474.     as_ln_s='ln -s'
  475.     # ... but there are two gotchas:
  476.     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  477.     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  478.     # In both cases, we have to default to `cp -p'.
  479.     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  480.       as_ln_s='cp -p'
  481.   elif ln conf$$.file conf$$ 2>/dev/null; then
  482.     as_ln_s=ln
  483.   else
  484.     as_ln_s='cp -p'
  485.   fi
  486. else
  487.   as_ln_s='cp -p'
  488. fi
  489. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  490. rmdir conf$$.dir 2>/dev/null
  491.  
  492. if mkdir -p . 2>/dev/null; then
  493.   as_mkdir_p='mkdir -p "$as_dir"'
  494. else
  495.   test -d ./-p && rmdir ./-p
  496.   as_mkdir_p=false
  497. fi
  498.  
  499. if test -x / >/dev/null 2>&1; then
  500.   as_test_x='test -x'
  501. else
  502.   if ls -dL / >/dev/null 2>&1; then
  503.     as_ls_L_option=L
  504.   else
  505.     as_ls_L_option=
  506.   fi
  507.   as_test_x='
  508.     eval sh -c '\''
  509.       if test -d "$1"; then
  510.     test -d "$1/.";
  511.       else
  512.     case $1 in @%:@(
  513.     -*)set "./$1";;
  514.     esac;
  515.     case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
  516.     ???[sx]*):;;*)false;;esac;fi
  517.     '\'' sh
  518.   '
  519. fi
  520. as_executable_p=$as_test_x
  521.  
  522. # Sed expression to map a string onto a valid CPP name.
  523. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  524.  
  525. # Sed expression to map a string onto a valid variable name.
  526. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  527.  
  528.  
  529. test -n "$DJDIR" || exec 7<&0 </dev/null
  530. exec 6>&1
  531.  
  532. # Name of the host.
  533. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  534. # so uname gets run too.
  535. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  536.  
  537. #
  538. # Initializations.
  539. #
  540. ac_default_prefix=/usr/local
  541. ac_clean_files=
  542. ac_config_libobj_dir=.
  543. LIB@&t@OBJS=
  544. cross_compiling=no
  545. subdirs=
  546. MFLAGS=
  547. MAKEFLAGS=
  548.  
  549. # Identity of this package.
  550. PACKAGE_NAME=
  551. PACKAGE_TARNAME=
  552. PACKAGE_VERSION=
  553. PACKAGE_STRING=
  554. PACKAGE_BUGREPORT=
  555. PACKAGE_URL=
  556.  
  557. ac_unique_file="include/pvfs2-types.h"
  558. # Factoring default headers for most tests.
  559. ac_includes_default="\
  560. #include <stdio.h>
  561. #ifdef HAVE_SYS_TYPES_H
  562. # include <sys/types.h>
  563. #endif
  564. #ifdef HAVE_SYS_STAT_H
  565. # include <sys/stat.h>
  566. #endif
  567. #ifdef STDC_HEADERS
  568. # include <stdlib.h>
  569. # include <stddef.h>
  570. #else
  571. # ifdef HAVE_STDLIB_H
  572. #  include <stdlib.h>
  573. # endif
  574. #endif
  575. #ifdef HAVE_STRING_H
  576. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  577. #  include <memory.h>
  578. # endif
  579. # include <string.h>
  580. #endif
  581. #ifdef HAVE_STRINGS_H
  582. # include <strings.h>
  583. #endif
  584. #ifdef HAVE_INTTYPES_H
  585. # include <inttypes.h>
  586. #endif
  587. #ifdef HAVE_STDINT_H
  588. # include <stdint.h>
  589. #endif
  590. #ifdef HAVE_UNISTD_H
  591. # include <unistd.h>
  592. #endif"
  593.  
  594. ac_subst_vars='LTLIBOBJS
  595. LIB@&t@OBJS
  596. VISLIBS
  597. VISCFLAGS
  598. BUILD_VIS
  599. GOSSIP_ENABLE_BACKTRACE
  600. SERVER_LDFLAGS
  601. ZOID_SRCDIR
  602. BUILD_ZOID
  603. PORTALS_LIBS
  604. PORTALS_INCS
  605. BUILD_PORTALS
  606. OPENIB_LIBDIR
  607. OPENIB_INCDIR
  608. BUILD_OPENIB
  609. IB_LIBDIR
  610. IB_INCDIR
  611. BUILD_IB
  612. MX_LIBDIR
  613. MX_INCDIR
  614. BUILD_MX
  615. GM_LIBDIR
  616. GM_INCDIR
  617. BUILD_GM
  618. BUILD_BMI_TCP
  619. TARGET_OS_LINUX
  620. TARGET_OS_DARWIN
  621. NEEDS_LIBRT
  622. DB_LIB
  623. DB_CFLAGS
  624. GNUC
  625. INTELC
  626. build_shared
  627. PVFS2_SEGV_BACKTRACE
  628. BUILD_EPOLL
  629. QUIET_COMPILE
  630. STRICT_CFLAGS
  631. ENABLE_COVERAGE
  632. BUILD_FUSE
  633. FUSE_CFLAGS
  634. FUSE_LDFLAGS
  635. SRC_ABSOLUTE_TOP
  636. SRC_RELATIVE_TOP
  637. BUILD_ABSOLUTE_TOP
  638. LINUX24_KERNEL_MINOR_VER
  639. LINUX24_KERNEL_SRC
  640. LINUX_KERNEL_SRC
  641. THREADED_KMOD_HELPER
  642. BUILD_KERNEL
  643. BUILD_TAU
  644. TAU_INCS
  645. MISC_TROVE_FLAGS
  646. NPTL_WORKAROUND
  647. REDHAT_RELEASE
  648. build_static
  649. BUILD_KARMA
  650. GTKCFLAGS
  651. GTKLIBS
  652. HAVE_PKGCONFIG
  653. TRUSTED_CONNECTIONS
  654. MMAP_RA_CACHE
  655. NEED_BERKELEY_DB
  656. BUILD_BMI_ONLY
  657. BUILD_SERVER
  658. THREAD_LIB
  659. LIBCFLAGS
  660. BUILD_LDFLAGS
  661. BUILD_CFLAGS
  662. BUILD_CC
  663. HAVE_FLEX
  664. HAVE_BISON
  665. HAVE_FIND
  666. HAVE_PERL
  667. INSTALL_DATA
  668. INSTALL_SCRIPT
  669. INSTALL_PROGRAM
  670. EGREP
  671. GREP
  672. CPP
  673. OBJEXT
  674. EXEEXT
  675. ac_ct_CC
  676. CPPFLAGS
  677. LDFLAGS
  678. CFLAGS
  679. CC
  680. host_os
  681. host_vendor
  682. host_cpu
  683. host
  684. build_os
  685. build_vendor
  686. build_cpu
  687. build
  688. PVFS2_VERSION_SUB
  689. PVFS2_VERSION_MINOR
  690. PVFS2_VERSION_MAJOR
  691. PVFS2_VERSION
  692. target_alias
  693. host_alias
  694. build_alias
  695. LIBS
  696. ECHO_T
  697. ECHO_N
  698. ECHO_C
  699. DEFS
  700. mandir
  701. localedir
  702. libdir
  703. psdir
  704. pdfdir
  705. dvidir
  706. htmldir
  707. infodir
  708. docdir
  709. oldincludedir
  710. includedir
  711. localstatedir
  712. sharedstatedir
  713. sysconfdir
  714. datadir
  715. datarootdir
  716. libexecdir
  717. sbindir
  718. bindir
  719. program_transform_name
  720. prefix
  721. exec_prefix
  722. PACKAGE_URL
  723. PACKAGE_BUGREPORT
  724. PACKAGE_STRING
  725. PACKAGE_VERSION
  726. PACKAGE_TARNAME
  727. PACKAGE_NAME
  728. PATH_SEPARATOR
  729. SHELL'
  730. ac_subst_files=''
  731. ac_user_opts='
  732. enable_option_checking
  733. enable_thread_safety
  734. enable_server
  735. with_openssl
  736. enable_karma_mem_usage_stats
  737. enable_bmi_only
  738. enable_perf_counters
  739. enable_mmap_racache
  740. enable_trusted_connections
  741. enable_karma
  742. enable_static
  743. enable_redhat24
  744. enable_nptl_workaround
  745. enable_aio_threaded_callbacks
  746. with_mtrace
  747. with_berkdb_debug
  748. with_tau
  749. with_kernel
  750. with_kernel24
  751. enable_kernel_aio
  752. enable_kernel_sendfile
  753. enable_threaded_kmod_helper
  754. enable_fast
  755. enable_fuse
  756. enable_strict
  757. enable_verbose_build
  758. enable_epoll
  759. enable_segv_backtrace
  760. enable_shared
  761. with_efence
  762. with_valgrind
  763. with_db
  764. with_bmi_tcp
  765. with_gm
  766. with_gm_includes
  767. with_gm_libs
  768. with_mx
  769. with_mx_includes
  770. with_mx_libs
  771. with_ib
  772. with_ib_includes
  773. with_ib_libs
  774. with_openib
  775. with_openib_includes
  776. with_openib_libs
  777. with_portals
  778. with_portals_includes
  779. with_portals_libs
  780. with_zoid
  781. enable_static_server
  782. '
  783.       ac_precious_vars='build_alias
  784. host_alias
  785. target_alias
  786. CC
  787. CFLAGS
  788. LDFLAGS
  789. LIBS
  790. CPPFLAGS
  791. CPP'
  792.  
  793.  
  794. # Initialize some variables set by options.
  795. ac_init_help=
  796. ac_init_version=false
  797. ac_unrecognized_opts=
  798. ac_unrecognized_sep=
  799. # The variables have the same names as the options, with
  800. # dashes changed to underlines.
  801. cache_file=/dev/null
  802. exec_prefix=NONE
  803. no_create=
  804. no_recursion=
  805. prefix=NONE
  806. program_prefix=NONE
  807. program_suffix=NONE
  808. program_transform_name=s,x,x,
  809. silent=
  810. site=
  811. srcdir=
  812. verbose=
  813. x_includes=NONE
  814. x_libraries=NONE
  815.  
  816. # Installation directory options.
  817. # These are left unexpanded so users can "make install exec_prefix=/foo"
  818. # and all the variables that are supposed to be based on exec_prefix
  819. # by default will actually change.
  820. # Use braces instead of parens because sh, perl, etc. also accept them.
  821. # (The list follows the same order as the GNU Coding Standards.)
  822. bindir='${exec_prefix}/bin'
  823. sbindir='${exec_prefix}/sbin'
  824. libexecdir='${exec_prefix}/libexec'
  825. datarootdir='${prefix}/share'
  826. datadir='${datarootdir}'
  827. sysconfdir='${prefix}/etc'
  828. sharedstatedir='${prefix}/com'
  829. localstatedir='${prefix}/var'
  830. includedir='${prefix}/include'
  831. oldincludedir='/usr/include'
  832. docdir='${datarootdir}/doc/${PACKAGE}'
  833. infodir='${datarootdir}/info'
  834. htmldir='${docdir}'
  835. dvidir='${docdir}'
  836. pdfdir='${docdir}'
  837. psdir='${docdir}'
  838. libdir='${exec_prefix}/lib'
  839. localedir='${datarootdir}/locale'
  840. mandir='${datarootdir}/man'
  841.  
  842. ac_prev=
  843. ac_dashdash=
  844. for ac_option
  845. do
  846.   # If the previous option needs an argument, assign it.
  847.   if test -n "$ac_prev"; then
  848.     eval $ac_prev=\$ac_option
  849.     ac_prev=
  850.     continue
  851.   fi
  852.  
  853.   case $ac_option in
  854.   *=*)    ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  855.   *)    ac_optarg=yes ;;
  856.   esac
  857.  
  858.   # Accept the important Cygnus configure options, so we can diagnose typos.
  859.  
  860.   case $ac_dashdash$ac_option in
  861.   --)
  862.     ac_dashdash=yes ;;
  863.  
  864.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  865.     ac_prev=bindir ;;
  866.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  867.     bindir=$ac_optarg ;;
  868.  
  869.   -build | --build | --buil | --bui | --bu)
  870.     ac_prev=build_alias ;;
  871.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  872.     build_alias=$ac_optarg ;;
  873.  
  874.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  875.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  876.     ac_prev=cache_file ;;
  877.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  878.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  879.     cache_file=$ac_optarg ;;
  880.  
  881.   --config-cache | -C)
  882.     cache_file=config.cache ;;
  883.  
  884.   -datadir | --datadir | --datadi | --datad)
  885.     ac_prev=datadir ;;
  886.   -datadir=* | --datadir=* | --datadi=* | --datad=*)
  887.     datadir=$ac_optarg ;;
  888.  
  889.   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  890.   | --dataroo | --dataro | --datar)
  891.     ac_prev=datarootdir ;;
  892.   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  893.   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  894.     datarootdir=$ac_optarg ;;
  895.  
  896.   -disable-* | --disable-*)
  897.     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  898.     # Reject names that are not valid shell variable names.
  899.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  900.       as_fn_error "invalid feature name: $ac_useropt"
  901.     ac_useropt_orig=$ac_useropt
  902.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  903.     case $ac_user_opts in
  904.       *"
  905. "enable_$ac_useropt"
  906. "*) ;;
  907.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  908.      ac_unrecognized_sep=', ';;
  909.     esac
  910.     eval enable_$ac_useropt=no ;;
  911.  
  912.   -docdir | --docdir | --docdi | --doc | --do)
  913.     ac_prev=docdir ;;
  914.   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  915.     docdir=$ac_optarg ;;
  916.  
  917.   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  918.     ac_prev=dvidir ;;
  919.   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  920.     dvidir=$ac_optarg ;;
  921.  
  922.   -enable-* | --enable-*)
  923.     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  924.     # Reject names that are not valid shell variable names.
  925.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  926.       as_fn_error "invalid feature name: $ac_useropt"
  927.     ac_useropt_orig=$ac_useropt
  928.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  929.     case $ac_user_opts in
  930.       *"
  931. "enable_$ac_useropt"
  932. "*) ;;
  933.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  934.      ac_unrecognized_sep=', ';;
  935.     esac
  936.     eval enable_$ac_useropt=\$ac_optarg ;;
  937.  
  938.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  939.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  940.   | --exec | --exe | --ex)
  941.     ac_prev=exec_prefix ;;
  942.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  943.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  944.   | --exec=* | --exe=* | --ex=*)
  945.     exec_prefix=$ac_optarg ;;
  946.  
  947.   -gas | --gas | --ga | --g)
  948.     # Obsolete; use --with-gas.
  949.     with_gas=yes ;;
  950.  
  951.   -help | --help | --hel | --he | -h)
  952.     ac_init_help=long ;;
  953.   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  954.     ac_init_help=recursive ;;
  955.   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  956.     ac_init_help=short ;;
  957.  
  958.   -host | --host | --hos | --ho)
  959.     ac_prev=host_alias ;;
  960.   -host=* | --host=* | --hos=* | --ho=*)
  961.     host_alias=$ac_optarg ;;
  962.  
  963.   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  964.     ac_prev=htmldir ;;
  965.   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  966.   | --ht=*)
  967.     htmldir=$ac_optarg ;;
  968.  
  969.   -includedir | --includedir | --includedi | --included | --include \
  970.   | --includ | --inclu | --incl | --inc)
  971.     ac_prev=includedir ;;
  972.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  973.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  974.     includedir=$ac_optarg ;;
  975.  
  976.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  977.     ac_prev=infodir ;;
  978.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  979.     infodir=$ac_optarg ;;
  980.  
  981.   -libdir | --libdir | --libdi | --libd)
  982.     ac_prev=libdir ;;
  983.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  984.     libdir=$ac_optarg ;;
  985.  
  986.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  987.   | --libexe | --libex | --libe)
  988.     ac_prev=libexecdir ;;
  989.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  990.   | --libexe=* | --libex=* | --libe=*)
  991.     libexecdir=$ac_optarg ;;
  992.  
  993.   -localedir | --localedir | --localedi | --localed | --locale)
  994.     ac_prev=localedir ;;
  995.   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  996.     localedir=$ac_optarg ;;
  997.  
  998.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  999.   | --localstate | --localstat | --localsta | --localst | --locals)
  1000.     ac_prev=localstatedir ;;
  1001.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1002.   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1003.     localstatedir=$ac_optarg ;;
  1004.  
  1005.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1006.     ac_prev=mandir ;;
  1007.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1008.     mandir=$ac_optarg ;;
  1009.  
  1010.   -nfp | --nfp | --nf)
  1011.     # Obsolete; use --without-fp.
  1012.     with_fp=no ;;
  1013.  
  1014.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1015.   | --no-cr | --no-c | -n)
  1016.     no_create=yes ;;
  1017.  
  1018.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1019.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1020.     no_recursion=yes ;;
  1021.  
  1022.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1023.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1024.   | --oldin | --oldi | --old | --ol | --o)
  1025.     ac_prev=oldincludedir ;;
  1026.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1027.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1028.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1029.     oldincludedir=$ac_optarg ;;
  1030.  
  1031.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1032.     ac_prev=prefix ;;
  1033.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1034.     prefix=$ac_optarg ;;
  1035.  
  1036.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1037.   | --program-pre | --program-pr | --program-p)
  1038.     ac_prev=program_prefix ;;
  1039.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1040.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1041.     program_prefix=$ac_optarg ;;
  1042.  
  1043.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1044.   | --program-suf | --program-su | --program-s)
  1045.     ac_prev=program_suffix ;;
  1046.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1047.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1048.     program_suffix=$ac_optarg ;;
  1049.  
  1050.   -program-transform-name | --program-transform-name \
  1051.   | --program-transform-nam | --program-transform-na \
  1052.   | --program-transform-n | --program-transform- \
  1053.   | --program-transform | --program-transfor \
  1054.   | --program-transfo | --program-transf \
  1055.   | --program-trans | --program-tran \
  1056.   | --progr-tra | --program-tr | --program-t)
  1057.     ac_prev=program_transform_name ;;
  1058.   -program-transform-name=* | --program-transform-name=* \
  1059.   | --program-transform-nam=* | --program-transform-na=* \
  1060.   | --program-transform-n=* | --program-transform-=* \
  1061.   | --program-transform=* | --program-transfor=* \
  1062.   | --program-transfo=* | --program-transf=* \
  1063.   | --program-trans=* | --program-tran=* \
  1064.   | --progr-tra=* | --program-tr=* | --program-t=*)
  1065.     program_transform_name=$ac_optarg ;;
  1066.  
  1067.   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1068.     ac_prev=pdfdir ;;
  1069.   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1070.     pdfdir=$ac_optarg ;;
  1071.  
  1072.   -psdir | --psdir | --psdi | --psd | --ps)
  1073.     ac_prev=psdir ;;
  1074.   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1075.     psdir=$ac_optarg ;;
  1076.  
  1077.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1078.   | -silent | --silent | --silen | --sile | --sil)
  1079.     silent=yes ;;
  1080.  
  1081.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1082.     ac_prev=sbindir ;;
  1083.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1084.   | --sbi=* | --sb=*)
  1085.     sbindir=$ac_optarg ;;
  1086.  
  1087.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1088.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1089.   | --sharedst | --shareds | --shared | --share | --shar \
  1090.   | --sha | --sh)
  1091.     ac_prev=sharedstatedir ;;
  1092.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1093.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1094.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1095.   | --sha=* | --sh=*)
  1096.     sharedstatedir=$ac_optarg ;;
  1097.  
  1098.   -site | --site | --sit)
  1099.     ac_prev=site ;;
  1100.   -site=* | --site=* | --sit=*)
  1101.     site=$ac_optarg ;;
  1102.  
  1103.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1104.     ac_prev=srcdir ;;
  1105.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1106.     srcdir=$ac_optarg ;;
  1107.  
  1108.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1109.   | --syscon | --sysco | --sysc | --sys | --sy)
  1110.     ac_prev=sysconfdir ;;
  1111.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1112.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1113.     sysconfdir=$ac_optarg ;;
  1114.  
  1115.   -target | --target | --targe | --targ | --tar | --ta | --t)
  1116.     ac_prev=target_alias ;;
  1117.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1118.     target_alias=$ac_optarg ;;
  1119.  
  1120.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1121.     verbose=yes ;;
  1122.  
  1123.   -version | --version | --versio | --versi | --vers | -V)
  1124.     ac_init_version=: ;;
  1125.  
  1126.   -with-* | --with-*)
  1127.     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1128.     # Reject names that are not valid shell variable names.
  1129.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1130.       as_fn_error "invalid package name: $ac_useropt"
  1131.     ac_useropt_orig=$ac_useropt
  1132.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1133.     case $ac_user_opts in
  1134.       *"
  1135. "with_$ac_useropt"
  1136. "*) ;;
  1137.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1138.      ac_unrecognized_sep=', ';;
  1139.     esac
  1140.     eval with_$ac_useropt=\$ac_optarg ;;
  1141.  
  1142.   -without-* | --without-*)
  1143.     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1144.     # Reject names that are not valid shell variable names.
  1145.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1146.       as_fn_error "invalid package name: $ac_useropt"
  1147.     ac_useropt_orig=$ac_useropt
  1148.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1149.     case $ac_user_opts in
  1150.       *"
  1151. "with_$ac_useropt"
  1152. "*) ;;
  1153.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1154.      ac_unrecognized_sep=', ';;
  1155.     esac
  1156.     eval with_$ac_useropt=no ;;
  1157.  
  1158.   --x)
  1159.     # Obsolete; use --with-x.
  1160.     with_x=yes ;;
  1161.  
  1162.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1163.   | --x-incl | --x-inc | --x-in | --x-i)
  1164.     ac_prev=x_includes ;;
  1165.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1166.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1167.     x_includes=$ac_optarg ;;
  1168.  
  1169.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1170.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1171.     ac_prev=x_libraries ;;
  1172.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1173.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1174.     x_libraries=$ac_optarg ;;
  1175.  
  1176.   -*) as_fn_error "unrecognized option: \`$ac_option'
  1177. Try \`$0 --help' for more information."
  1178.     ;;
  1179.  
  1180.   *=*)
  1181.     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1182.     # Reject names that are not valid shell variable names.
  1183.     case $ac_envvar in #(
  1184.       '' | [0-9]* | *[!_$as_cr_alnum]* )
  1185.       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1186.     esac
  1187.     eval $ac_envvar=\$ac_optarg
  1188.     export $ac_envvar ;;
  1189.  
  1190.   *)
  1191.     # FIXME: should be removed in autoconf 3.0.
  1192.     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1193.     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1194.       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1195.     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1196.     ;;
  1197.  
  1198.   esac
  1199. done
  1200.  
  1201. if test -n "$ac_prev"; then
  1202.   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1203.   as_fn_error "missing argument to $ac_option"
  1204. fi
  1205.  
  1206. if test -n "$ac_unrecognized_opts"; then
  1207.   case $enable_option_checking in
  1208.     no) ;;
  1209.     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1210.     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1211.   esac
  1212. fi
  1213.  
  1214. # Check all directory arguments for consistency.
  1215. for ac_var in    exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1216.         datadir sysconfdir sharedstatedir localstatedir includedir \
  1217.         oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1218.         libdir localedir mandir
  1219. do
  1220.   eval ac_val=\$$ac_var
  1221.   # Remove trailing slashes.
  1222.   case $ac_val in
  1223.     */ )
  1224.       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1225.       eval $ac_var=\$ac_val;;
  1226.   esac
  1227.   # Be sure to have absolute directory names.
  1228.   case $ac_val in
  1229.     [\\/$]* | ?:[\\/]* )  continue;;
  1230.     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1231.   esac
  1232.   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1233. done
  1234.  
  1235. # There might be people who depend on the old broken behavior: `$host'
  1236. # used to hold the argument of --host etc.
  1237. # FIXME: To remove some day.
  1238. build=$build_alias
  1239. host=$host_alias
  1240. target=$target_alias
  1241.  
  1242. # FIXME: To remove some day.
  1243. if test "x$host_alias" != x; then
  1244.   if test "x$build_alias" = x; then
  1245.     cross_compiling=maybe
  1246.     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1247.     If a cross compiler is detected then cross compile mode will be used." >&2
  1248.   elif test "x$build_alias" != "x$host_alias"; then
  1249.     cross_compiling=yes
  1250.   fi
  1251. fi
  1252.  
  1253. ac_tool_prefix=
  1254. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1255.  
  1256. test "$silent" = yes && exec 6>/dev/null
  1257.  
  1258.  
  1259. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1260. ac_ls_di=`ls -di .` &&
  1261. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1262.   as_fn_error "working directory cannot be determined"
  1263. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1264.   as_fn_error "pwd does not report name of working directory"
  1265.  
  1266.  
  1267. # Find the source files, if location was not specified.
  1268. if test -z "$srcdir"; then
  1269.   ac_srcdir_defaulted=yes
  1270.   # Try the directory containing this script, then the parent directory.
  1271.   ac_confdir=`$as_dirname -- "$as_myself" ||
  1272. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1273.      X"$as_myself" : 'X\(//\)[^/]' \| \
  1274.      X"$as_myself" : 'X\(//\)$' \| \
  1275.      X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1276. $as_echo X"$as_myself" |
  1277.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1278.         s//\1/
  1279.         q
  1280.       }
  1281.       /^X\(\/\/\)[^/].*/{
  1282.         s//\1/
  1283.         q
  1284.       }
  1285.       /^X\(\/\/\)$/{
  1286.         s//\1/
  1287.         q
  1288.       }
  1289.       /^X\(\/\).*/{
  1290.         s//\1/
  1291.         q
  1292.       }
  1293.       s/.*/./; q'`
  1294.   srcdir=$ac_confdir
  1295.   if test ! -r "$srcdir/$ac_unique_file"; then
  1296.     srcdir=..
  1297.   fi
  1298. else
  1299.   ac_srcdir_defaulted=no
  1300. fi
  1301. if test ! -r "$srcdir/$ac_unique_file"; then
  1302.   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1303.   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1304. fi
  1305. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1306. ac_abs_confdir=`(
  1307.     cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1308.     pwd)`
  1309. # When building in place, set srcdir=.
  1310. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1311.   srcdir=.
  1312. fi
  1313. # Remove unnecessary trailing slashes from srcdir.
  1314. # Double slashes in file names in object file debugging info
  1315. # mess up M-x gdb in Emacs.
  1316. case $srcdir in
  1317. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1318. esac
  1319. for ac_var in $ac_precious_vars; do
  1320.   eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1321.   eval ac_env_${ac_var}_value=\$${ac_var}
  1322.   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1323.   eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1324. done
  1325.  
  1326. #
  1327. # Report the --help message.
  1328. #
  1329. if test "$ac_init_help" = "long"; then
  1330.   # Omit some internal or obsolete options to make the list less imposing.
  1331.   # This message is too long to be a string in the A/UX 3.1 sh.
  1332.   cat <<_ACEOF
  1333. \`configure' configures this package to adapt to many kinds of systems.
  1334.  
  1335. Usage: $0 [OPTION]... [VAR=VALUE]...
  1336.  
  1337. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1338. VAR=VALUE.  See below for descriptions of some of the useful variables.
  1339.  
  1340. Defaults for the options are specified in brackets.
  1341.  
  1342. Configuration:
  1343.   -h, --help              display this help and exit
  1344.       --help=short        display options specific to this package
  1345.       --help=recursive    display the short help of all the included packages
  1346.   -V, --version           display version information and exit
  1347.   -q, --quiet, --silent   do not print \`checking...' messages
  1348.       --cache-file=FILE   cache test results in FILE [disabled]
  1349.   -C, --config-cache      alias for \`--cache-file=config.cache'
  1350.   -n, --no-create         do not create output files
  1351.       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  1352.  
  1353. Installation directories:
  1354.   --prefix=PREFIX         install architecture-independent files in PREFIX
  1355.                           @<:@@S|@ac_default_prefix@:>@
  1356.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  1357.                           @<:@PREFIX@:>@
  1358.  
  1359. By default, \`make install' will install all the files in
  1360. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  1361. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1362. for instance \`--prefix=\$HOME'.
  1363.  
  1364. For better control, use the options below.
  1365.  
  1366. Fine tuning of the installation directories:
  1367.   --bindir=DIR            user executables [EPREFIX/bin]
  1368.   --sbindir=DIR           system admin executables [EPREFIX/sbin]
  1369.   --libexecdir=DIR        program executables [EPREFIX/libexec]
  1370.   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  1371.   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  1372.   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  1373.   --libdir=DIR            object code libraries [EPREFIX/lib]
  1374.   --includedir=DIR        C header files [PREFIX/include]
  1375.   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  1376.   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  1377.   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  1378.   --infodir=DIR           info documentation [DATAROOTDIR/info]
  1379.   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  1380.   --mandir=DIR            man documentation [DATAROOTDIR/man]
  1381.   --docdir=DIR            documentation root @<:@DATAROOTDIR/doc/PACKAGE@:>@
  1382.   --htmldir=DIR           html documentation [DOCDIR]
  1383.   --dvidir=DIR            dvi documentation [DOCDIR]
  1384.   --pdfdir=DIR            pdf documentation [DOCDIR]
  1385.   --psdir=DIR             ps documentation [DOCDIR]
  1386. _ACEOF
  1387.  
  1388.   cat <<\_ACEOF
  1389.  
  1390. System types:
  1391.   --build=BUILD     configure for building on BUILD [guessed]
  1392.   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  1393. _ACEOF
  1394. fi
  1395.  
  1396. if test -n "$ac_init_help"; then
  1397.  
  1398.   cat <<\_ACEOF
  1399.  
  1400. Optional Features:
  1401.   --disable-option-checking  ignore unrecognized --enable/--with options
  1402.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  1403.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  1404.   --disable-thread-safety Disables thread safety in the client library
  1405.   --disable-server        Disables building of PVFS2 server
  1406.   --disable-karma-mem-usage-stats
  1407.                           Disables memory usage stats in karma
  1408.   --enable-bmi-only       Build only the BMI library
  1409.   --disable-perf-counters Disables pvfs2-server performance counters
  1410.   --enable-mmap-racache   **EXPERIMENTAL** Enables mmap-readahead in kernel 
  1411.                           interface
  1412.   --enable-trusted-connections
  1413.                           **EXPERIMENTAL** Enable connects only 
  1414.                           from trusted hosts/ports 
  1415.   --disable-karma         Disables optional gui.  (Enabled by default)
  1416.   --disable-static        Do not build static client library
  1417.   --enable-redhat24       Enable workaround for RedHat 2.4 kernel
  1418.   --enable-nptl-workaround
  1419.                           Enable workaround for buggy NPTL/Pthread libraries
  1420.   --disable-aio-threaded-callbacks
  1421.                           **EXPERIMENTAL** Disable use of AIO 
  1422.                           threaded callbacks
  1423.   --disable-kernel-aio    Forcibly disable kernel aio
  1424.   --enable-kernel-sendfile
  1425.                           **EXPERIMENTAL** Forcibly enable kernel sendfile
  1426.   --enable-threaded-kmod-helper
  1427.                           **EXPERIMENTAL** Use threads in the kernel 
  1428.                           helper application
  1429.   --enable-fast           Disable optional debugging, enable optimizations.
  1430.   --enable-fuse           **EXPERIMENTAL** Enable FUSE component
  1431.   --enable-strict         Turn on strict compiler warnings
  1432.   --enable-verbose-build  Enables full output during build process
  1433.   --enable-epoll          Enable use of epoll for TCP/IP polling 
  1434.                           (epoll is enabled by default, this option
  1435.               ensures no checking is done for x-compiling)
  1436.   --disable-epoll         Disable epoll, use poll instead
  1437.   --disable-segv-backtrace
  1438.                           Disables back traces in segfault signal handler
  1439.   --enable-shared         Build shared client library
  1440.   --enable-static-server  Builds the server static
  1441.  
  1442. Optional Packages:
  1443.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  1444.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  1445.   --with-openssl=<dir>    Build with openssl (default=/usr)
  1446.   --without-openssl       Don't build with openssl.
  1447.   --with-mtrace           Use mtrace (must set MALLOC_TRACE to output file)
  1448.   --with-berkdb-debug     Use berkeley db error reporting (if detected).
  1449.   --with-tau=path         Use TAU trace library installed in "path"
  1450.   --with-kernel=srcpath   Build pvfs2 kernel module against 2.6.x src
  1451.   --with-kernel24=srcpath Build pvfs2 kernel module against 2.4.x src
  1452.   --with-efence=<path>    Use electric fence for malloc debugging.
  1453.   --with-valgrind=<path>  Use valgrind annotations for debugging.
  1454.   --with-db=<dir>         Location of installed DB package (default=/usr)
  1455.   --without-bmi-tcp       Disable BMI TCP method
  1456.   --with-gm=<dir>         Location of the GM install (default no GM)
  1457.   --with-gm-includes=<dir>
  1458.                           Location of the GM includes
  1459.   --with-gm-libs=<dir>    Location of the GM libraries
  1460.   --with-mx=<dir>         Location of the MX install (default no MX)
  1461.   --with-mx-includes=<dir>
  1462.                           Location of the MX includes
  1463.   --with-mx-libs=<dir>    Location of the MX libraries
  1464.   --with-ib=<dir>         Location of the IB installation (default no IB)
  1465.   --with-ib-includes=<dir>
  1466.                           Location of the IB includes
  1467.   --with-ib-libs=<dir>    Location of the IB libraries
  1468.   --with-openib=<dir>     Location of the OpenIB install (default no OpenIB)
  1469.   --with-openib-includes=<dir>
  1470.                           Location of the OpenIB includes
  1471.   --with-openib-libs=<dir>
  1472.                           Location of the OpenIB libraries
  1473.   --with-portals=<dir>   Location of the Portals install (default no Portals)
  1474.   --with-portals-includes=<dir>
  1475.                           Extra CFLAGS to specify Portals includes
  1476.   --with-portals-libs=<dir>
  1477.                           Extra LIBS to link Portals libraries
  1478.   --with-zoid=<dir>         Location of the ZOID tree (default no ZOID)
  1479.  
  1480. Some influential environment variables:
  1481.   CC          C compiler command
  1482.   CFLAGS      C compiler flags
  1483.   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  1484.               nonstandard directory <lib dir>
  1485.   LIBS        libraries to pass to the linker, e.g. -l<library>
  1486.   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1487.               you have headers in a nonstandard directory <include dir>
  1488.   CPP         C preprocessor
  1489.  
  1490. Use these variables to override the choices made by `configure' or to help
  1491. it to find libraries and programs with nonstandard names/locations.
  1492.  
  1493. Report bugs to the package provider.
  1494. _ACEOF
  1495. ac_status=$?
  1496. fi
  1497.  
  1498. if test "$ac_init_help" = "recursive"; then
  1499.   # If there are subdirs, report their specific --help.
  1500.   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1501.     test -d "$ac_dir" ||
  1502.       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1503.       continue
  1504.     ac_builddir=.
  1505.  
  1506. case "$ac_dir" in
  1507. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1508. *)
  1509.   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1510.   # A ".." for each directory in $ac_dir_suffix.
  1511.   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1512.   case $ac_top_builddir_sub in
  1513.   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1514.   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1515.   esac ;;
  1516. esac
  1517. ac_abs_top_builddir=$ac_pwd
  1518. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1519. # for backward compatibility:
  1520. ac_top_builddir=$ac_top_build_prefix
  1521.  
  1522. case $srcdir in
  1523.   .)  # We are building in place.
  1524.     ac_srcdir=.
  1525.     ac_top_srcdir=$ac_top_builddir_sub
  1526.     ac_abs_top_srcdir=$ac_pwd ;;
  1527.   [\\/]* | ?:[\\/]* )  # Absolute name.
  1528.     ac_srcdir=$srcdir$ac_dir_suffix;
  1529.     ac_top_srcdir=$srcdir
  1530.     ac_abs_top_srcdir=$srcdir ;;
  1531.   *) # Relative name.
  1532.     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1533.     ac_top_srcdir=$ac_top_build_prefix$srcdir
  1534.     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1535. esac
  1536. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1537.  
  1538.     cd "$ac_dir" || { ac_status=$?; continue; }
  1539.     # Check for guested configure.
  1540.     if test -f "$ac_srcdir/configure.gnu"; then
  1541.       echo &&
  1542.       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1543.     elif test -f "$ac_srcdir/configure"; then
  1544.       echo &&
  1545.       $SHELL "$ac_srcdir/configure" --help=recursive
  1546.     else
  1547.       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1548.     fi || ac_status=$?
  1549.     cd "$ac_pwd" || { ac_status=$?; break; }
  1550.   done
  1551. fi
  1552.  
  1553. test -n "$ac_init_help" && exit $ac_status
  1554. if $ac_init_version; then
  1555.   cat <<\_ACEOF
  1556. configure
  1557. generated by GNU Autoconf 2.65
  1558.  
  1559. Copyright (C) 2009 Free Software Foundation, Inc.
  1560. This configure script is free software; the Free Software Foundation
  1561. gives unlimited permission to copy, distribute and modify it.
  1562. _ACEOF
  1563.   exit
  1564. fi
  1565.  
  1566. ## ------------------------ ##
  1567. ## Autoconf initialization. ##
  1568. ## ------------------------ ##
  1569.  
  1570. @%:@ ac_fn_c_try_compile LINENO
  1571. @%:@ --------------------------
  1572. @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
  1573. ac_fn_c_try_compile ()
  1574. {
  1575.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1576.   rm -f conftest.$ac_objext
  1577.   if { { ac_try="$ac_compile"
  1578. case "(($ac_try" in
  1579.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1580.   *) ac_try_echo=$ac_try;;
  1581. esac
  1582. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1583. $as_echo "$ac_try_echo"; } >&5
  1584.   (eval "$ac_compile") 2>conftest.err
  1585.   ac_status=$?
  1586.   if test -s conftest.err; then
  1587.     grep -v '^ *+' conftest.err >conftest.er1
  1588.     cat conftest.er1 >&5
  1589.     mv -f conftest.er1 conftest.err
  1590.   fi
  1591.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1592.   test $ac_status = 0; } && {
  1593.      test -z "$ac_c_werror_flag" ||
  1594.      test ! -s conftest.err
  1595.        } && test -s conftest.$ac_objext; then :
  1596.   ac_retval=0
  1597. else
  1598.   $as_echo "$as_me: failed program was:" >&5
  1599. sed 's/^/| /' conftest.$ac_ext >&5
  1600.  
  1601.     ac_retval=1
  1602. fi
  1603.   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1604.   as_fn_set_status $ac_retval
  1605.  
  1606. } @%:@ ac_fn_c_try_compile
  1607.  
  1608. @%:@ ac_fn_c_try_cpp LINENO
  1609. @%:@ ----------------------
  1610. @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
  1611. ac_fn_c_try_cpp ()
  1612. {
  1613.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1614.   if { { ac_try="$ac_cpp conftest.$ac_ext"
  1615. case "(($ac_try" in
  1616.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1617.   *) ac_try_echo=$ac_try;;
  1618. esac
  1619. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1620. $as_echo "$ac_try_echo"; } >&5
  1621.   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1622.   ac_status=$?
  1623.   if test -s conftest.err; then
  1624.     grep -v '^ *+' conftest.err >conftest.er1
  1625.     cat conftest.er1 >&5
  1626.     mv -f conftest.er1 conftest.err
  1627.   fi
  1628.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1629.   test $ac_status = 0; } >/dev/null && {
  1630.      test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1631.      test ! -s conftest.err
  1632.        }; then :
  1633.   ac_retval=0
  1634. else
  1635.   $as_echo "$as_me: failed program was:" >&5
  1636. sed 's/^/| /' conftest.$ac_ext >&5
  1637.  
  1638.     ac_retval=1
  1639. fi
  1640.   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1641.   as_fn_set_status $ac_retval
  1642.  
  1643. } @%:@ ac_fn_c_try_cpp
  1644.  
  1645. @%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1646. @%:@ -------------------------------------------------------
  1647. @%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1648. @%:@ the include files in INCLUDES and setting the cache variable VAR
  1649. @%:@ accordingly.
  1650. ac_fn_c_check_header_mongrel ()
  1651. {
  1652.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1653.   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1654.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1655. $as_echo_n "checking for $2... " >&6; }
  1656. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1657.   $as_echo_n "(cached) " >&6
  1658. fi
  1659. eval ac_res=\$$3
  1660.            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1661. $as_echo "$ac_res" >&6; }
  1662. else
  1663.   # Is the header compilable?
  1664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1665. $as_echo_n "checking $2 usability... " >&6; }
  1666. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1667. /* end confdefs.h.  */
  1668. $4
  1669. @%:@include <$2>
  1670. _ACEOF
  1671. if ac_fn_c_try_compile "$LINENO"; then :
  1672.   ac_header_compiler=yes
  1673. else
  1674.   ac_header_compiler=no
  1675. fi
  1676. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1678. $as_echo "$ac_header_compiler" >&6; }
  1679.  
  1680. # Is the header present?
  1681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1682. $as_echo_n "checking $2 presence... " >&6; }
  1683. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1684. /* end confdefs.h.  */
  1685. @%:@include <$2>
  1686. _ACEOF
  1687. if ac_fn_c_try_cpp "$LINENO"; then :
  1688.   ac_header_preproc=yes
  1689. else
  1690.   ac_header_preproc=no
  1691. fi
  1692. rm -f conftest.err conftest.$ac_ext
  1693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1694. $as_echo "$ac_header_preproc" >&6; }
  1695.  
  1696. # So?  What about this header?
  1697. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1698.   yes:no: )
  1699.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1700. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1701.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1702. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1703.     ;;
  1704.   no:yes:* )
  1705.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1706. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1707.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
  1708. $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
  1709.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1710. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1711.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
  1712. $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
  1713.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1714. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1715.     ;;
  1716. esac
  1717.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1718. $as_echo_n "checking for $2... " >&6; }
  1719. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1720.   $as_echo_n "(cached) " >&6
  1721. else
  1722.   eval "$3=\$ac_header_compiler"
  1723. fi
  1724. eval ac_res=\$$3
  1725.            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1726. $as_echo "$ac_res" >&6; }
  1727. fi
  1728.   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1729.  
  1730. } @%:@ ac_fn_c_check_header_mongrel
  1731.  
  1732. @%:@ ac_fn_c_try_run LINENO
  1733. @%:@ ----------------------
  1734. @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
  1735. @%:@ that executables *can* be run.
  1736. ac_fn_c_try_run ()
  1737. {
  1738.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1739.   if { { ac_try="$ac_link"
  1740. case "(($ac_try" in
  1741.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1742.   *) ac_try_echo=$ac_try;;
  1743. esac
  1744. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1745. $as_echo "$ac_try_echo"; } >&5
  1746.   (eval "$ac_link") 2>&5
  1747.   ac_status=$?
  1748.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1749.   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1750.   { { case "(($ac_try" in
  1751.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1752.   *) ac_try_echo=$ac_try;;
  1753. esac
  1754. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1755. $as_echo "$ac_try_echo"; } >&5
  1756.   (eval "$ac_try") 2>&5
  1757.   ac_status=$?
  1758.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1759.   test $ac_status = 0; }; }; then :
  1760.   ac_retval=0
  1761. else
  1762.   $as_echo "$as_me: program exited with status $ac_status" >&5
  1763.        $as_echo "$as_me: failed program was:" >&5
  1764. sed 's/^/| /' conftest.$ac_ext >&5
  1765.  
  1766.        ac_retval=$ac_status
  1767. fi
  1768.   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1769.   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1770.   as_fn_set_status $ac_retval
  1771.  
  1772. } @%:@ ac_fn_c_try_run
  1773.  
  1774. @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1775. @%:@ -------------------------------------------------------
  1776. @%:@ Tests whether HEADER exists and can be compiled using the include files in
  1777. @%:@ INCLUDES, setting the cache variable VAR accordingly.
  1778. ac_fn_c_check_header_compile ()
  1779. {
  1780.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1781.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1782. $as_echo_n "checking for $2... " >&6; }
  1783. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1784.   $as_echo_n "(cached) " >&6
  1785. else
  1786.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1787. /* end confdefs.h.  */
  1788. $4
  1789. @%:@include <$2>
  1790. _ACEOF
  1791. if ac_fn_c_try_compile "$LINENO"; then :
  1792.   eval "$3=yes"
  1793. else
  1794.   eval "$3=no"
  1795. fi
  1796. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1797. fi
  1798. eval ac_res=\$$3
  1799.            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1800. $as_echo "$ac_res" >&6; }
  1801.   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1802.  
  1803. } @%:@ ac_fn_c_check_header_compile
  1804.  
  1805. @%:@ ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1806. @%:@ --------------------------------------------
  1807. @%:@ Tries to find the compile-time value of EXPR in a program that includes
  1808. @%:@ INCLUDES, setting VAR accordingly. Returns whether the value could be
  1809. @%:@ computed
  1810. ac_fn_c_compute_int ()
  1811. {
  1812.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1813.   if test "$cross_compiling" = yes; then
  1814.     # Depending upon the size, compute the lo and hi bounds.
  1815. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1816. /* end confdefs.h.  */
  1817. $4
  1818. int
  1819. main ()
  1820. {
  1821. static int test_array @<:@1 - 2 * !(($2) >= 0)@:>@;
  1822. test_array @<:@0@:>@ = 0
  1823.  
  1824.   ;
  1825.   return 0;
  1826. }
  1827. _ACEOF
  1828. if ac_fn_c_try_compile "$LINENO"; then :
  1829.   ac_lo=0 ac_mid=0
  1830.   while :; do
  1831.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1832. /* end confdefs.h.  */
  1833. $4
  1834. int
  1835. main ()
  1836. {
  1837. static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
  1838. test_array @<:@0@:>@ = 0
  1839.  
  1840.   ;
  1841.   return 0;
  1842. }
  1843. _ACEOF
  1844. if ac_fn_c_try_compile "$LINENO"; then :
  1845.   ac_hi=$ac_mid; break
  1846. else
  1847.   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1848.             if test $ac_lo -le $ac_mid; then
  1849.               ac_lo= ac_hi=
  1850.               break
  1851.             fi
  1852.             as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1853. fi
  1854. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1855.   done
  1856. else
  1857.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1858. /* end confdefs.h.  */
  1859. $4
  1860. int
  1861. main ()
  1862. {
  1863. static int test_array @<:@1 - 2 * !(($2) < 0)@:>@;
  1864. test_array @<:@0@:>@ = 0
  1865.  
  1866.   ;
  1867.   return 0;
  1868. }
  1869. _ACEOF
  1870. if ac_fn_c_try_compile "$LINENO"; then :
  1871.   ac_hi=-1 ac_mid=-1
  1872.   while :; do
  1873.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1874. /* end confdefs.h.  */
  1875. $4
  1876. int
  1877. main ()
  1878. {
  1879. static int test_array @<:@1 - 2 * !(($2) >= $ac_mid)@:>@;
  1880. test_array @<:@0@:>@ = 0
  1881.  
  1882.   ;
  1883.   return 0;
  1884. }
  1885. _ACEOF
  1886. if ac_fn_c_try_compile "$LINENO"; then :
  1887.   ac_lo=$ac_mid; break
  1888. else
  1889.   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1890.             if test $ac_mid -le $ac_hi; then
  1891.               ac_lo= ac_hi=
  1892.               break
  1893.             fi
  1894.             as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1895. fi
  1896. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1897.   done
  1898. else
  1899.   ac_lo= ac_hi=
  1900. fi
  1901. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1902. fi
  1903. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1904. # Binary search between lo and hi bounds.
  1905. while test "x$ac_lo" != "x$ac_hi"; do
  1906.   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1907.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1908. /* end confdefs.h.  */
  1909. $4
  1910. int
  1911. main ()
  1912. {
  1913. static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
  1914. test_array @<:@0@:>@ = 0
  1915.  
  1916.   ;
  1917.   return 0;
  1918. }
  1919. _ACEOF
  1920. if ac_fn_c_try_compile "$LINENO"; then :
  1921.   ac_hi=$ac_mid
  1922. else
  1923.   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1924. fi
  1925. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1926. done
  1927. case $ac_lo in @%:@((
  1928. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1929. '') ac_retval=1 ;;
  1930. esac
  1931.   else
  1932.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1933. /* end confdefs.h.  */
  1934. $4
  1935. static long int longval () { return $2; }
  1936. static unsigned long int ulongval () { return $2; }
  1937. @%:@include <stdio.h>
  1938. @%:@include <stdlib.h>
  1939. int
  1940. main ()
  1941. {
  1942.  
  1943.   FILE *f = fopen ("conftest.val", "w");
  1944.   if (! f)
  1945.     return 1;
  1946.   if (($2) < 0)
  1947.     {
  1948.       long int i = longval ();
  1949.       if (i != ($2))
  1950.     return 1;
  1951.       fprintf (f, "%ld", i);
  1952.     }
  1953.   else
  1954.     {
  1955.       unsigned long int i = ulongval ();
  1956.       if (i != ($2))
  1957.     return 1;
  1958.       fprintf (f, "%lu", i);
  1959.     }
  1960.   /* Do not output a trailing newline, as this causes \r\n confusion
  1961.      on some platforms.  */
  1962.   return ferror (f) || fclose (f) != 0;
  1963.  
  1964.   ;
  1965.   return 0;
  1966. }
  1967. _ACEOF
  1968. if ac_fn_c_try_run "$LINENO"; then :
  1969.   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1970. else
  1971.   ac_retval=1
  1972. fi
  1973. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1974.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  1975. rm -f conftest.val
  1976.  
  1977.   fi
  1978.   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1979.   as_fn_set_status $ac_retval
  1980.  
  1981. } @%:@ ac_fn_c_compute_int
  1982.  
  1983. @%:@ ac_fn_c_try_link LINENO
  1984. @%:@ -----------------------
  1985. @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
  1986. ac_fn_c_try_link ()
  1987. {
  1988.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1989.   rm -f conftest.$ac_objext conftest$ac_exeext
  1990.   if { { ac_try="$ac_link"
  1991. case "(($ac_try" in
  1992.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1993.   *) ac_try_echo=$ac_try;;
  1994. esac
  1995. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1996. $as_echo "$ac_try_echo"; } >&5
  1997.   (eval "$ac_link") 2>conftest.err
  1998.   ac_status=$?
  1999.   if test -s conftest.err; then
  2000.     grep -v '^ *+' conftest.err >conftest.er1
  2001.     cat conftest.er1 >&5
  2002.     mv -f conftest.er1 conftest.err
  2003.   fi
  2004.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2005.   test $ac_status = 0; } && {
  2006.      test -z "$ac_c_werror_flag" ||
  2007.      test ! -s conftest.err
  2008.        } && test -s conftest$ac_exeext && {
  2009.      test "$cross_compiling" = yes ||
  2010.      $as_test_x conftest$ac_exeext
  2011.        }; then :
  2012.   ac_retval=0
  2013. else
  2014.   $as_echo "$as_me: failed program was:" >&5
  2015. sed 's/^/| /' conftest.$ac_ext >&5
  2016.  
  2017.     ac_retval=1
  2018. fi
  2019.   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2020.   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2021.   # interfere with the next link command; also delete a directory that is
  2022.   # left behind by Apple's compiler.  We do this before executing the actions.
  2023.   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2024.   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2025.   as_fn_set_status $ac_retval
  2026.  
  2027. } @%:@ ac_fn_c_try_link
  2028.  
  2029. @%:@ ac_fn_c_check_func LINENO FUNC VAR
  2030. @%:@ ----------------------------------
  2031. @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
  2032. ac_fn_c_check_func ()
  2033. {
  2034.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2035.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2036. $as_echo_n "checking for $2... " >&6; }
  2037. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2038.   $as_echo_n "(cached) " >&6
  2039. else
  2040.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2041. /* end confdefs.h.  */
  2042. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  2043.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  2044. #define $2 innocuous_$2
  2045.  
  2046. /* System header to define __stub macros and hopefully few prototypes,
  2047.     which can conflict with char $2 (); below.
  2048.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2049.     <limits.h> exists even on freestanding compilers.  */
  2050.  
  2051. #ifdef __STDC__
  2052. # include <limits.h>
  2053. #else
  2054. # include <assert.h>
  2055. #endif
  2056.  
  2057. #undef $2
  2058.  
  2059. /* Override any GCC internal prototype to avoid an error.
  2060.    Use char because int might match the return type of a GCC
  2061.    builtin and then its argument prototype would still apply.  */
  2062. #ifdef __cplusplus
  2063. extern "C"
  2064. #endif
  2065. char $2 ();
  2066. /* The GNU C library defines this for functions which it implements
  2067.     to always fail with ENOSYS.  Some functions are actually named
  2068.     something starting with __ and the normal name is an alias.  */
  2069. #if defined __stub_$2 || defined __stub___$2
  2070. choke me
  2071. #endif
  2072.  
  2073. int
  2074. main ()
  2075. {
  2076. return $2 ();
  2077.   ;
  2078.   return 0;
  2079. }
  2080. _ACEOF
  2081. if ac_fn_c_try_link "$LINENO"; then :
  2082.   eval "$3=yes"
  2083. else
  2084.   eval "$3=no"
  2085. fi
  2086. rm -f core conftest.err conftest.$ac_objext \
  2087.     conftest$ac_exeext conftest.$ac_ext
  2088. fi
  2089. eval ac_res=\$$3
  2090.            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2091. $as_echo "$ac_res" >&6; }
  2092.   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2093.  
  2094. } @%:@ ac_fn_c_check_func
  2095. cat >config.log <<_ACEOF
  2096. This file contains any messages produced by compilers while
  2097. running configure, to aid debugging if configure makes a mistake.
  2098.  
  2099. It was created by $as_me, which was
  2100. generated by GNU Autoconf 2.65.  Invocation command line was
  2101.  
  2102.   $ $0 $@
  2103.  
  2104. _ACEOF
  2105. exec 5>>config.log
  2106. {
  2107. cat <<_ASUNAME
  2108. ## --------- ##
  2109. ## Platform. ##
  2110. ## --------- ##
  2111.  
  2112. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2113. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2114. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2115. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2116. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2117.  
  2118. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2119. /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  2120.  
  2121. /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  2122. /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  2123. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2124. /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
  2125. /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  2126. /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  2127. /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  2128.  
  2129. _ASUNAME
  2130.  
  2131. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2132. for as_dir in $PATH
  2133. do
  2134.   IFS=$as_save_IFS
  2135.   test -z "$as_dir" && as_dir=.
  2136.     $as_echo "PATH: $as_dir"
  2137.   done
  2138. IFS=$as_save_IFS
  2139.  
  2140. } >&5
  2141.  
  2142. cat >&5 <<_ACEOF
  2143.  
  2144.  
  2145. ## ----------- ##
  2146. ## Core tests. ##
  2147. ## ----------- ##
  2148.  
  2149. _ACEOF
  2150.  
  2151.  
  2152. # Keep a trace of the command line.
  2153. # Strip out --no-create and --no-recursion so they do not pile up.
  2154. # Strip out --silent because we don't want to record it for future runs.
  2155. # Also quote any args containing shell meta-characters.
  2156. # Make two passes to allow for proper duplicate-argument suppression.
  2157. ac_configure_args=
  2158. ac_configure_args0=
  2159. ac_configure_args1=
  2160. ac_must_keep_next=false
  2161. for ac_pass in 1 2
  2162. do
  2163.   for ac_arg
  2164.   do
  2165.     case $ac_arg in
  2166.     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2167.     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2168.     | -silent | --silent | --silen | --sile | --sil)
  2169.       continue ;;
  2170.     *\'*)
  2171.       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2172.     esac
  2173.     case $ac_pass in
  2174.     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2175.     2)
  2176.       as_fn_append ac_configure_args1 " '$ac_arg'"
  2177.       if test $ac_must_keep_next = true; then
  2178.     ac_must_keep_next=false # Got value, back to normal.
  2179.       else
  2180.     case $ac_arg in
  2181.       *=* | --config-cache | -C | -disable-* | --disable-* \
  2182.       | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2183.       | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2184.       | -with-* | --with-* | -without-* | --without-* | --x)
  2185.         case "$ac_configure_args0 " in
  2186.           "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2187.         esac
  2188.         ;;
  2189.       -* ) ac_must_keep_next=true ;;
  2190.     esac
  2191.       fi
  2192.       as_fn_append ac_configure_args " '$ac_arg'"
  2193.       ;;
  2194.     esac
  2195.   done
  2196. done
  2197. { ac_configure_args0=; unset ac_configure_args0;}
  2198. { ac_configure_args1=; unset ac_configure_args1;}
  2199.  
  2200. # When interrupted or exit'd, cleanup temporary files, and complete
  2201. # config.log.  We remove comments because anyway the quotes in there
  2202. # would cause problems or look ugly.
  2203. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2204. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2205. trap 'exit_status=$?
  2206.   # Save into config.log some information that might help in debugging.
  2207.   {
  2208.     echo
  2209.  
  2210.     cat <<\_ASBOX
  2211. ## ---------------- ##
  2212. ## Cache variables. ##
  2213. ## ---------------- ##
  2214. _ASBOX
  2215.     echo
  2216.     # The following way of writing the cache mishandles newlines in values,
  2217. (
  2218.   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2219.     eval ac_val=\$$ac_var
  2220.     case $ac_val in #(
  2221.     *${as_nl}*)
  2222.       case $ac_var in #(
  2223.       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2224. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2225.       esac
  2226.       case $ac_var in #(
  2227.       _ | IFS | as_nl) ;; #(
  2228.       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2229.       *) { eval $ac_var=; unset $ac_var;} ;;
  2230.       esac ;;
  2231.     esac
  2232.   done
  2233.   (set) 2>&1 |
  2234.     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2235.     *${as_nl}ac_space=\ *)
  2236.       sed -n \
  2237.     "s/'\''/'\''\\\\'\'''\''/g;
  2238.       s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2239.       ;; #(
  2240.     *)
  2241.       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2242.       ;;
  2243.     esac |
  2244.     sort
  2245. )
  2246.     echo
  2247.  
  2248.     cat <<\_ASBOX
  2249. ## ----------------- ##
  2250. ## Output variables. ##
  2251. ## ----------------- ##
  2252. _ASBOX
  2253.     echo
  2254.     for ac_var in $ac_subst_vars
  2255.     do
  2256.       eval ac_val=\$$ac_var
  2257.       case $ac_val in
  2258.       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2259.       esac
  2260.       $as_echo "$ac_var='\''$ac_val'\''"
  2261.     done | sort
  2262.     echo
  2263.  
  2264.     if test -n "$ac_subst_files"; then
  2265.       cat <<\_ASBOX
  2266. ## ------------------- ##
  2267. ## File substitutions. ##
  2268. ## ------------------- ##
  2269. _ASBOX
  2270.       echo
  2271.       for ac_var in $ac_subst_files
  2272.       do
  2273.     eval ac_val=\$$ac_var
  2274.     case $ac_val in
  2275.     *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2276.     esac
  2277.     $as_echo "$ac_var='\''$ac_val'\''"
  2278.       done | sort
  2279.       echo
  2280.     fi
  2281.  
  2282.     if test -s confdefs.h; then
  2283.       cat <<\_ASBOX
  2284. ## ----------- ##
  2285. ## confdefs.h. ##
  2286. ## ----------- ##
  2287. _ASBOX
  2288.       echo
  2289.       cat confdefs.h
  2290.       echo
  2291.     fi
  2292.     test "$ac_signal" != 0 &&
  2293.       $as_echo "$as_me: caught signal $ac_signal"
  2294.     $as_echo "$as_me: exit $exit_status"
  2295.   } >&5
  2296.   rm -f core *.core core.conftest.* &&
  2297.     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2298.     exit $exit_status
  2299. ' 0
  2300. for ac_signal in 1 2 13 15; do
  2301.   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2302. done
  2303. ac_signal=0
  2304.  
  2305. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2306. rm -f -r conftest* confdefs.h
  2307.  
  2308. $as_echo "/* confdefs.h */" > confdefs.h
  2309.  
  2310. # Predefined preprocessor variables.
  2311.  
  2312. cat >>confdefs.h <<_ACEOF
  2313. @%:@define PACKAGE_NAME "$PACKAGE_NAME"
  2314. _ACEOF
  2315.  
  2316. cat >>confdefs.h <<_ACEOF
  2317. @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2318. _ACEOF
  2319.  
  2320. cat >>confdefs.h <<_ACEOF
  2321. @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
  2322. _ACEOF
  2323.  
  2324. cat >>confdefs.h <<_ACEOF
  2325. @%:@define PACKAGE_STRING "$PACKAGE_STRING"
  2326. _ACEOF
  2327.  
  2328. cat >>confdefs.h <<_ACEOF
  2329. @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2330. _ACEOF
  2331.  
  2332. cat >>confdefs.h <<_ACEOF
  2333. @%:@define PACKAGE_URL "$PACKAGE_URL"
  2334. _ACEOF
  2335.  
  2336.  
  2337. # Let the site file select an alternate cache file if it wants to.
  2338. # Prefer an explicitly selected file to automatically selected ones.
  2339. ac_site_file1=NONE
  2340. ac_site_file2=NONE
  2341. if test -n "$CONFIG_SITE"; then
  2342.   ac_site_file1=$CONFIG_SITE
  2343. elif test "x$prefix" != xNONE; then
  2344.   ac_site_file1=$prefix/share/config.site
  2345.   ac_site_file2=$prefix/etc/config.site
  2346. else
  2347.   ac_site_file1=$ac_default_prefix/share/config.site
  2348.   ac_site_file2=$ac_default_prefix/etc/config.site
  2349. fi
  2350. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2351. do
  2352.   test "x$ac_site_file" = xNONE && continue
  2353.   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2354.     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2355. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2356.     sed 's/^/| /' "$ac_site_file" >&5
  2357.     . "$ac_site_file"
  2358.   fi
  2359. done
  2360.  
  2361. if test -r "$cache_file"; then
  2362.   # Some versions of bash will fail to source /dev/null (special files
  2363.   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
  2364.   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2365.     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2366. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2367.     case $cache_file in
  2368.       [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2369.       *)                      . "./$cache_file";;
  2370.     esac
  2371.   fi
  2372. else
  2373.   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2374. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2375.   >$cache_file
  2376. fi
  2377.  
  2378. # Check that the precious variables saved in the cache have kept the same
  2379. # value.
  2380. ac_cache_corrupted=false
  2381. for ac_var in $ac_precious_vars; do
  2382.   eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2383.   eval ac_new_set=\$ac_env_${ac_var}_set
  2384.   eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2385.   eval ac_new_val=\$ac_env_${ac_var}_value
  2386.   case $ac_old_set,$ac_new_set in
  2387.     set,)
  2388.       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2389. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2390.       ac_cache_corrupted=: ;;
  2391.     ,set)
  2392.       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2393. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2394.       ac_cache_corrupted=: ;;
  2395.     ,);;
  2396.     *)
  2397.       if test "x$ac_old_val" != "x$ac_new_val"; then
  2398.     # differences in whitespace do not lead to failure.
  2399.     ac_old_val_w=`echo x $ac_old_val`
  2400.     ac_new_val_w=`echo x $ac_new_val`
  2401.     if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2402.       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2403. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2404.       ac_cache_corrupted=:
  2405.     else
  2406.       { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2407. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2408.       eval $ac_var=\$ac_old_val
  2409.     fi
  2410.     { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
  2411. $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
  2412.     { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
  2413. $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
  2414.       fi;;
  2415.   esac
  2416.   # Pass precious variables to config.status.
  2417.   if test "$ac_new_set" = set; then
  2418.     case $ac_new_val in
  2419.     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2420.     *) ac_arg=$ac_var=$ac_new_val ;;
  2421.     esac
  2422.     case " $ac_configure_args " in
  2423.       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  2424.       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2425.     esac
  2426.   fi
  2427. done
  2428. if $ac_cache_corrupted; then
  2429.   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2430. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2431.   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2432. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2433.   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2434. fi
  2435. ## -------------------- ##
  2436. ## Main body of script. ##
  2437. ## -------------------- ##
  2438.  
  2439. ac_ext=c
  2440. ac_cpp='$CPP $CPPFLAGS'
  2441. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2442. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2443. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2444.  
  2445.  
  2446.  
  2447. ac_aux_dir=
  2448. for ac_dir in maint/config "$srcdir"/maint/config; do
  2449.   for ac_t in install-sh install.sh shtool; do
  2450.     if test -f "$ac_dir/$ac_t"; then
  2451.       ac_aux_dir=$ac_dir
  2452.       ac_install_sh="$ac_aux_dir/$ac_t -c"
  2453.       break 2
  2454.     fi
  2455.   done
  2456. done
  2457. if test -z "$ac_aux_dir"; then
  2458.   as_fn_error "cannot find install-sh, install.sh, or shtool in maint/config \"$srcdir\"/maint/config" "$LINENO" 5
  2459. fi
  2460.  
  2461. # These three variables are undocumented and unsupported,
  2462. # and are intended to be withdrawn in a future Autoconf release.
  2463. # They can cause serious problems if a builder's source tree is in a directory
  2464. # whose full name contains unusual characters.
  2465. ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
  2466. ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
  2467. ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
  2468.  
  2469.  
  2470.  
  2471. CONFIGURE_TIME=`date -u +"%Y-%m-%d-%H%M%S"`
  2472. PVFS2_VERSION_MAJOR=2
  2473. PVFS2_VERSION_MINOR=8
  2474. PVFS2_VERSION_SUB=3
  2475. PVFS2_VERSION_RELEASE="orangefs-20110323"
  2476. #PVFS2_PRE=""
  2477. #PVFS2_VERSION_PRE="orangefs-$CONFIGURE_TIME"
  2478.  
  2479. PVFS2_VERSION=$PVFS2_VERSION_MAJOR.$PVFS2_VERSION_MINOR.$PVFS2_VERSION_SUB-$PVFS2_VERSION_RELEASE
  2480.  
  2481.  
  2482. cat >>confdefs.h <<_ACEOF
  2483. @%:@define PVFS2_VERSION_MAJOR $PVFS2_VERSION_MAJOR
  2484. _ACEOF
  2485.  
  2486.  
  2487. cat >>confdefs.h <<_ACEOF
  2488. @%:@define PVFS2_VERSION_MINOR $PVFS2_VERSION_MINOR
  2489. _ACEOF
  2490.  
  2491.  
  2492. cat >>confdefs.h <<_ACEOF
  2493. @%:@define PVFS2_VERSION_SUB $PVFS2_VERSION_SUB
  2494. _ACEOF
  2495.  
  2496. #AC_DEFINE_UNQUOTED(PVFS2_VERSION_RELEASE, $PVFS2_VERSION_RELEASE, release version number)
  2497.  
  2498.  
  2499.  
  2500. #AC_SUBST(PVFS2_VERSION_RELEASE)
  2501.  
  2502.  
  2503. # Make sure we can run config.sub.
  2504. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2505.   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2506.  
  2507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2508. $as_echo_n "checking build system type... " >&6; }
  2509. if test "${ac_cv_build+set}" = set; then :
  2510.   $as_echo_n "(cached) " >&6
  2511. else
  2512.   ac_build_alias=$build_alias
  2513. test "x$ac_build_alias" = x &&
  2514.   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2515. test "x$ac_build_alias" = x &&
  2516.   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2517. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2518.   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2519.  
  2520. fi
  2521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2522. $as_echo "$ac_cv_build" >&6; }
  2523. case $ac_cv_build in
  2524. *-*-*) ;;
  2525. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2526. esac
  2527. build=$ac_cv_build
  2528. ac_save_IFS=$IFS; IFS='-'
  2529. set x $ac_cv_build
  2530. shift
  2531. build_cpu=$1
  2532. build_vendor=$2
  2533. shift; shift
  2534. # Remember, the first character of IFS is used to create $*,
  2535. # except with old shells:
  2536. build_os=$*
  2537. IFS=$ac_save_IFS
  2538. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2539.  
  2540.  
  2541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2542. $as_echo_n "checking host system type... " >&6; }
  2543. if test "${ac_cv_host+set}" = set; then :
  2544.   $as_echo_n "(cached) " >&6
  2545. else
  2546.   if test "x$host_alias" = x; then
  2547.   ac_cv_host=$ac_cv_build
  2548. else
  2549.   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2550.     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2551. fi
  2552.  
  2553. fi
  2554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2555. $as_echo "$ac_cv_host" >&6; }
  2556. case $ac_cv_host in
  2557. *-*-*) ;;
  2558. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2559. esac
  2560. host=$ac_cv_host
  2561. ac_save_IFS=$IFS; IFS='-'
  2562. set x $ac_cv_host
  2563. shift
  2564. host_cpu=$1
  2565. host_vendor=$2
  2566. shift; shift
  2567. # Remember, the first character of IFS is used to create $*,
  2568. # except with old shells:
  2569. host_os=$*
  2570. IFS=$ac_save_IFS
  2571. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2572.  
  2573.  
  2574.  
  2575. USR_CFLAGS=$CFLAGS
  2576. if test "x$USR_CFLAGS" = "x"; then
  2577.     USR_CFLAGS_SET=no
  2578. fi
  2579.  
  2580. ac_config_headers="$ac_config_headers pvfs2-config.h"
  2581.  
  2582.  
  2583. ac_ext=c
  2584. ac_cpp='$CPP $CPPFLAGS'
  2585. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2586. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2587. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2588. if test -n "$ac_tool_prefix"; then
  2589.   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2590. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2592. $as_echo_n "checking for $ac_word... " >&6; }
  2593. if test "${ac_cv_prog_CC+set}" = set; then :
  2594.   $as_echo_n "(cached) " >&6
  2595. else
  2596.   if test -n "$CC"; then
  2597.   ac_cv_prog_CC="$CC" # Let the user override the test.
  2598. else
  2599. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2600. for as_dir in $PATH
  2601. do
  2602.   IFS=$as_save_IFS
  2603.   test -z "$as_dir" && as_dir=.
  2604.     for ac_exec_ext in '' $ac_executable_extensions; do
  2605.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2606.     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2607.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2608.     break 2
  2609.   fi
  2610. done
  2611.   done
  2612. IFS=$as_save_IFS
  2613.  
  2614. fi
  2615. fi
  2616. CC=$ac_cv_prog_CC
  2617. if test -n "$CC"; then
  2618.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2619. $as_echo "$CC" >&6; }
  2620. else
  2621.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2622. $as_echo "no" >&6; }
  2623. fi
  2624.  
  2625.  
  2626. fi
  2627. if test -z "$ac_cv_prog_CC"; then
  2628.   ac_ct_CC=$CC
  2629.   # Extract the first word of "gcc", so it can be a program name with args.
  2630. set dummy gcc; ac_word=$2
  2631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2632. $as_echo_n "checking for $ac_word... " >&6; }
  2633. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2634.   $as_echo_n "(cached) " >&6
  2635. else
  2636.   if test -n "$ac_ct_CC"; then
  2637.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2638. else
  2639. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2640. for as_dir in $PATH
  2641. do
  2642.   IFS=$as_save_IFS
  2643.   test -z "$as_dir" && as_dir=.
  2644.     for ac_exec_ext in '' $ac_executable_extensions; do
  2645.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2646.     ac_cv_prog_ac_ct_CC="gcc"
  2647.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2648.     break 2
  2649.   fi
  2650. done
  2651.   done
  2652. IFS=$as_save_IFS
  2653.  
  2654. fi
  2655. fi
  2656. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2657. if test -n "$ac_ct_CC"; then
  2658.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2659. $as_echo "$ac_ct_CC" >&6; }
  2660. else
  2661.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2662. $as_echo "no" >&6; }
  2663. fi
  2664.  
  2665.   if test "x$ac_ct_CC" = x; then
  2666.     CC=""
  2667.   else
  2668.     case $cross_compiling:$ac_tool_warned in
  2669. yes:)
  2670. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2671. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2672. ac_tool_warned=yes ;;
  2673. esac
  2674.     CC=$ac_ct_CC
  2675.   fi
  2676. else
  2677.   CC="$ac_cv_prog_CC"
  2678. fi
  2679.  
  2680. if test -z "$CC"; then
  2681.           if test -n "$ac_tool_prefix"; then
  2682.     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2683. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2685. $as_echo_n "checking for $ac_word... " >&6; }
  2686. if test "${ac_cv_prog_CC+set}" = set; then :
  2687.   $as_echo_n "(cached) " >&6
  2688. else
  2689.   if test -n "$CC"; then
  2690.   ac_cv_prog_CC="$CC" # Let the user override the test.
  2691. else
  2692. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2693. for as_dir in $PATH
  2694. do
  2695.   IFS=$as_save_IFS
  2696.   test -z "$as_dir" && as_dir=.
  2697.     for ac_exec_ext in '' $ac_executable_extensions; do
  2698.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2699.     ac_cv_prog_CC="${ac_tool_prefix}cc"
  2700.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2701.     break 2
  2702.   fi
  2703. done
  2704.   done
  2705. IFS=$as_save_IFS
  2706.  
  2707. fi
  2708. fi
  2709. CC=$ac_cv_prog_CC
  2710. if test -n "$CC"; then
  2711.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2712. $as_echo "$CC" >&6; }
  2713. else
  2714.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2715. $as_echo "no" >&6; }
  2716. fi
  2717.  
  2718.  
  2719.   fi
  2720. fi
  2721. if test -z "$CC"; then
  2722.   # Extract the first word of "cc", so it can be a program name with args.
  2723. set dummy cc; ac_word=$2
  2724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2725. $as_echo_n "checking for $ac_word... " >&6; }
  2726. if test "${ac_cv_prog_CC+set}" = set; then :
  2727.   $as_echo_n "(cached) " >&6
  2728. else
  2729.   if test -n "$CC"; then
  2730.   ac_cv_prog_CC="$CC" # Let the user override the test.
  2731. else
  2732.   ac_prog_rejected=no
  2733. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2734. for as_dir in $PATH
  2735. do
  2736.   IFS=$as_save_IFS
  2737.   test -z "$as_dir" && as_dir=.
  2738.     for ac_exec_ext in '' $ac_executable_extensions; do
  2739.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2740.     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2741.        ac_prog_rejected=yes
  2742.        continue
  2743.      fi
  2744.     ac_cv_prog_CC="cc"
  2745.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2746.     break 2
  2747.   fi
  2748. done
  2749.   done
  2750. IFS=$as_save_IFS
  2751.  
  2752. if test $ac_prog_rejected = yes; then
  2753.   # We found a bogon in the path, so make sure we never use it.
  2754.   set dummy $ac_cv_prog_CC
  2755.   shift
  2756.   if test $@%:@ != 0; then
  2757.     # We chose a different compiler from the bogus one.
  2758.     # However, it has the same basename, so the bogon will be chosen
  2759.     # first if we set CC to just the basename; use the full file name.
  2760.     shift
  2761.     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2762.   fi
  2763. fi
  2764. fi
  2765. fi
  2766. CC=$ac_cv_prog_CC
  2767. if test -n "$CC"; then
  2768.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2769. $as_echo "$CC" >&6; }
  2770. else
  2771.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2772. $as_echo "no" >&6; }
  2773. fi
  2774.  
  2775.  
  2776. fi
  2777. if test -z "$CC"; then
  2778.   if test -n "$ac_tool_prefix"; then
  2779.   for ac_prog in cl.exe
  2780.   do
  2781.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2782. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2784. $as_echo_n "checking for $ac_word... " >&6; }
  2785. if test "${ac_cv_prog_CC+set}" = set; then :
  2786.   $as_echo_n "(cached) " >&6
  2787. else
  2788.   if test -n "$CC"; then
  2789.   ac_cv_prog_CC="$CC" # Let the user override the test.
  2790. else
  2791. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2792. for as_dir in $PATH
  2793. do
  2794.   IFS=$as_save_IFS
  2795.   test -z "$as_dir" && as_dir=.
  2796.     for ac_exec_ext in '' $ac_executable_extensions; do
  2797.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2798.     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2799.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2800.     break 2
  2801.   fi
  2802. done
  2803.   done
  2804. IFS=$as_save_IFS
  2805.  
  2806. fi
  2807. fi
  2808. CC=$ac_cv_prog_CC
  2809. if test -n "$CC"; then
  2810.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2811. $as_echo "$CC" >&6; }
  2812. else
  2813.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2814. $as_echo "no" >&6; }
  2815. fi
  2816.  
  2817.  
  2818.     test -n "$CC" && break
  2819.   done
  2820. fi
  2821. if test -z "$CC"; then
  2822.   ac_ct_CC=$CC
  2823.   for ac_prog in cl.exe
  2824. do
  2825.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2826. set dummy $ac_prog; ac_word=$2
  2827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2828. $as_echo_n "checking for $ac_word... " >&6; }
  2829. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2830.   $as_echo_n "(cached) " >&6
  2831. else
  2832.   if test -n "$ac_ct_CC"; then
  2833.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2834. else
  2835. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2836. for as_dir in $PATH
  2837. do
  2838.   IFS=$as_save_IFS
  2839.   test -z "$as_dir" && as_dir=.
  2840.     for ac_exec_ext in '' $ac_executable_extensions; do
  2841.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2842.     ac_cv_prog_ac_ct_CC="$ac_prog"
  2843.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2844.     break 2
  2845.   fi
  2846. done
  2847.   done
  2848. IFS=$as_save_IFS
  2849.  
  2850. fi
  2851. fi
  2852. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2853. if test -n "$ac_ct_CC"; then
  2854.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2855. $as_echo "$ac_ct_CC" >&6; }
  2856. else
  2857.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2858. $as_echo "no" >&6; }
  2859. fi
  2860.  
  2861.  
  2862.   test -n "$ac_ct_CC" && break
  2863. done
  2864.  
  2865.   if test "x$ac_ct_CC" = x; then
  2866.     CC=""
  2867.   else
  2868.     case $cross_compiling:$ac_tool_warned in
  2869. yes:)
  2870. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2871. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2872. ac_tool_warned=yes ;;
  2873. esac
  2874.     CC=$ac_ct_CC
  2875.   fi
  2876. fi
  2877.  
  2878. fi
  2879.  
  2880.  
  2881. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2882. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2883. as_fn_error "no acceptable C compiler found in \$PATH
  2884. See \`config.log' for more details." "$LINENO" 5; }
  2885.  
  2886. # Provide some information about the compiler.
  2887. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2888. set X $ac_compile
  2889. ac_compiler=$2
  2890. for ac_option in --version -v -V -qversion; do
  2891.   { { ac_try="$ac_compiler $ac_option >&5"
  2892. case "(($ac_try" in
  2893.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2894.   *) ac_try_echo=$ac_try;;
  2895. esac
  2896. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2897. $as_echo "$ac_try_echo"; } >&5
  2898.   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2899.   ac_status=$?
  2900.   if test -s conftest.err; then
  2901.     sed '10a\
  2902. ... rest of stderr output deleted ...
  2903.          10q' conftest.err >conftest.er1
  2904.     cat conftest.er1 >&5
  2905.   fi
  2906.   rm -f conftest.er1 conftest.err
  2907.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2908.   test $ac_status = 0; }
  2909. done
  2910.  
  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. ac_clean_files_save=$ac_clean_files
  2923. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2924. # Try to create an executable without -o first, disregard a.out.
  2925. # It will help us diagnose broken compilers, and finding out an intuition
  2926. # of exeext.
  2927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2928. $as_echo_n "checking whether the C compiler works... " >&6; }
  2929. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2930.  
  2931. # The possible output files:
  2932. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2933.  
  2934. ac_rmfiles=
  2935. for ac_file in $ac_files
  2936. do
  2937.   case $ac_file in
  2938.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2939.     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2940.   esac
  2941. done
  2942. rm -f $ac_rmfiles
  2943.  
  2944. if { { ac_try="$ac_link_default"
  2945. case "(($ac_try" in
  2946.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2947.   *) ac_try_echo=$ac_try;;
  2948. esac
  2949. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2950. $as_echo "$ac_try_echo"; } >&5
  2951.   (eval "$ac_link_default") 2>&5
  2952.   ac_status=$?
  2953.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2954.   test $ac_status = 0; }; then :
  2955.   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2956. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2957. # in a Makefile.  We should not override ac_cv_exeext if it was cached,
  2958. # so that the user can short-circuit this test for compilers unknown to
  2959. # Autoconf.
  2960. for ac_file in $ac_files ''
  2961. do
  2962.   test -f "$ac_file" || continue
  2963.   case $ac_file in
  2964.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2965.     ;;
  2966.     [ab].out )
  2967.     # We found the default executable, but exeext='' is most
  2968.     # certainly right.
  2969.     break;;
  2970.     *.* )
  2971.     if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2972.     then :; else
  2973.        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2974.     fi
  2975.     # We set ac_cv_exeext here because the later test for it is not
  2976.     # safe: cross compilers may not add the suffix if given an `-o'
  2977.     # argument, so we may need to know it at that point already.
  2978.     # Even if this section looks crufty: it has the advantage of
  2979.     # actually working.
  2980.     break;;
  2981.     * )
  2982.     break;;
  2983.   esac
  2984. done
  2985. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2986.  
  2987. else
  2988.   ac_file=''
  2989. fi
  2990. if test -z "$ac_file"; then :
  2991.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2992. $as_echo "no" >&6; }
  2993. $as_echo "$as_me: failed program was:" >&5
  2994. sed 's/^/| /' conftest.$ac_ext >&5
  2995.  
  2996. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2997. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2998. { as_fn_set_status 77
  2999. as_fn_error "C compiler cannot create executables
  3000. See \`config.log' for more details." "$LINENO" 5; }; }
  3001. else
  3002.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3003. $as_echo "yes" >&6; }
  3004. fi
  3005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3006. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3008. $as_echo "$ac_file" >&6; }
  3009. ac_exeext=$ac_cv_exeext
  3010.  
  3011. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3012. ac_clean_files=$ac_clean_files_save
  3013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3014. $as_echo_n "checking for suffix of executables... " >&6; }
  3015. if { { ac_try="$ac_link"
  3016. case "(($ac_try" in
  3017.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3018.   *) ac_try_echo=$ac_try;;
  3019. esac
  3020. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3021. $as_echo "$ac_try_echo"; } >&5
  3022.   (eval "$ac_link") 2>&5
  3023.   ac_status=$?
  3024.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3025.   test $ac_status = 0; }; then :
  3026.   # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3027. # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  3028. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3029. # `rm'.
  3030. for ac_file in conftest.exe conftest conftest.*; do
  3031.   test -f "$ac_file" || continue
  3032.   case $ac_file in
  3033.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3034.     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3035.       break;;
  3036.     * ) break;;
  3037.   esac
  3038. done
  3039. else
  3040.   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3041. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3042. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3043. See \`config.log' for more details." "$LINENO" 5; }
  3044. fi
  3045. rm -f conftest conftest$ac_cv_exeext
  3046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3047. $as_echo "$ac_cv_exeext" >&6; }
  3048.  
  3049. rm -f conftest.$ac_ext
  3050. EXEEXT=$ac_cv_exeext
  3051. ac_exeext=$EXEEXT
  3052. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3053. /* end confdefs.h.  */
  3054. @%:@include <stdio.h>
  3055. int
  3056. main ()
  3057. {
  3058. FILE *f = fopen ("conftest.out", "w");
  3059.  return ferror (f) || fclose (f) != 0;
  3060.  
  3061.   ;
  3062.   return 0;
  3063. }
  3064. _ACEOF
  3065. ac_clean_files="$ac_clean_files conftest.out"
  3066. # Check that the compiler produces executables we can run.  If not, either
  3067. # the compiler is broken, or we cross compile.
  3068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3069. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3070. if test "$cross_compiling" != yes; then
  3071.   { { ac_try="$ac_link"
  3072. case "(($ac_try" in
  3073.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3074.   *) ac_try_echo=$ac_try;;
  3075. esac
  3076. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3077. $as_echo "$ac_try_echo"; } >&5
  3078.   (eval "$ac_link") 2>&5
  3079.   ac_status=$?
  3080.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3081.   test $ac_status = 0; }
  3082.   if { ac_try='./conftest$ac_cv_exeext'
  3083.   { { case "(($ac_try" in
  3084.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3085.   *) ac_try_echo=$ac_try;;
  3086. esac
  3087. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3088. $as_echo "$ac_try_echo"; } >&5
  3089.   (eval "$ac_try") 2>&5
  3090.   ac_status=$?
  3091.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3092.   test $ac_status = 0; }; }; then
  3093.     cross_compiling=no
  3094.   else
  3095.     if test "$cross_compiling" = maybe; then
  3096.     cross_compiling=yes
  3097.     else
  3098.     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3099. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3100. as_fn_error "cannot run C compiled programs.
  3101. If you meant to cross compile, use \`--host'.
  3102. See \`config.log' for more details." "$LINENO" 5; }
  3103.     fi
  3104.   fi
  3105. fi
  3106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3107. $as_echo "$cross_compiling" >&6; }
  3108.  
  3109. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3110. ac_clean_files=$ac_clean_files_save
  3111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3112. $as_echo_n "checking for suffix of object files... " >&6; }
  3113. if test "${ac_cv_objext+set}" = set; then :
  3114.   $as_echo_n "(cached) " >&6
  3115. else
  3116.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3117. /* end confdefs.h.  */
  3118.  
  3119. int
  3120. main ()
  3121. {
  3122.  
  3123.   ;
  3124.   return 0;
  3125. }
  3126. _ACEOF
  3127. rm -f conftest.o conftest.obj
  3128. if { { ac_try="$ac_compile"
  3129. case "(($ac_try" in
  3130.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3131.   *) ac_try_echo=$ac_try;;
  3132. esac
  3133. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3134. $as_echo "$ac_try_echo"; } >&5
  3135.   (eval "$ac_compile") 2>&5
  3136.   ac_status=$?
  3137.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3138.   test $ac_status = 0; }; then :
  3139.   for ac_file in conftest.o conftest.obj conftest.*; do
  3140.   test -f "$ac_file" || continue;
  3141.   case $ac_file in
  3142.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3143.     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3144.        break;;
  3145.   esac
  3146. done
  3147. else
  3148.   $as_echo "$as_me: failed program was:" >&5
  3149. sed 's/^/| /' conftest.$ac_ext >&5
  3150.  
  3151. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3152. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3153. as_fn_error "cannot compute suffix of object files: cannot compile
  3154. See \`config.log' for more details." "$LINENO" 5; }
  3155. fi
  3156. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3157. fi
  3158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3159. $as_echo "$ac_cv_objext" >&6; }
  3160. OBJEXT=$ac_cv_objext
  3161. ac_objext=$OBJEXT
  3162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3163. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3164. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3165.   $as_echo_n "(cached) " >&6
  3166. else
  3167.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3168. /* end confdefs.h.  */
  3169.  
  3170. int
  3171. main ()
  3172. {
  3173. #ifndef __GNUC__
  3174.        choke me
  3175. #endif
  3176.  
  3177.   ;
  3178.   return 0;
  3179. }
  3180. _ACEOF
  3181. if ac_fn_c_try_compile "$LINENO"; then :
  3182.   ac_compiler_gnu=yes
  3183. else
  3184.   ac_compiler_gnu=no
  3185. fi
  3186. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3187. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3188.  
  3189. fi
  3190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3191. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3192. if test $ac_compiler_gnu = yes; then
  3193.   GCC=yes
  3194. else
  3195.   GCC=
  3196. fi
  3197. ac_test_CFLAGS=${CFLAGS+set}
  3198. ac_save_CFLAGS=$CFLAGS
  3199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3200. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3201. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3202.   $as_echo_n "(cached) " >&6
  3203. else
  3204.   ac_save_c_werror_flag=$ac_c_werror_flag
  3205.    ac_c_werror_flag=yes
  3206.    ac_cv_prog_cc_g=no
  3207.    CFLAGS="-g"
  3208.    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3209. /* end confdefs.h.  */
  3210.  
  3211. int
  3212. main ()
  3213. {
  3214.  
  3215.   ;
  3216.   return 0;
  3217. }
  3218. _ACEOF
  3219. if ac_fn_c_try_compile "$LINENO"; then :
  3220.   ac_cv_prog_cc_g=yes
  3221. else
  3222.   CFLAGS=""
  3223.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3224. /* end confdefs.h.  */
  3225.  
  3226. int
  3227. main ()
  3228. {
  3229.  
  3230.   ;
  3231.   return 0;
  3232. }
  3233. _ACEOF
  3234. if ac_fn_c_try_compile "$LINENO"; then :
  3235.   
  3236. else
  3237.   ac_c_werror_flag=$ac_save_c_werror_flag
  3238.      CFLAGS="-g"
  3239.      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3240. /* end confdefs.h.  */
  3241.  
  3242. int
  3243. main ()
  3244. {
  3245.  
  3246.   ;
  3247.   return 0;
  3248. }
  3249. _ACEOF
  3250. if ac_fn_c_try_compile "$LINENO"; then :
  3251.   ac_cv_prog_cc_g=yes
  3252. fi
  3253. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3254. fi
  3255. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3256. fi
  3257. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3258.    ac_c_werror_flag=$ac_save_c_werror_flag
  3259. fi
  3260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3261. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3262. if test "$ac_test_CFLAGS" = set; then
  3263.   CFLAGS=$ac_save_CFLAGS
  3264. elif test $ac_cv_prog_cc_g = yes; then
  3265.   if test "$GCC" = yes; then
  3266.     CFLAGS="-g -O2"
  3267.   else
  3268.     CFLAGS="-g"
  3269.   fi
  3270. else
  3271.   if test "$GCC" = yes; then
  3272.     CFLAGS="-O2"
  3273.   else
  3274.     CFLAGS=
  3275.   fi
  3276. fi
  3277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3278. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3279. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3280.   $as_echo_n "(cached) " >&6
  3281. else
  3282.   ac_cv_prog_cc_c89=no
  3283. ac_save_CC=$CC
  3284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3285. /* end confdefs.h.  */
  3286. #include <stdarg.h>
  3287. #include <stdio.h>
  3288. #include <sys/types.h>
  3289. #include <sys/stat.h>
  3290. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  3291. struct buf { int x; };
  3292. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3293. static char *e (p, i)
  3294.      char **p;
  3295.      int i;
  3296. {
  3297.   return p[i];
  3298. }
  3299. static char *f (char * (*g) (char **, int), char **p, ...)
  3300. {
  3301.   char *s;
  3302.   va_list v;
  3303.   va_start (v,p);
  3304.   s = g (p, va_arg (v,int));
  3305.   va_end (v);
  3306.   return s;
  3307. }
  3308.  
  3309. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  3310.    function prototypes and stuff, but not '\xHH' hex character constants.
  3311.    These don't provoke an error unfortunately, instead are silently treated
  3312.    as 'x'.  The following induces an error, until -std is added to get
  3313.    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  3314.    array size at least.  It's necessary to write '\x00'==0 to get something
  3315.    that's true only with -std.  */
  3316. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3317.  
  3318. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3319.    inside strings and character constants.  */
  3320. #define FOO(x) 'x'
  3321. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3322.  
  3323. int test (int i, double x);
  3324. struct s1 {int (*f) (int a);};
  3325. struct s2 {int (*f) (double a);};
  3326. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3327. int argc;
  3328. char **argv;
  3329. int
  3330. main ()
  3331. {
  3332. return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  3333.   ;
  3334.   return 0;
  3335. }
  3336. _ACEOF
  3337. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3338.     -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3339. do
  3340.   CC="$ac_save_CC $ac_arg"
  3341.   if ac_fn_c_try_compile "$LINENO"; then :
  3342.   ac_cv_prog_cc_c89=$ac_arg
  3343. fi
  3344. rm -f core conftest.err conftest.$ac_objext
  3345.   test "x$ac_cv_prog_cc_c89" != "xno" && break
  3346. done
  3347. rm -f conftest.$ac_ext
  3348. CC=$ac_save_CC
  3349.  
  3350. fi
  3351. # AC_CACHE_VAL
  3352. case "x$ac_cv_prog_cc_c89" in
  3353.   x)
  3354.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3355. $as_echo "none needed" >&6; } ;;
  3356.   xno)
  3357.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3358. $as_echo "unsupported" >&6; } ;;
  3359.   *)
  3360.     CC="$CC $ac_cv_prog_cc_c89"
  3361.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3362. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3363. esac
  3364. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3365.   
  3366. fi
  3367.  
  3368. ac_ext=c
  3369. ac_cpp='$CPP $CPPFLAGS'
  3370. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3371. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3372. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3373.  
  3374.  
  3375. ac_ext=c
  3376. ac_cpp='$CPP $CPPFLAGS'
  3377. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3378. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3379. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3381. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3382. # On Suns, sometimes $CPP names a directory.
  3383. if test -n "$CPP" && test -d "$CPP"; then
  3384.   CPP=
  3385. fi
  3386. if test -z "$CPP"; then
  3387.   if test "${ac_cv_prog_CPP+set}" = set; then :
  3388.   $as_echo_n "(cached) " >&6
  3389. else
  3390.       # Double quotes because CPP needs to be expanded
  3391.     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3392.     do
  3393.       ac_preproc_ok=false
  3394. for ac_c_preproc_warn_flag in '' yes
  3395. do
  3396.   # Use a header file that comes with gcc, so configuring glibc
  3397.   # with a fresh cross-compiler works.
  3398.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3399.   # <limits.h> exists even on freestanding compilers.
  3400.   # On the NeXT, cc -E runs the code through the compiler's parser,
  3401.   # not just through cpp. "Syntax error" is here to catch this case.
  3402.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3403. /* end confdefs.h.  */
  3404. @%:@ifdef __STDC__
  3405. @%:@ include <limits.h>
  3406. @%:@else
  3407. @%:@ include <assert.h>
  3408. @%:@endif
  3409.              Syntax error
  3410. _ACEOF
  3411. if ac_fn_c_try_cpp "$LINENO"; then :
  3412.   
  3413. else
  3414.   # Broken: fails on valid input.
  3415. continue
  3416. fi
  3417. rm -f conftest.err conftest.$ac_ext
  3418.  
  3419.   # OK, works on sane cases.  Now check whether nonexistent headers
  3420.   # can be detected and how.
  3421.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3422. /* end confdefs.h.  */
  3423. @%:@include <ac_nonexistent.h>
  3424. _ACEOF
  3425. if ac_fn_c_try_cpp "$LINENO"; then :
  3426.   # Broken: success on invalid input.
  3427. continue
  3428. else
  3429.   # Passes both tests.
  3430. ac_preproc_ok=:
  3431. break
  3432. fi
  3433. rm -f conftest.err conftest.$ac_ext
  3434.  
  3435. done
  3436. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3437. rm -f conftest.err conftest.$ac_ext
  3438. if $ac_preproc_ok; then :
  3439.   break
  3440. fi
  3441.  
  3442.     done
  3443.     ac_cv_prog_CPP=$CPP
  3444.   
  3445. fi
  3446.   CPP=$ac_cv_prog_CPP
  3447. else
  3448.   ac_cv_prog_CPP=$CPP
  3449. fi
  3450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3451. $as_echo "$CPP" >&6; }
  3452. ac_preproc_ok=false
  3453. for ac_c_preproc_warn_flag in '' yes
  3454. do
  3455.   # Use a header file that comes with gcc, so configuring glibc
  3456.   # with a fresh cross-compiler works.
  3457.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3458.   # <limits.h> exists even on freestanding compilers.
  3459.   # On the NeXT, cc -E runs the code through the compiler's parser,
  3460.   # not just through cpp. "Syntax error" is here to catch this case.
  3461.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3462. /* end confdefs.h.  */
  3463. @%:@ifdef __STDC__
  3464. @%:@ include <limits.h>
  3465. @%:@else
  3466. @%:@ include <assert.h>
  3467. @%:@endif
  3468.              Syntax error
  3469. _ACEOF
  3470. if ac_fn_c_try_cpp "$LINENO"; then :
  3471.   
  3472. else
  3473.   # Broken: fails on valid input.
  3474. continue
  3475. fi
  3476. rm -f conftest.err conftest.$ac_ext
  3477.  
  3478.   # OK, works on sane cases.  Now check whether nonexistent headers
  3479.   # can be detected and how.
  3480.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3481. /* end confdefs.h.  */
  3482. @%:@include <ac_nonexistent.h>
  3483. _ACEOF
  3484. if ac_fn_c_try_cpp "$LINENO"; then :
  3485.   # Broken: success on invalid input.
  3486. continue
  3487. else
  3488.   # Passes both tests.
  3489. ac_preproc_ok=:
  3490. break
  3491. fi
  3492. rm -f conftest.err conftest.$ac_ext
  3493.  
  3494. done
  3495. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3496. rm -f conftest.err conftest.$ac_ext
  3497. if $ac_preproc_ok; then :
  3498.   
  3499. else
  3500.   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3501. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3502. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  3503. See \`config.log' for more details." "$LINENO" 5; }
  3504. fi
  3505.  
  3506. ac_ext=c
  3507. ac_cpp='$CPP $CPPFLAGS'
  3508. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3509. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3510. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3511.  
  3512.  
  3513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3514. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3515. if test "${ac_cv_path_GREP+set}" = set; then :
  3516.   $as_echo_n "(cached) " >&6
  3517. else
  3518.   if test -z "$GREP"; then
  3519.   ac_path_GREP_found=false
  3520.   # Loop through the user's path and test for each of PROGNAME-LIST
  3521.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3522. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3523. do
  3524.   IFS=$as_save_IFS
  3525.   test -z "$as_dir" && as_dir=.
  3526.     for ac_prog in grep ggrep; do
  3527.     for ac_exec_ext in '' $ac_executable_extensions; do
  3528.       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3529.       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3530. # Check for GNU ac_path_GREP and select it if it is found.
  3531.   # Check for GNU $ac_path_GREP
  3532. case `"$ac_path_GREP" --version 2>&1` in
  3533. *GNU*)
  3534.   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3535. *)
  3536.   ac_count=0
  3537.   $as_echo_n 0123456789 >"conftest.in"
  3538.   while :
  3539.   do
  3540.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  3541.     mv "conftest.tmp" "conftest.in"
  3542.     cp "conftest.in" "conftest.nl"
  3543.     $as_echo 'GREP' >> "conftest.nl"
  3544.     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3545.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3546.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  3547.     if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3548.       # Best one so far, save it but keep looking for a better one
  3549.       ac_cv_path_GREP="$ac_path_GREP"
  3550.       ac_path_GREP_max=$ac_count
  3551.     fi
  3552.     # 10*(2^10) chars as input seems more than enough
  3553.     test $ac_count -gt 10 && break
  3554.   done
  3555.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3556. esac
  3557.  
  3558.       $ac_path_GREP_found && break 3
  3559.     done
  3560.   done
  3561.   done
  3562. IFS=$as_save_IFS
  3563.   if test -z "$ac_cv_path_GREP"; then
  3564.     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3565.   fi
  3566. else
  3567.   ac_cv_path_GREP=$GREP
  3568. fi
  3569.  
  3570. fi
  3571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3572. $as_echo "$ac_cv_path_GREP" >&6; }
  3573.  GREP="$ac_cv_path_GREP"
  3574.  
  3575.  
  3576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3577. $as_echo_n "checking for egrep... " >&6; }
  3578. if test "${ac_cv_path_EGREP+set}" = set; then :
  3579.   $as_echo_n "(cached) " >&6
  3580. else
  3581.   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3582.    then ac_cv_path_EGREP="$GREP -E"
  3583.    else
  3584.      if test -z "$EGREP"; then
  3585.   ac_path_EGREP_found=false
  3586.   # Loop through the user's path and test for each of PROGNAME-LIST
  3587.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3588. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3589. do
  3590.   IFS=$as_save_IFS
  3591.   test -z "$as_dir" && as_dir=.
  3592.     for ac_prog in egrep; do
  3593.     for ac_exec_ext in '' $ac_executable_extensions; do
  3594.       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3595.       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3596. # Check for GNU ac_path_EGREP and select it if it is found.
  3597.   # Check for GNU $ac_path_EGREP
  3598. case `"$ac_path_EGREP" --version 2>&1` in
  3599. *GNU*)
  3600.   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3601. *)
  3602.   ac_count=0
  3603.   $as_echo_n 0123456789 >"conftest.in"
  3604.   while :
  3605.   do
  3606.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  3607.     mv "conftest.tmp" "conftest.in"
  3608.     cp "conftest.in" "conftest.nl"
  3609.     $as_echo 'EGREP' >> "conftest.nl"
  3610.     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3611.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3612.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  3613.     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3614.       # Best one so far, save it but keep looking for a better one
  3615.       ac_cv_path_EGREP="$ac_path_EGREP"
  3616.       ac_path_EGREP_max=$ac_count
  3617.     fi
  3618.     # 10*(2^10) chars as input seems more than enough
  3619.     test $ac_count -gt 10 && break
  3620.   done
  3621.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3622. esac
  3623.  
  3624.       $ac_path_EGREP_found && break 3
  3625.     done
  3626.   done
  3627.   done
  3628. IFS=$as_save_IFS
  3629.   if test -z "$ac_cv_path_EGREP"; then
  3630.     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3631.   fi
  3632. else
  3633.   ac_cv_path_EGREP=$EGREP
  3634. fi
  3635.  
  3636.    fi
  3637. fi
  3638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3639. $as_echo "$ac_cv_path_EGREP" >&6; }
  3640.  EGREP="$ac_cv_path_EGREP"
  3641.  
  3642.  
  3643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3644. $as_echo_n "checking for ANSI C header files... " >&6; }
  3645. if test "${ac_cv_header_stdc+set}" = set; then :
  3646.   $as_echo_n "(cached) " >&6
  3647. else
  3648.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3649. /* end confdefs.h.  */
  3650. #include <stdlib.h>
  3651. #include <stdarg.h>
  3652. #include <string.h>
  3653. #include <float.h>
  3654.  
  3655. int
  3656. main ()
  3657. {
  3658.  
  3659.   ;
  3660.   return 0;
  3661. }
  3662. _ACEOF
  3663. if ac_fn_c_try_compile "$LINENO"; then :
  3664.   ac_cv_header_stdc=yes
  3665. else
  3666.   ac_cv_header_stdc=no
  3667. fi
  3668. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3669.  
  3670. if test $ac_cv_header_stdc = yes; then
  3671.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3672.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3673. /* end confdefs.h.  */
  3674. #include <string.h>
  3675.  
  3676. _ACEOF
  3677. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3678.   $EGREP "memchr" >/dev/null 2>&1; then :
  3679.   
  3680. else
  3681.   ac_cv_header_stdc=no
  3682. fi
  3683. rm -f conftest*
  3684.  
  3685. fi
  3686.  
  3687. if test $ac_cv_header_stdc = yes; then
  3688.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3689.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3690. /* end confdefs.h.  */
  3691. #include <stdlib.h>
  3692.  
  3693. _ACEOF
  3694. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3695.   $EGREP "free" >/dev/null 2>&1; then :
  3696.   
  3697. else
  3698.   ac_cv_header_stdc=no
  3699. fi
  3700. rm -f conftest*
  3701.  
  3702. fi
  3703.  
  3704. if test $ac_cv_header_stdc = yes; then
  3705.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3706.   if test "$cross_compiling" = yes; then :
  3707.   :
  3708. else
  3709.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3710. /* end confdefs.h.  */
  3711. #include <ctype.h>
  3712. #include <stdlib.h>
  3713. #if ((' ' & 0x0FF) == 0x020)
  3714. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3715. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3716. #else
  3717. # define ISLOWER(c) \
  3718.            (('a' <= (c) && (c) <= 'i') \
  3719.              || ('j' <= (c) && (c) <= 'r') \
  3720.              || ('s' <= (c) && (c) <= 'z'))
  3721. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3722. #endif
  3723.  
  3724. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3725. int
  3726. main ()
  3727. {
  3728.   int i;
  3729.   for (i = 0; i < 256; i++)
  3730.     if (XOR (islower (i), ISLOWER (i))
  3731.     || toupper (i) != TOUPPER (i))
  3732.       return 2;
  3733.   return 0;
  3734. }
  3735. _ACEOF
  3736. if ac_fn_c_try_run "$LINENO"; then :
  3737.   
  3738. else
  3739.   ac_cv_header_stdc=no
  3740. fi
  3741. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3742.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  3743. fi
  3744.  
  3745. fi
  3746. fi
  3747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3748. $as_echo "$ac_cv_header_stdc" >&6; }
  3749. if test $ac_cv_header_stdc = yes; then
  3750.   
  3751. $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
  3752.  
  3753. fi
  3754.  
  3755. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3756. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3757.           inttypes.h stdint.h unistd.h
  3758. do :
  3759.   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3760. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3761. "
  3762. eval as_val=\$$as_ac_Header
  3763.    if test "x$as_val" = x""yes; then :
  3764.   cat >>confdefs.h <<_ACEOF
  3765. @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3766. _ACEOF
  3767.  
  3768. fi
  3769.  
  3770. done
  3771.  
  3772.  
  3773. ac_fn_c_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
  3774. if test "x$ac_cv_header_pwd_h" = x""yes; then :
  3775.   
  3776. $as_echo "@%:@define HAVE_GETPWUID 1" >>confdefs.h
  3777.  
  3778. fi
  3779.  
  3780.  
  3781. ac_fn_c_check_header_mongrel "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
  3782. if test "x$ac_cv_header_sys_vfs_h" = x""yes; then :
  3783.   
  3784. $as_echo "@%:@define HAVE_SYS_VFS_H 1" >>confdefs.h
  3785.  
  3786. fi
  3787.  
  3788.  
  3789. ac_fn_c_check_header_mongrel "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
  3790. if test "x$ac_cv_header_sys_mount_h" = x""yes; then :
  3791.   
  3792. $as_echo "@%:@define HAVE_SYS_MOUNT_H 1" >>confdefs.h
  3793.  
  3794. fi
  3795.  
  3796.  
  3797.  
  3798. for ac_header in mntent.h, fstab.h
  3799. do :
  3800.   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3801. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  3802. eval as_val=\$$as_ac_Header
  3803.    if test "x$as_val" = x""yes; then :
  3804.   cat >>confdefs.h <<_ACEOF
  3805. @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3806. _ACEOF
  3807.  
  3808. fi
  3809.  
  3810. done
  3811.  
  3812.  
  3813. for ac_header in stdarg.h
  3814. do :
  3815.   ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
  3816. if test "x$ac_cv_header_stdarg_h" = x""yes; then :
  3817.   cat >>confdefs.h <<_ACEOF
  3818. @%:@define HAVE_STDARG_H 1
  3819. _ACEOF
  3820.  
  3821. fi
  3822.  
  3823. done
  3824.  
  3825.  
  3826. for ac_header in attr/xattr.h
  3827. do :
  3828.   ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
  3829. if test "x$ac_cv_header_attr_xattr_h" = x""yes; then :
  3830.   cat >>confdefs.h <<_ACEOF
  3831. @%:@define HAVE_ATTR_XATTR_H 1
  3832. _ACEOF
  3833.  
  3834. fi
  3835.  
  3836. done
  3837.  
  3838. for ac_header in sys/xattr.h
  3839. do :
  3840.   ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
  3841. if test "x$ac_cv_header_sys_xattr_h" = x""yes; then :
  3842.   cat >>confdefs.h <<_ACEOF
  3843. @%:@define HAVE_SYS_XATTR_H 1
  3844. _ACEOF
  3845.  
  3846. fi
  3847.  
  3848. done
  3849.  
  3850.  
  3851. # The cast to long int works around a bug in the HP C Compiler
  3852. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  3853. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  3854. # This bug is HP SR number 8606223364.
  3855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
  3856. $as_echo_n "checking size of long int... " >&6; }
  3857. if test "${ac_cv_sizeof_long_int+set}" = set; then :
  3858.   $as_echo_n "(cached) " >&6
  3859. else
  3860.   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
  3861.   
  3862. else
  3863.   if test "$ac_cv_type_long_int" = yes; then
  3864.      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3865. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3866. { as_fn_set_status 77
  3867. as_fn_error "cannot compute sizeof (long int)
  3868. See \`config.log' for more details." "$LINENO" 5; }; }
  3869.    else
  3870.      ac_cv_sizeof_long_int=0
  3871.    fi
  3872. fi
  3873.  
  3874. fi
  3875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
  3876. $as_echo "$ac_cv_sizeof_long_int" >&6; }
  3877.  
  3878.  
  3879.  
  3880. cat >>confdefs.h <<_ACEOF
  3881. @%:@define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
  3882. _ACEOF
  3883.  
  3884.  
  3885.  
  3886. # Find a good install program.  We prefer a C program (faster),
  3887. # so one script is as good as another.  But avoid the broken or
  3888. # incompatible versions:
  3889. # SysV /etc/install, /usr/sbin/install
  3890. # SunOS /usr/etc/install
  3891. # IRIX /sbin/install
  3892. # AIX /bin/install
  3893. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3894. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3895. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3896. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3897. # OS/2's system install, which has a completely different semantic
  3898. # ./install, which can be erroneously created by make from ./install.sh.
  3899. # Reject install programs that cannot install multiple files.
  3900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3901. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3902. if test -z "$INSTALL"; then
  3903. if test "${ac_cv_path_install+set}" = set; then :
  3904.   $as_echo_n "(cached) " >&6
  3905. else
  3906.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3907. for as_dir in $PATH
  3908. do
  3909.   IFS=$as_save_IFS
  3910.   test -z "$as_dir" && as_dir=.
  3911.     # Account for people who put trailing slashes in PATH elements.
  3912. case $as_dir/ in @%:@((
  3913.   ./ | .// | /[cC]/* | \
  3914.   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3915.   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3916.   /usr/ucb/* ) ;;
  3917.   *)
  3918.     # OSF1 and SCO ODT 3.0 have their own names for install.
  3919.     # Don't use installbsd from OSF since it installs stuff as root
  3920.     # by default.
  3921.     for ac_prog in ginstall scoinst install; do
  3922.       for ac_exec_ext in '' $ac_executable_extensions; do
  3923.     if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3924.       if test $ac_prog = install &&
  3925.         grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3926.         # AIX install.  It has an incompatible calling convention.
  3927.         :
  3928.       elif test $ac_prog = install &&
  3929.         grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3930.         # program-specific install script used by HP pwplus--don't use.
  3931.         :
  3932.       else
  3933.         rm -rf conftest.one conftest.two conftest.dir
  3934.         echo one > conftest.one
  3935.         echo two > conftest.two
  3936.         mkdir conftest.dir
  3937.         if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3938.           test -s conftest.one && test -s conftest.two &&
  3939.           test -s conftest.dir/conftest.one &&
  3940.           test -s conftest.dir/conftest.two
  3941.         then
  3942.           ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3943.           break 3
  3944.         fi
  3945.       fi
  3946.     fi
  3947.       done
  3948.     done
  3949.     ;;
  3950. esac
  3951.  
  3952.   done
  3953. IFS=$as_save_IFS
  3954.  
  3955. rm -rf conftest.one conftest.two conftest.dir
  3956.  
  3957. fi
  3958.   if test "${ac_cv_path_install+set}" = set; then
  3959.     INSTALL=$ac_cv_path_install
  3960.   else
  3961.     # As a last resort, use the slow shell script.  Don't cache a
  3962.     # value for INSTALL within a source directory, because that will
  3963.     # break other packages using the cache if that directory is
  3964.     # removed, or if the value is a relative name.
  3965.     INSTALL=$ac_install_sh
  3966.   fi
  3967. fi
  3968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3969. $as_echo "$INSTALL" >&6; }
  3970.  
  3971. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3972. # It thinks the first close brace ends the variable substitution.
  3973. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3974.  
  3975. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3976.  
  3977. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3978.  
  3979. ac_ext=c
  3980. ac_cpp='$CPP $CPPFLAGS'
  3981. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3982. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3983. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3984. if test -n "$ac_tool_prefix"; then
  3985.   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3986. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3988. $as_echo_n "checking for $ac_word... " >&6; }
  3989. if test "${ac_cv_prog_CC+set}" = set; then :
  3990.   $as_echo_n "(cached) " >&6
  3991. else
  3992.   if test -n "$CC"; then
  3993.   ac_cv_prog_CC="$CC" # Let the user override the test.
  3994. else
  3995. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3996. for as_dir in $PATH
  3997. do
  3998.   IFS=$as_save_IFS
  3999.   test -z "$as_dir" && as_dir=.
  4000.     for ac_exec_ext in '' $ac_executable_extensions; do
  4001.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4002.     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4003.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4004.     break 2
  4005.   fi
  4006. done
  4007.   done
  4008. IFS=$as_save_IFS
  4009.  
  4010. fi
  4011. fi
  4012. CC=$ac_cv_prog_CC
  4013. if test -n "$CC"; then
  4014.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4015. $as_echo "$CC" >&6; }
  4016. else
  4017.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4018. $as_echo "no" >&6; }
  4019. fi
  4020.  
  4021.  
  4022. fi
  4023. if test -z "$ac_cv_prog_CC"; then
  4024.   ac_ct_CC=$CC
  4025.   # Extract the first word of "gcc", so it can be a program name with args.
  4026. set dummy gcc; ac_word=$2
  4027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4028. $as_echo_n "checking for $ac_word... " >&6; }
  4029. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4030.   $as_echo_n "(cached) " >&6
  4031. else
  4032.   if test -n "$ac_ct_CC"; then
  4033.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4034. else
  4035. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4036. for as_dir in $PATH
  4037. do
  4038.   IFS=$as_save_IFS
  4039.   test -z "$as_dir" && as_dir=.
  4040.     for ac_exec_ext in '' $ac_executable_extensions; do
  4041.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4042.     ac_cv_prog_ac_ct_CC="gcc"
  4043.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4044.     break 2
  4045.   fi
  4046. done
  4047.   done
  4048. IFS=$as_save_IFS
  4049.  
  4050. fi
  4051. fi
  4052. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4053. if test -n "$ac_ct_CC"; then
  4054.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4055. $as_echo "$ac_ct_CC" >&6; }
  4056. else
  4057.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4058. $as_echo "no" >&6; }
  4059. fi
  4060.  
  4061.   if test "x$ac_ct_CC" = x; then
  4062.     CC=""
  4063.   else
  4064.     case $cross_compiling:$ac_tool_warned in
  4065. yes:)
  4066. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4067. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4068. ac_tool_warned=yes ;;
  4069. esac
  4070.     CC=$ac_ct_CC
  4071.   fi
  4072. else
  4073.   CC="$ac_cv_prog_CC"
  4074. fi
  4075.  
  4076. if test -z "$CC"; then
  4077.           if test -n "$ac_tool_prefix"; then
  4078.     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4079. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4081. $as_echo_n "checking for $ac_word... " >&6; }
  4082. if test "${ac_cv_prog_CC+set}" = set; then :
  4083.   $as_echo_n "(cached) " >&6
  4084. else
  4085.   if test -n "$CC"; then
  4086.   ac_cv_prog_CC="$CC" # Let the user override the test.
  4087. else
  4088. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4089. for as_dir in $PATH
  4090. do
  4091.   IFS=$as_save_IFS
  4092.   test -z "$as_dir" && as_dir=.
  4093.     for ac_exec_ext in '' $ac_executable_extensions; do
  4094.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4095.     ac_cv_prog_CC="${ac_tool_prefix}cc"
  4096.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4097.     break 2
  4098.   fi
  4099. done
  4100.   done
  4101. IFS=$as_save_IFS
  4102.  
  4103. fi
  4104. fi
  4105. CC=$ac_cv_prog_CC
  4106. if test -n "$CC"; then
  4107.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4108. $as_echo "$CC" >&6; }
  4109. else
  4110.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4111. $as_echo "no" >&6; }
  4112. fi
  4113.  
  4114.  
  4115.   fi
  4116. fi
  4117. if test -z "$CC"; then
  4118.   # Extract the first word of "cc", so it can be a program name with args.
  4119. set dummy cc; ac_word=$2
  4120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4121. $as_echo_n "checking for $ac_word... " >&6; }
  4122. if test "${ac_cv_prog_CC+set}" = set; then :
  4123.   $as_echo_n "(cached) " >&6
  4124. else
  4125.   if test -n "$CC"; then
  4126.   ac_cv_prog_CC="$CC" # Let the user override the test.
  4127. else
  4128.   ac_prog_rejected=no
  4129. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4130. for as_dir in $PATH
  4131. do
  4132.   IFS=$as_save_IFS
  4133.   test -z "$as_dir" && as_dir=.
  4134.     for ac_exec_ext in '' $ac_executable_extensions; do
  4135.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4136.     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4137.        ac_prog_rejected=yes
  4138.        continue
  4139.      fi
  4140.     ac_cv_prog_CC="cc"
  4141.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4142.     break 2
  4143.   fi
  4144. done
  4145.   done
  4146. IFS=$as_save_IFS
  4147.  
  4148. if test $ac_prog_rejected = yes; then
  4149.   # We found a bogon in the path, so make sure we never use it.
  4150.   set dummy $ac_cv_prog_CC
  4151.   shift
  4152.   if test $@%:@ != 0; then
  4153.     # We chose a different compiler from the bogus one.
  4154.     # However, it has the same basename, so the bogon will be chosen
  4155.     # first if we set CC to just the basename; use the full file name.
  4156.     shift
  4157.     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4158.   fi
  4159. fi
  4160. fi
  4161. fi
  4162. CC=$ac_cv_prog_CC
  4163. if test -n "$CC"; then
  4164.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4165. $as_echo "$CC" >&6; }
  4166. else
  4167.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4168. $as_echo "no" >&6; }
  4169. fi
  4170.  
  4171.  
  4172. fi
  4173. if test -z "$CC"; then
  4174.   if test -n "$ac_tool_prefix"; then
  4175.   for ac_prog in cl.exe
  4176.   do
  4177.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4178. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4180. $as_echo_n "checking for $ac_word... " >&6; }
  4181. if test "${ac_cv_prog_CC+set}" = set; then :
  4182.   $as_echo_n "(cached) " >&6
  4183. else
  4184.   if test -n "$CC"; then
  4185.   ac_cv_prog_CC="$CC" # Let the user override the test.
  4186. else
  4187. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4188. for as_dir in $PATH
  4189. do
  4190.   IFS=$as_save_IFS
  4191.   test -z "$as_dir" && as_dir=.
  4192.     for ac_exec_ext in '' $ac_executable_extensions; do
  4193.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4194.     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4195.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4196.     break 2
  4197.   fi
  4198. done
  4199.   done
  4200. IFS=$as_save_IFS
  4201.  
  4202. fi
  4203. fi
  4204. CC=$ac_cv_prog_CC
  4205. if test -n "$CC"; then
  4206.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4207. $as_echo "$CC" >&6; }
  4208. else
  4209.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4210. $as_echo "no" >&6; }
  4211. fi
  4212.  
  4213.  
  4214.     test -n "$CC" && break
  4215.   done
  4216. fi
  4217. if test -z "$CC"; then
  4218.   ac_ct_CC=$CC
  4219.   for ac_prog in cl.exe
  4220. do
  4221.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  4222. set dummy $ac_prog; ac_word=$2
  4223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4224. $as_echo_n "checking for $ac_word... " >&6; }
  4225. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4226.   $as_echo_n "(cached) " >&6
  4227. else
  4228.   if test -n "$ac_ct_CC"; then
  4229.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4230. else
  4231. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4232. for as_dir in $PATH
  4233. do
  4234.   IFS=$as_save_IFS
  4235.   test -z "$as_dir" && as_dir=.
  4236.     for ac_exec_ext in '' $ac_executable_extensions; do
  4237.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4238.     ac_cv_prog_ac_ct_CC="$ac_prog"
  4239.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4240.     break 2
  4241.   fi
  4242. done
  4243.   done
  4244. IFS=$as_save_IFS
  4245.  
  4246. fi
  4247. fi
  4248. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4249. if test -n "$ac_ct_CC"; then
  4250.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4251. $as_echo "$ac_ct_CC" >&6; }
  4252. else
  4253.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4254. $as_echo "no" >&6; }
  4255. fi
  4256.  
  4257.  
  4258.   test -n "$ac_ct_CC" && break
  4259. done
  4260.  
  4261.   if test "x$ac_ct_CC" = x; then
  4262.     CC=""
  4263.   else
  4264.     case $cross_compiling:$ac_tool_warned in
  4265. yes:)
  4266. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4267. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4268. ac_tool_warned=yes ;;
  4269. esac
  4270.     CC=$ac_ct_CC
  4271.   fi
  4272. fi
  4273.  
  4274. fi
  4275.  
  4276.  
  4277. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4278. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4279. as_fn_error "no acceptable C compiler found in \$PATH
  4280. See \`config.log' for more details." "$LINENO" 5; }
  4281.  
  4282. # Provide some information about the compiler.
  4283. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4284. set X $ac_compile
  4285. ac_compiler=$2
  4286. for ac_option in --version -v -V -qversion; do
  4287.   { { ac_try="$ac_compiler $ac_option >&5"
  4288. case "(($ac_try" in
  4289.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4290.   *) ac_try_echo=$ac_try;;
  4291. esac
  4292. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4293. $as_echo "$ac_try_echo"; } >&5
  4294.   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4295.   ac_status=$?
  4296.   if test -s conftest.err; then
  4297.     sed '10a\
  4298. ... rest of stderr output deleted ...
  4299.          10q' conftest.err >conftest.er1
  4300.     cat conftest.er1 >&5
  4301.   fi
  4302.   rm -f conftest.er1 conftest.err
  4303.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4304.   test $ac_status = 0; }
  4305. done
  4306.  
  4307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4308. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4309. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  4310.   $as_echo_n "(cached) " >&6
  4311. else
  4312.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4313. /* end confdefs.h.  */
  4314.  
  4315. int
  4316. main ()
  4317. {
  4318. #ifndef __GNUC__
  4319.        choke me
  4320. #endif
  4321.  
  4322.   ;
  4323.   return 0;
  4324. }
  4325. _ACEOF
  4326. if ac_fn_c_try_compile "$LINENO"; then :
  4327.   ac_compiler_gnu=yes
  4328. else
  4329.   ac_compiler_gnu=no
  4330. fi
  4331. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4332. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4333.  
  4334. fi
  4335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4336. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4337. if test $ac_compiler_gnu = yes; then
  4338.   GCC=yes
  4339. else
  4340.   GCC=
  4341. fi
  4342. ac_test_CFLAGS=${CFLAGS+set}
  4343. ac_save_CFLAGS=$CFLAGS
  4344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4345. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4346. if test "${ac_cv_prog_cc_g+set}" = set; then :
  4347.   $as_echo_n "(cached) " >&6
  4348. else
  4349.   ac_save_c_werror_flag=$ac_c_werror_flag
  4350.    ac_c_werror_flag=yes
  4351.    ac_cv_prog_cc_g=no
  4352.    CFLAGS="-g"
  4353.    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4354. /* end confdefs.h.  */
  4355.  
  4356. int
  4357. main ()
  4358. {
  4359.  
  4360.   ;
  4361.   return 0;
  4362. }
  4363. _ACEOF
  4364. if ac_fn_c_try_compile "$LINENO"; then :
  4365.   ac_cv_prog_cc_g=yes
  4366. else
  4367.   CFLAGS=""
  4368.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4369. /* end confdefs.h.  */
  4370.  
  4371. int
  4372. main ()
  4373. {
  4374.  
  4375.   ;
  4376.   return 0;
  4377. }
  4378. _ACEOF
  4379. if ac_fn_c_try_compile "$LINENO"; then :
  4380.   
  4381. else
  4382.   ac_c_werror_flag=$ac_save_c_werror_flag
  4383.      CFLAGS="-g"
  4384.      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4385. /* end confdefs.h.  */
  4386.  
  4387. int
  4388. main ()
  4389. {
  4390.  
  4391.   ;
  4392.   return 0;
  4393. }
  4394. _ACEOF
  4395. if ac_fn_c_try_compile "$LINENO"; then :
  4396.   ac_cv_prog_cc_g=yes
  4397. fi
  4398. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4399. fi
  4400. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4401. fi
  4402. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4403.    ac_c_werror_flag=$ac_save_c_werror_flag
  4404. fi
  4405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4406. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4407. if test "$ac_test_CFLAGS" = set; then
  4408.   CFLAGS=$ac_save_CFLAGS
  4409. elif test $ac_cv_prog_cc_g = yes; then
  4410.   if test "$GCC" = yes; then
  4411.     CFLAGS="-g -O2"
  4412.   else
  4413.     CFLAGS="-g"
  4414.   fi
  4415. else
  4416.   if test "$GCC" = yes; then
  4417.     CFLAGS="-O2"
  4418.   else
  4419.     CFLAGS=
  4420.   fi
  4421. fi
  4422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4423. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4424. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  4425.   $as_echo_n "(cached) " >&6
  4426. else
  4427.   ac_cv_prog_cc_c89=no
  4428. ac_save_CC=$CC
  4429. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4430. /* end confdefs.h.  */
  4431. #include <stdarg.h>
  4432. #include <stdio.h>
  4433. #include <sys/types.h>
  4434. #include <sys/stat.h>
  4435. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  4436. struct buf { int x; };
  4437. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4438. static char *e (p, i)
  4439.      char **p;
  4440.      int i;
  4441. {
  4442.   return p[i];
  4443. }
  4444. static char *f (char * (*g) (char **, int), char **p, ...)
  4445. {
  4446.   char *s;
  4447.   va_list v;
  4448.   va_start (v,p);
  4449.   s = g (p, va_arg (v,int));
  4450.   va_end (v);
  4451.   return s;
  4452. }
  4453.  
  4454. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  4455.    function prototypes and stuff, but not '\xHH' hex character constants.
  4456.    These don't provoke an error unfortunately, instead are silently treated
  4457.    as 'x'.  The following induces an error, until -std is added to get
  4458.    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  4459.    array size at least.  It's necessary to write '\x00'==0 to get something
  4460.    that's true only with -std.  */
  4461. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4462.  
  4463. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4464.    inside strings and character constants.  */
  4465. #define FOO(x) 'x'
  4466. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4467.  
  4468. int test (int i, double x);
  4469. struct s1 {int (*f) (int a);};
  4470. struct s2 {int (*f) (double a);};
  4471. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4472. int argc;
  4473. char **argv;
  4474. int
  4475. main ()
  4476. {
  4477. return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  4478.   ;
  4479.   return 0;
  4480. }
  4481. _ACEOF
  4482. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4483.     -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4484. do
  4485.   CC="$ac_save_CC $ac_arg"
  4486.   if ac_fn_c_try_compile "$LINENO"; then :
  4487.   ac_cv_prog_cc_c89=$ac_arg
  4488. fi
  4489. rm -f core conftest.err conftest.$ac_objext
  4490.   test "x$ac_cv_prog_cc_c89" != "xno" && break
  4491. done
  4492. rm -f conftest.$ac_ext
  4493. CC=$ac_save_CC
  4494.  
  4495. fi
  4496. # AC_CACHE_VAL
  4497. case "x$ac_cv_prog_cc_c89" in
  4498.   x)
  4499.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4500. $as_echo "none needed" >&6; } ;;
  4501.   xno)
  4502.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4503. $as_echo "unsupported" >&6; } ;;
  4504.   *)
  4505.     CC="$CC $ac_cv_prog_cc_c89"
  4506.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4507. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4508. esac
  4509. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4510.   
  4511. fi
  4512.  
  4513. ac_ext=c
  4514. ac_cpp='$CPP $CPPFLAGS'
  4515. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4516. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4517. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4518.  
  4519.  
  4520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for required gcc" >&5
  4521. $as_echo_n "checking for required gcc... " >&6; }
  4522. if test "x$GCC" = "x"; then
  4523.     as_fn_error "no" "$LINENO" 5
  4524. fi
  4525.  
  4526. CFLAGS=$USR_CFLAGS
  4527.  
  4528. ac_ext=c
  4529. ac_cpp='$CPP $CPPFLAGS'
  4530. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4531. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4532. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4534. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4535. # On Suns, sometimes $CPP names a directory.
  4536. if test -n "$CPP" && test -d "$CPP"; then
  4537.   CPP=
  4538. fi
  4539. if test -z "$CPP"; then
  4540.   if test "${ac_cv_prog_CPP+set}" = set; then :
  4541.   $as_echo_n "(cached) " >&6
  4542. else
  4543.       # Double quotes because CPP needs to be expanded
  4544.     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4545.     do
  4546.       ac_preproc_ok=false
  4547. for ac_c_preproc_warn_flag in '' yes
  4548. do
  4549.   # Use a header file that comes with gcc, so configuring glibc
  4550.   # with a fresh cross-compiler works.
  4551.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4552.   # <limits.h> exists even on freestanding compilers.
  4553.   # On the NeXT, cc -E runs the code through the compiler's parser,
  4554.   # not just through cpp. "Syntax error" is here to catch this case.
  4555.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4556. /* end confdefs.h.  */
  4557. @%:@ifdef __STDC__
  4558. @%:@ include <limits.h>
  4559. @%:@else
  4560. @%:@ include <assert.h>
  4561. @%:@endif
  4562.              Syntax error
  4563. _ACEOF
  4564. if ac_fn_c_try_cpp "$LINENO"; then :
  4565.   
  4566. else
  4567.   # Broken: fails on valid input.
  4568. continue
  4569. fi
  4570. rm -f conftest.err conftest.$ac_ext
  4571.  
  4572.   # OK, works on sane cases.  Now check whether nonexistent headers
  4573.   # can be detected and how.
  4574.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4575. /* end confdefs.h.  */
  4576. @%:@include <ac_nonexistent.h>
  4577. _ACEOF
  4578. if ac_fn_c_try_cpp "$LINENO"; then :
  4579.   # Broken: success on invalid input.
  4580. continue
  4581. else
  4582.   # Passes both tests.
  4583. ac_preproc_ok=:
  4584. break
  4585. fi
  4586. rm -f conftest.err conftest.$ac_ext
  4587.  
  4588. done
  4589. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4590. rm -f conftest.err conftest.$ac_ext
  4591. if $ac_preproc_ok; then :
  4592.   break
  4593. fi
  4594.  
  4595.     done
  4596.     ac_cv_prog_CPP=$CPP
  4597.   
  4598. fi
  4599.   CPP=$ac_cv_prog_CPP
  4600. else
  4601.   ac_cv_prog_CPP=$CPP
  4602. fi
  4603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4604. $as_echo "$CPP" >&6; }
  4605. ac_preproc_ok=false
  4606. for ac_c_preproc_warn_flag in '' yes
  4607. do
  4608.   # Use a header file that comes with gcc, so configuring glibc
  4609.   # with a fresh cross-compiler works.
  4610.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4611.   # <limits.h> exists even on freestanding compilers.
  4612.   # On the NeXT, cc -E runs the code through the compiler's parser,
  4613.   # not just through cpp. "Syntax error" is here to catch this case.
  4614.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4615. /* end confdefs.h.  */
  4616. @%:@ifdef __STDC__
  4617. @%:@ include <limits.h>
  4618. @%:@else
  4619. @%:@ include <assert.h>
  4620. @%:@endif
  4621.              Syntax error
  4622. _ACEOF
  4623. if ac_fn_c_try_cpp "$LINENO"; then :
  4624.   
  4625. else
  4626.   # Broken: fails on valid input.
  4627. continue
  4628. fi
  4629. rm -f conftest.err conftest.$ac_ext
  4630.  
  4631.   # OK, works on sane cases.  Now check whether nonexistent headers
  4632.   # can be detected and how.
  4633.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4634. /* end confdefs.h.  */
  4635. @%:@include <ac_nonexistent.h>
  4636. _ACEOF
  4637. if ac_fn_c_try_cpp "$LINENO"; then :
  4638.   # Broken: success on invalid input.
  4639. continue
  4640. else
  4641.   # Passes both tests.
  4642. ac_preproc_ok=:
  4643. break
  4644. fi
  4645. rm -f conftest.err conftest.$ac_ext
  4646.  
  4647. done
  4648. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4649. rm -f conftest.err conftest.$ac_ext
  4650. if $ac_preproc_ok; then :
  4651.   
  4652. else
  4653.   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4654. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4655. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  4656. See \`config.log' for more details." "$LINENO" 5; }
  4657. fi
  4658.  
  4659. ac_ext=c
  4660. ac_cpp='$CPP $CPPFLAGS'
  4661. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4662. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4663. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4664.  
  4665. # Extract the first word of "perl", so it can be a program name with args.
  4666. set dummy perl; ac_word=$2
  4667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4668. $as_echo_n "checking for $ac_word... " >&6; }
  4669. if test "${ac_cv_prog_HAVE_PERL+set}" = set; then :
  4670.   $as_echo_n "(cached) " >&6
  4671. else
  4672.   if test -n "$HAVE_PERL"; then
  4673.   ac_cv_prog_HAVE_PERL="$HAVE_PERL" # Let the user override the test.
  4674. else
  4675. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4676. for as_dir in $PATH
  4677. do
  4678.   IFS=$as_save_IFS
  4679.   test -z "$as_dir" && as_dir=.
  4680.     for ac_exec_ext in '' $ac_executable_extensions; do
  4681.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4682.     ac_cv_prog_HAVE_PERL="yes"
  4683.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4684.     break 2
  4685.   fi
  4686. done
  4687.   done
  4688. IFS=$as_save_IFS
  4689.  
  4690.   test -z "$ac_cv_prog_HAVE_PERL" && ac_cv_prog_HAVE_PERL="no"
  4691. fi
  4692. fi
  4693. HAVE_PERL=$ac_cv_prog_HAVE_PERL
  4694. if test -n "$HAVE_PERL"; then
  4695.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_PERL" >&5
  4696. $as_echo "$HAVE_PERL" >&6; }
  4697. else
  4698.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4699. $as_echo "no" >&6; }
  4700. fi
  4701.  
  4702.  
  4703. # Extract the first word of "find", so it can be a program name with args.
  4704. set dummy find; ac_word=$2
  4705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4706. $as_echo_n "checking for $ac_word... " >&6; }
  4707. if test "${ac_cv_prog_HAVE_FIND+set}" = set; then :
  4708.   $as_echo_n "(cached) " >&6
  4709. else
  4710.   if test -n "$HAVE_FIND"; then
  4711.   ac_cv_prog_HAVE_FIND="$HAVE_FIND" # Let the user override the test.
  4712. else
  4713. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4714. for as_dir in $PATH
  4715. do
  4716.   IFS=$as_save_IFS
  4717.   test -z "$as_dir" && as_dir=.
  4718.     for ac_exec_ext in '' $ac_executable_extensions; do
  4719.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4720.     ac_cv_prog_HAVE_FIND="yes"
  4721.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4722.     break 2
  4723.   fi
  4724. done
  4725.   done
  4726. IFS=$as_save_IFS
  4727.  
  4728.   test -z "$ac_cv_prog_HAVE_FIND" && ac_cv_prog_HAVE_FIND="no"
  4729. fi
  4730. fi
  4731. HAVE_FIND=$ac_cv_prog_HAVE_FIND
  4732. if test -n "$HAVE_FIND"; then
  4733.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_FIND" >&5
  4734. $as_echo "$HAVE_FIND" >&6; }
  4735. else
  4736.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4737. $as_echo "no" >&6; }
  4738. fi
  4739.  
  4740.  
  4741. # Extract the first word of "bison", so it can be a program name with args.
  4742. set dummy bison; ac_word=$2
  4743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4744. $as_echo_n "checking for $ac_word... " >&6; }
  4745. if test "${ac_cv_prog_HAVE_BISON+set}" = set; then :
  4746.   $as_echo_n "(cached) " >&6
  4747. else
  4748.   if test -n "$HAVE_BISON"; then
  4749.   ac_cv_prog_HAVE_BISON="$HAVE_BISON" # Let the user override the test.
  4750. else
  4751. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4752. for as_dir in $PATH
  4753. do
  4754.   IFS=$as_save_IFS
  4755.   test -z "$as_dir" && as_dir=.
  4756.     for ac_exec_ext in '' $ac_executable_extensions; do
  4757.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4758.     ac_cv_prog_HAVE_BISON="yes"
  4759.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4760.     break 2
  4761.   fi
  4762. done
  4763.   done
  4764. IFS=$as_save_IFS
  4765.  
  4766.   test -z "$ac_cv_prog_HAVE_BISON" && ac_cv_prog_HAVE_BISON="no"
  4767. fi
  4768. fi
  4769. HAVE_BISON=$ac_cv_prog_HAVE_BISON
  4770. if test -n "$HAVE_BISON"; then
  4771.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_BISON" >&5
  4772. $as_echo "$HAVE_BISON" >&6; }
  4773. else
  4774.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4775. $as_echo "no" >&6; }
  4776. fi
  4777.  
  4778.  
  4779. # Extract the first word of "flex", so it can be a program name with args.
  4780. set dummy flex; ac_word=$2
  4781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4782. $as_echo_n "checking for $ac_word... " >&6; }
  4783. if test "${ac_cv_prog_HAVE_FLEX+set}" = set; then :
  4784.   $as_echo_n "(cached) " >&6
  4785. else
  4786.   if test -n "$HAVE_FLEX"; then
  4787.   ac_cv_prog_HAVE_FLEX="$HAVE_FLEX" # Let the user override the test.
  4788. else
  4789. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4790. for as_dir in $PATH
  4791. do
  4792.   IFS=$as_save_IFS
  4793.   test -z "$as_dir" && as_dir=.
  4794.     for ac_exec_ext in '' $ac_executable_extensions; do
  4795.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4796.     ac_cv_prog_HAVE_FLEX="yes"
  4797.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4798.     break 2
  4799.   fi
  4800. done
  4801.   done
  4802. IFS=$as_save_IFS
  4803.  
  4804.   test -z "$ac_cv_prog_HAVE_FLEX" && ac_cv_prog_HAVE_FLEX="no"
  4805. fi
  4806. fi
  4807. HAVE_FLEX=$ac_cv_prog_HAVE_FLEX
  4808. if test -n "$HAVE_FLEX"; then
  4809.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_FLEX" >&5
  4810. $as_echo "$HAVE_FLEX" >&6; }
  4811. else
  4812.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4813. $as_echo "no" >&6; }
  4814. fi
  4815.  
  4816.  
  4817.  
  4818.  
  4819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for required Math::BigInt perl module" >&5
  4820. $as_echo_n "checking for required Math::BigInt perl module... " >&6; }
  4821. perl -e "use Math::BigInt" 2>&1 > /dev/null
  4822. if test $? != 0; then
  4823.     as_fn_error "no" "$LINENO" 5
  4824. else
  4825.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4826. $as_echo "yes" >&6; }
  4827. fi
  4828.  
  4829. if test $host != $build; then
  4830.     for ac_prog in gcc cc
  4831. do
  4832.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  4833. set dummy $ac_prog; ac_word=$2
  4834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4835. $as_echo_n "checking for $ac_word... " >&6; }
  4836. if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
  4837.   $as_echo_n "(cached) " >&6
  4838. else
  4839.   if test -n "$BUILD_CC"; then
  4840.   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
  4841. else
  4842. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4843. for as_dir in $PATH
  4844. do
  4845.   IFS=$as_save_IFS
  4846.   test -z "$as_dir" && as_dir=.
  4847.     for ac_exec_ext in '' $ac_executable_extensions; do
  4848.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4849.     ac_cv_prog_BUILD_CC="$ac_prog"
  4850.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4851.     break 2
  4852.   fi
  4853. done
  4854.   done
  4855. IFS=$as_save_IFS
  4856.  
  4857. fi
  4858. fi
  4859. BUILD_CC=$ac_cv_prog_BUILD_CC
  4860. if test -n "$BUILD_CC"; then
  4861.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
  4862. $as_echo "$BUILD_CC" >&6; }
  4863. else
  4864.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4865. $as_echo "no" >&6; }
  4866. fi
  4867.  
  4868.  
  4869.   test -n "$BUILD_CC" && break
  4870. done
  4871.  
  4872. else
  4873.     BUILD_CC=$CC
  4874.     BUILD_CFLAGS=$BUILD_CFLAGS
  4875.     BUILD_LDFLAGS=$BUILD_LDFLAGS
  4876. fi
  4877.  
  4878.  
  4879.  
  4880.  
  4881.  
  4882. #
  4883. # Threading options.
  4884. #
  4885. # Client - thread-safe or not
  4886. #   --disable-thread-safety : chooses null or posix locking mechanism
  4887. #   For applications that know they are not multi-threaded, or choose
  4888. #   to handle locking themselves, this configure option can be used to
  4889. #   slightly decrease library-induced latency by removing the locking.
  4890. #
  4891. # Client - job threading
  4892. #   libpvfs2-threaded.{so,a} with __PVFS2_JOB_THREADED__
  4893. #   This option causes the client library to spawn an extra thread
  4894. #   to handle network communications.  In this way, it is possible
  4895. #   that the library can handle new and completed requests from
  4896. #   the application while also interacting with the network.
  4897. #
  4898. #   These separate libraries can not be built using the existing
  4899. #   configure mechanism.  They are only built if required by the
  4900. #   kernel module helper.
  4901. #
  4902. # Server - three options:
  4903. #   trove
  4904. #     (hack Makefile.in)
  4905. #   job
  4906. #     (hack Makefile.in)
  4907. #   aio
  4908. #     --disable-aio-threaded-callbacks
  4909. #
  4910. #   Trove (storage) and job threading in the server are implemented
  4911. #   using #defines, but not exported through the configure mechanism.
  4912. #   AIO threaded callbacks are a separate thread used in conjunction
  4913. #   with trove, and can be disabled through a configure option as
  4914. #   AIO has been found to be buggy on many systems.
  4915. #
  4916. #
  4917. # Kernel module helper - job threading
  4918. #   --enable-threaded-kmod-helper
  4919. #
  4920. #   This is a special client that "helps" applications that access PVFS
  4921. #   through the kernel using normal VFS calls (e.g. "ls").  This
  4922. #   configure options builds it using __PVFS2_JOB_THREADED__ as described
  4923. #   above.  That enables a thread for the network layer and a thread
  4924. #   for the kernel interface.  This has the potential to increase the
  4925. #   rate at which concurrent operations are processed, but has the potential
  4926. #   drawback of somewhat higher overhead for a single operation and lack
  4927. #   of testing.
  4928. #
  4929. #   Enabling this options causes one of libpvfs2-threaded.{so,a} to be
  4930. #   built, depending on --enable-shared and --enable-static.  If both are
  4931. #   enabled, the shared library takes precedence.
  4932. #
  4933.  
  4934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for client library thread safety support" >&5
  4935. $as_echo_n "checking for client library thread safety support... " >&6; }
  4936. @%:@ Check whether --enable-thread-safety was given.
  4937. if test "${enable_thread_safety+set}" = set; then :
  4938.   enableval=$enable_thread_safety; if test "x$enableval" = "xno" ; then
  4939.     LIBCFLAGS="$LIBCFLAGS -D__GEN_NULL_LOCKING__"
  4940.     THREAD_LIB=""
  4941.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4942. $as_echo "no" >&6; }
  4943. fi
  4944. else
  4945.      LIBCFLAGS="$LIBCFLAGS -D__GEN_POSIX_LOCKING__"
  4946.     THREAD_LIB="-lpthread"
  4947.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4948. $as_echo "yes" >&6; } 
  4949. fi
  4950.  
  4951.  
  4952.  
  4953.  
  4954.  
  4955. @%:@ Check whether --enable-server was given.
  4956. if test "${enable_server+set}" = set; then :
  4957.   enableval=$enable_server; if test "x$enableval" = "xyes" ; then
  4958.     BUILD_SERVER=1
  4959.     NEED_BERKELEY_DB=yes
  4960. else
  4961.     BUILD_SERVER=""
  4962. fi
  4963. else
  4964.   BUILD_SERVER=1
  4965.     NEED_BERKELEY_DB=yes
  4966. fi
  4967.  
  4968.  
  4969.  
  4970.  
  4971. @%:@ Check whether --with-openssl was given.
  4972. if test "${with_openssl+set}" = set; then :
  4973.   withval=$with_openssl; 
  4974.     opensslpath=${withval}
  4975.  
  4976.     if test "x${withval}" != "xno"; then
  4977.  
  4978.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library" >&5
  4979. $as_echo_n "checking for openssl library... " >&6; }
  4980.     
  4981.         if test "x${opensslpath}" != "x"; then
  4982.             CFLAGS="${CFLAGS} -I${opensslpath}/include"
  4983.             LDFLAGS="$LDFLAGS -L${opensslpath}/lib64 -L${opensslpath}/lib"
  4984.             SERVER_LDFLAGS="$SERVER_LDFLAGS -L${opensslpath}/lib64 -L${opensslpath}/lib"
  4985.         fi
  4986.         LIBS="$LIBS -lcrypto -lssl"
  4987.     
  4988.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4989. /* end confdefs.h.  */
  4990. #include "openssl/bio.h"
  4991. _ACEOF
  4992. if ac_fn_c_try_compile "$LINENO"; then :
  4993.   
  4994. else
  4995.   as_fn_error "Invalid openssl path specified.  No openssl/bio.h found." "$LINENO" 5
  4996. fi
  4997. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4998.     
  4999.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5000. /* end confdefs.h.  */
  5001. #include "openssl/bio.h"
  5002. int
  5003. main ()
  5004. {
  5005. BIO * b;
  5006.   ;
  5007.   return 0;
  5008. }
  5009. _ACEOF
  5010. if ac_fn_c_try_link "$LINENO"; then :
  5011.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5012. $as_echo "yes" >&6; }
  5013. else
  5014.   as_fn_error "could not find openssl libs" "$LINENO" 5
  5015. fi
  5016. rm -f core conftest.err conftest.$ac_objext \
  5017.     conftest$ac_exeext conftest.$ac_ext
  5018.     
  5019.         
  5020. $as_echo "@%:@define WITH_OPENSSL 1" >>confdefs.h
  5021.  
  5022.         
  5023.     for ac_header in openssl/evp.h
  5024. do :
  5025.   ac_fn_c_check_header_mongrel "$LINENO" "openssl/evp.h" "ac_cv_header_openssl_evp_h" "$ac_includes_default"
  5026. if test "x$ac_cv_header_openssl_evp_h" = x""yes; then :
  5027.   cat >>confdefs.h <<_ACEOF
  5028. @%:@define HAVE_OPENSSL_EVP_H 1
  5029. _ACEOF
  5030.  
  5031. fi
  5032.  
  5033. done
  5034.  
  5035.     for ac_header in openssl/crypto.h
  5036. do :
  5037.   ac_fn_c_check_header_mongrel "$LINENO" "openssl/crypto.h" "ac_cv_header_openssl_crypto_h" "$ac_includes_default"
  5038. if test "x$ac_cv_header_openssl_crypto_h" = x""yes; then :
  5039.   cat >>confdefs.h <<_ACEOF
  5040. @%:@define HAVE_OPENSSL_CRYPTO_H 1
  5041. _ACEOF
  5042.  
  5043. fi
  5044.  
  5045. done
  5046.  
  5047.     fi
  5048.  
  5049. else
  5050.   
  5051.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library" >&5
  5052. $as_echo_n "checking for openssl library... " >&6; }
  5053.     TMPLIBS=${LIBS}
  5054.     LIBS="$LIBS -lcrypto -lssl"
  5055.  
  5056.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5057. /* end confdefs.h.  */
  5058. #include "openssl/bio.h"
  5059. _ACEOF
  5060. if ac_fn_c_try_compile "$LINENO"; then :
  5061.   
  5062. else
  5063.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No openssl headers found." >&5
  5064. $as_echo "$as_me: WARNING: No openssl headers found." >&2;}
  5065. fi
  5066. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5067.  
  5068.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5069. /* end confdefs.h.  */
  5070. #include "openssl/bio.h"
  5071. int
  5072. main ()
  5073. {
  5074. BIO * b;
  5075.   ;
  5076.   return 0;
  5077. }
  5078. _ACEOF
  5079. if ac_fn_c_try_link "$LINENO"; then :
  5080.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5081. $as_echo "yes" >&6; }
  5082.        
  5083. $as_echo "@%:@define WITH_OPENSSL 1" >>confdefs.h
  5084.  
  5085.       
  5086. else
  5087.   
  5088.           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No openssl headers found." >&5
  5089. $as_echo "$as_me: WARNING: No openssl headers found." >&2;}
  5090.     LIBS=${TMPLIBS}
  5091.       
  5092. fi
  5093. rm -f core conftest.err conftest.$ac_objext \
  5094.     conftest$ac_exeext conftest.$ac_ext
  5095.  
  5096.     for ac_header in openssl/evp.h
  5097. do :
  5098.   ac_fn_c_check_header_mongrel "$LINENO" "openssl/evp.h" "ac_cv_header_openssl_evp_h" "$ac_includes_default"
  5099. if test "x$ac_cv_header_openssl_evp_h" = x""yes; then :
  5100.   cat >>confdefs.h <<_ACEOF
  5101. @%:@define HAVE_OPENSSL_EVP_H 1
  5102. _ACEOF
  5103.  
  5104. fi
  5105.  
  5106. done
  5107.  
  5108.     for ac_header in openssl/crypto.h
  5109. do :
  5110.   ac_fn_c_check_header_mongrel "$LINENO" "openssl/crypto.h" "ac_cv_header_openssl_crypto_h" "$ac_includes_default"
  5111. if test "x$ac_cv_header_openssl_crypto_h" = x""yes; then :
  5112.   cat >>confdefs.h <<_ACEOF
  5113. @%:@define HAVE_OPENSSL_CRYPTO_H 1
  5114. _ACEOF
  5115.  
  5116. fi
  5117.  
  5118. done
  5119.  
  5120.  
  5121.  
  5122. fi
  5123.  
  5124.  
  5125. @%:@ Check whether --enable-karma-mem-usage-stats was given.
  5126. if test "${enable_karma_mem_usage_stats+set}" = set; then :
  5127.   enableval=$enable_karma_mem_usage_stats; if test "x$enableval" = "xno" ; then
  5128.     CFLAGS="$CFLAGS -D__KARMA_DISABLE_MEM_USAGE__"
  5129. fi
  5130.  
  5131. fi
  5132.  
  5133.  
  5134. @%:@ Check whether --enable-bmi-only was given.
  5135. if test "${enable_bmi_only+set}" = set; then :
  5136.   enableval=$enable_bmi_only; if test "x$enableval" = "xyes" ; then
  5137.     BUILD_BMI_ONLY=1
  5138. fi
  5139.  
  5140. fi
  5141.  
  5142.  
  5143.  
  5144. if test "x$BUILD_BMI_ONLY" = "x1"; then
  5145.     BUILD_SERVER=""
  5146.     NEED_BERKELEY_DB=no
  5147.     
  5148.     
  5149. fi
  5150.  
  5151. @%:@ Check whether --enable-perf-counters was given.
  5152. if test "${enable_perf_counters+set}" = set; then :
  5153.   enableval=$enable_perf_counters; if test "x$enableval" = "xno" ; then
  5154.     CFLAGS="$CFLAGS -D__PVFS2_DISABLE_PERF_COUNTERS__"
  5155. fi
  5156.  
  5157. fi
  5158.  
  5159.  
  5160. MMAP_RA_CACHE=""
  5161. @%:@ Check whether --enable-mmap-racache was given.
  5162. if test "${enable_mmap_racache+set}" = set; then :
  5163.   enableval=$enable_mmap_racache; if test "x$enableval" = "xyes" ; then
  5164. MMAP_RA_CACHE="-DUSE_MMAP_RA_CACHE"
  5165. fi
  5166.  
  5167. fi
  5168.  
  5169.  
  5170.  
  5171. @%:@ Check whether --enable-trusted-connections was given.
  5172. if test "${enable_trusted_connections+set}" = set; then :
  5173.   enableval=$enable_trusted_connections; if test "x$enableval" = "xyes"; then
  5174. TRUSTED_CONNECTIONS="-DUSE_TRUSTED"
  5175. fi
  5176. fi
  5177.  
  5178.  
  5179.  
  5180.  
  5181. test_for_karma()
  5182. {
  5183.   # Extract the first word of "pkg-config", so it can be a program name with args.
  5184. set dummy pkg-config; ac_word=$2
  5185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5186. $as_echo_n "checking for $ac_word... " >&6; }
  5187. if test "${ac_cv_prog_HAVE_PKGCONFIG+set}" = set; then :
  5188.   $as_echo_n "(cached) " >&6
  5189. else
  5190.   if test -n "$HAVE_PKGCONFIG"; then
  5191.   ac_cv_prog_HAVE_PKGCONFIG="$HAVE_PKGCONFIG" # Let the user override the test.
  5192. else
  5193. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5194. for as_dir in $PATH
  5195. do
  5196.   IFS=$as_save_IFS
  5197.   test -z "$as_dir" && as_dir=.
  5198.     for ac_exec_ext in '' $ac_executable_extensions; do
  5199.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5200.     ac_cv_prog_HAVE_PKGCONFIG="yes"
  5201.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5202.     break 2
  5203.   fi
  5204. done
  5205.   done
  5206. IFS=$as_save_IFS
  5207.  
  5208.   test -z "$ac_cv_prog_HAVE_PKGCONFIG" && ac_cv_prog_HAVE_PKGCONFIG="no"
  5209. fi
  5210. fi
  5211. HAVE_PKGCONFIG=$ac_cv_prog_HAVE_PKGCONFIG
  5212. if test -n "$HAVE_PKGCONFIG"; then
  5213.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_PKGCONFIG" >&5
  5214. $as_echo "$HAVE_PKGCONFIG" >&6; }
  5215. else
  5216.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5217. $as_echo "no" >&6; }
  5218. fi
  5219.  
  5220.  
  5221.   if test "x$HAVE_PKGCONFIG" = "xyes" ; then
  5222.      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk2.0 (for karma gui)" >&5
  5223. $as_echo_n "checking for gtk2.0 (for karma gui)... " >&6; }
  5224.      if `pkg-config --exists gtk+-2.0` ; then
  5225.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5226. $as_echo "yes" >&6; }
  5227.         GTKLIBS=`pkg-config --libs gtk+-2.0`
  5228.         GTKCFLAGS=`pkg-config --cflags gtk+-2.0`
  5229.  
  5230.         
  5231.         
  5232.         BUILD_KARMA="1"
  5233.         
  5234.      else
  5235.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5236. $as_echo "no" >&6; }
  5237.      fi
  5238.   fi
  5239. }
  5240.  
  5241. @%:@ Check whether --enable-karma was given.
  5242. if test "${enable_karma+set}" = set; then :
  5243.   enableval=$enable_karma;  if test "x$enableval" = "xyes" ; then
  5244.       test_for_karma
  5245.    fi
  5246.  
  5247. else
  5248.   test_for_karma
  5249.  
  5250. fi
  5251.  
  5252.  
  5253. @%:@ Check whether --enable-static was given.
  5254. if test "${enable_static+set}" = set; then :
  5255.   enableval=$enable_static; build_static=$enableval
  5256. else
  5257.   build_static=yes
  5258. fi
  5259.  
  5260.  
  5261.  
  5262.  
  5263.  
  5264. set_redhat24=0
  5265. use_redhat24=0
  5266.  
  5267. @%:@ Check whether --enable-redhat24 was given.
  5268. if test "${enable_redhat24+set}" = set; then :
  5269.   enableval=$enable_redhat24; set_redhat24=1
  5270.     if test "$enableval" = no ; then 
  5271.         use_redhat24=0
  5272.     else
  5273.         use_redhat24=1 
  5274.     fi
  5275.  
  5276. fi
  5277.  
  5278.  
  5279.  
  5280. set_nptl_workaround=0
  5281. use_nptl_workaround=0
  5282.  
  5283. @%:@ Check whether --enable-nptl-workaround was given.
  5284. if test "${enable_nptl_workaround+set}" = set; then :
  5285.   enableval=$enable_nptl_workaround; set_nptl_workaround=1
  5286.     if test "$enableval" = no ; then 
  5287.         use_nptl_workaround=0
  5288.     else
  5289.         use_nptl_workaround=1 
  5290.     fi
  5291.  
  5292. fi
  5293.  
  5294.  
  5295. RHTAG1="Red Hat Linux release 9"
  5296. RHTAG2="Red Hat Enterprise Linux WS release 3"
  5297. RHTAG3="Red Hat Enterprise Linux AS release 3"
  5298. RHTAG4="Red Hat Enterprise Linux ES release 3"
  5299. RHTAG5="Red Hat Linux Advanced Server release 2.1AS"
  5300. RHTAG6="Fedora Core release 1 (Yarrow)"
  5301.  
  5302.  
  5303.  
  5304. REDHAT_RELEASE=""
  5305. if test -f /etc/redhat-release; then
  5306.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tagged Redhat releases (must patch)" >&5
  5307. $as_echo_n "checking for tagged Redhat releases (must patch)... " >&6; }
  5308.     REDHAT_REL=`cat /etc/redhat-release`
  5309.     if test "x`echo $REDHAT_REL | cut -b 1-23`" = "x$RHTAG1" ||
  5310.        test "x`echo $REDHAT_REL | cut -b 1-37`" = "x$RHTAG2" ||
  5311.        test "x`echo $REDHAT_REL | cut -b 1-37`" = "x$RHTAG3" ||
  5312.        test "x`echo $REDHAT_REL | cut -b 1-37`" = "x$RHTAG4" ||
  5313.        test "x`echo $REDHAT_REL | cut -b 1-43`" = "x$RHTAG5" ||
  5314.        test "x`echo $REDHAT_REL | cut -b 1-30`" = "x$RHTAG6" ; then
  5315.        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5316. $as_echo "yes" >&6; }
  5317.        
  5318.        if test "$set_redhat24" = 0 || test "$set_nptl_workaround" = 0 ; then
  5319.            as_fn_error "
  5320.     You appear to be configuring PVFS2 on a RedHat distribution that
  5321.     likely ships with a heavily modified kernel and c library.  You must
  5322.     specify two configure arguments to provide necessary information before
  5323.     proceeding.  First pick one of these two options:
  5324.     =============================
  5325.     --enable-redhat24         (if you are using a redhat provided 2.4 kernel)
  5326.     --disable-redhat24        (if you are using a stock kernel.org kernel)
  5327.     =============================
  5328.     Also pick one of the next two options.  You should probably enable the
  5329.     workaround if you are using RedHat EL 3 prior to update 2.  Otherwise it
  5330.     is probably safer (and higher performance) to disable it:
  5331.     =============================
  5332.     --enable-nptl-workaround  (to work around buggy glibc pthread library)
  5333.     --disable-nptl-workaround (if you trust your glibc pthread library)
  5334.     ============================= " "$LINENO" 5
  5335.        fi
  5336.     else
  5337.        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5338. $as_echo "no" >&6; }
  5339.     fi
  5340. fi
  5341.  
  5342.  
  5343. if test "$use_redhat24" = 1 ; then
  5344.    REDHAT_RELEASE="-DREDHAT_RELEASE_9"
  5345. fi
  5346.  
  5347.  
  5348. if test "$use_nptl_workaround" = 1 ; then
  5349.    NPTL_WORKAROUND="1"
  5350. fi
  5351.  
  5352.  
  5353. use_aio_thcb=1
  5354. @%:@ Check whether --enable-aio-threaded-callbacks was given.
  5355. if test "${enable_aio_threaded_callbacks+set}" = set; then :
  5356.   enableval=$enable_aio_threaded_callbacks; if test "$enableval" = no ; then use_aio_thcb=0 ; fi
  5357. fi
  5358.  
  5359.  
  5360.  
  5361. MISC_TROVE_FLAGS=""
  5362. if test $use_aio_thcb = 1 ; then
  5363.     MISC_TROVE_FLAGS="-D__PVFS2_TROVE_AIO_THREADED__"
  5364. fi
  5365.  
  5366.  
  5367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __error_code field in aiocb struct" >&5
  5368. $as_echo_n "checking for __error_code field in aiocb struct... " >&6; }
  5369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5370. /* end confdefs.h.  */
  5371.  
  5372.          #include <aio.h>
  5373.     
  5374. int
  5375. main ()
  5376. {
  5377.  
  5378.         struct aiocb aiocb;
  5379.     aiocb.__error_code = 0;
  5380.     
  5381.   ;
  5382.   return 0;
  5383. }
  5384. _ACEOF
  5385. if ac_fn_c_try_compile "$LINENO"; then :
  5386.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5387. $as_echo "yes" >&6; }
  5388.     
  5389. $as_echo "@%:@define HAVE_AIOCB_ERROR_CODE 1" >>confdefs.h
  5390.  
  5391.     
  5392. else
  5393.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5394. $as_echo "no" >&6; }
  5395.  
  5396. fi
  5397. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5398.  
  5399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __return_value field in aiocb struct" >&5
  5400. $as_echo_n "checking for __return_value field in aiocb struct... " >&6; }
  5401. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5402. /* end confdefs.h.  */
  5403.  
  5404.         #include <aio.h>
  5405.     
  5406. int
  5407. main ()
  5408. {
  5409.  
  5410.         struct aiocb aiocb;
  5411.     aiocb.__return_value = 0;
  5412.     
  5413.   ;
  5414.   return 0;
  5415. }
  5416. _ACEOF
  5417. if ac_fn_c_try_compile "$LINENO"; then :
  5418.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5419. $as_echo "yes" >&6; }
  5420.     
  5421. $as_echo "@%:@define HAVE_AIOCB_RETURN_VALUE 1" >>confdefs.h
  5422.  
  5423.     
  5424. else
  5425.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5426. $as_echo "no" >&6; }
  5427.  
  5428. fi
  5429. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5430.  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  5431. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  5432. if test "${ac_cv_c_bigendian+set}" = set; then :
  5433.   $as_echo_n "(cached) " >&6
  5434. else
  5435.   ac_cv_c_bigendian=unknown
  5436.     # See if we're dealing with a universal compiler.
  5437.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5438. /* end confdefs.h.  */
  5439. #ifndef __APPLE_CC__
  5440.            not a universal capable compiler
  5441.          #endif
  5442.          typedef int dummy;
  5443.         
  5444. _ACEOF
  5445. if ac_fn_c_try_compile "$LINENO"; then :
  5446.   
  5447.     # Check for potential -arch flags.  It is not universal unless
  5448.     # there are at least two -arch flags with different values.
  5449.     ac_arch=
  5450.     ac_prev=
  5451.     for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  5452.      if test -n "$ac_prev"; then
  5453.        case $ac_word in
  5454.          i?86 | x86_64 | ppc | ppc64)
  5455.            if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  5456.          ac_arch=$ac_word
  5457.            else
  5458.          ac_cv_c_bigendian=universal
  5459.          break
  5460.            fi
  5461.            ;;
  5462.        esac
  5463.        ac_prev=
  5464.      elif test "x$ac_word" = "x-arch"; then
  5465.        ac_prev=arch
  5466.      fi
  5467.        done
  5468. fi
  5469. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5470.     if test $ac_cv_c_bigendian = unknown; then
  5471.       # See if sys/param.h defines the BYTE_ORDER macro.
  5472.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5473. /* end confdefs.h.  */
  5474. #include <sys/types.h>
  5475.          #include <sys/param.h>
  5476.        
  5477. int
  5478. main ()
  5479. {
  5480. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  5481.              && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  5482.              && LITTLE_ENDIAN)
  5483.           bogus endian macros
  5484.          #endif
  5485.        
  5486.   ;
  5487.   return 0;
  5488. }
  5489. _ACEOF
  5490. if ac_fn_c_try_compile "$LINENO"; then :
  5491.   # It does; now see whether it defined to BIG_ENDIAN or not.
  5492.      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5493. /* end confdefs.h.  */
  5494. #include <sys/types.h>
  5495.         #include <sys/param.h>
  5496.           
  5497. int
  5498. main ()
  5499. {
  5500. #if BYTE_ORDER != BIG_ENDIAN
  5501.          not big endian
  5502.         #endif
  5503.           
  5504.   ;
  5505.   return 0;
  5506. }
  5507. _ACEOF
  5508. if ac_fn_c_try_compile "$LINENO"; then :
  5509.   ac_cv_c_bigendian=yes
  5510. else
  5511.   ac_cv_c_bigendian=no
  5512. fi
  5513. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5514. fi
  5515. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5516.     fi
  5517.     if test $ac_cv_c_bigendian = unknown; then
  5518.       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  5519.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5520. /* end confdefs.h.  */
  5521. #include <limits.h>
  5522.        
  5523. int
  5524. main ()
  5525. {
  5526. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  5527.           bogus endian macros
  5528.          #endif
  5529.        
  5530.   ;
  5531.   return 0;
  5532. }
  5533. _ACEOF
  5534. if ac_fn_c_try_compile "$LINENO"; then :
  5535.   # It does; now see whether it defined to _BIG_ENDIAN or not.
  5536.      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5537. /* end confdefs.h.  */
  5538. #include <limits.h>
  5539.           
  5540. int
  5541. main ()
  5542. {
  5543. #ifndef _BIG_ENDIAN
  5544.          not big endian
  5545.         #endif
  5546.           
  5547.   ;
  5548.   return 0;
  5549. }
  5550. _ACEOF
  5551. if ac_fn_c_try_compile "$LINENO"; then :
  5552.   ac_cv_c_bigendian=yes
  5553. else
  5554.   ac_cv_c_bigendian=no
  5555. fi
  5556. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5557. fi
  5558. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5559.     fi
  5560.     if test $ac_cv_c_bigendian = unknown; then
  5561.       # Compile a test program.
  5562.       if test "$cross_compiling" = yes; then :
  5563.   # Try to guess by grepping values from an object file.
  5564.      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5565. /* end confdefs.h.  */
  5566. short int ascii_mm[] =
  5567.           { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  5568.         short int ascii_ii[] =
  5569.           { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  5570.         int use_ascii (int i) {
  5571.           return ascii_mm[i] + ascii_ii[i];
  5572.         }
  5573.         short int ebcdic_ii[] =
  5574.           { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  5575.         short int ebcdic_mm[] =
  5576.           { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  5577.         int use_ebcdic (int i) {
  5578.           return ebcdic_mm[i] + ebcdic_ii[i];
  5579.         }
  5580.         extern int foo;
  5581.           
  5582. int
  5583. main ()
  5584. {
  5585. return use_ascii (foo) == use_ebcdic (foo);
  5586.   ;
  5587.   return 0;
  5588. }
  5589. _ACEOF
  5590. if ac_fn_c_try_compile "$LINENO"; then :
  5591.   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  5592.           ac_cv_c_bigendian=yes
  5593.         fi
  5594.         if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  5595.           if test "$ac_cv_c_bigendian" = unknown; then
  5596.         ac_cv_c_bigendian=no
  5597.           else
  5598.         # finding both strings is unlikely to happen, but who knows?
  5599.         ac_cv_c_bigendian=unknown
  5600.           fi
  5601.         fi
  5602. fi
  5603. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5604. else
  5605.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5606. /* end confdefs.h.  */
  5607. $ac_includes_default
  5608. int
  5609. main ()
  5610. {
  5611.  
  5612.          /* Are we little or big endian?  From Harbison&Steele.  */
  5613.          union
  5614.          {
  5615.            long int l;
  5616.            char c[sizeof (long int)];
  5617.          } u;
  5618.          u.l = 1;
  5619.          return u.c[sizeof (long int) - 1] == 1;
  5620.        
  5621.   ;
  5622.   return 0;
  5623. }
  5624. _ACEOF
  5625. if ac_fn_c_try_run "$LINENO"; then :
  5626.   ac_cv_c_bigendian=no
  5627. else
  5628.   ac_cv_c_bigendian=yes
  5629. fi
  5630. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5631.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  5632. fi
  5633.  
  5634.     fi
  5635. fi
  5636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  5637. $as_echo "$ac_cv_c_bigendian" >&6; }
  5638.  case $ac_cv_c_bigendian in #(
  5639.    yes)
  5640.      $as_echo "@%:@define WORDS_BIGENDIAN 1" >>confdefs.h
  5641. ;; #(
  5642.    no)
  5643.       ;; #(
  5644.    universal)
  5645.          
  5646. $as_echo "@%:@define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  5647.  
  5648.      ;; #(
  5649.    *)
  5650.      as_fn_error "unknown endianness
  5651.  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  5652.  esac
  5653.  
  5654.  
  5655. # The cast to long int works around a bug in the HP C Compiler
  5656. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5657. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5658. # This bug is HP SR number 8606223364.
  5659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
  5660. $as_echo_n "checking size of void *... " >&6; }
  5661. if test "${ac_cv_sizeof_void_p+set}" = set; then :
  5662.   $as_echo_n "(cached) " >&6
  5663. else
  5664.   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
  5665.   
  5666. else
  5667.   if test "$ac_cv_type_void_p" = yes; then
  5668.      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5669. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5670. { as_fn_set_status 77
  5671. as_fn_error "cannot compute sizeof (void *)
  5672. See \`config.log' for more details." "$LINENO" 5; }; }
  5673.    else
  5674.      ac_cv_sizeof_void_p=0
  5675.    fi
  5676. fi
  5677.  
  5678. fi
  5679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
  5680. $as_echo "$ac_cv_sizeof_void_p" >&6; }
  5681.  
  5682.  
  5683.  
  5684. cat >>confdefs.h <<_ACEOF
  5685. @%:@define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  5686. _ACEOF
  5687.  
  5688.  
  5689.  
  5690.  
  5691. @%:@ Check whether --with-mtrace was given.
  5692. if test "${with_mtrace+set}" = set; then :
  5693.   withval=$with_mtrace; CFLAGS="$CFLAGS -include mcheck.h"
  5694.  
  5695. $as_echo "@%:@define WITH_MTRACE 1" >>confdefs.h
  5696.  
  5697.  
  5698. fi
  5699.  
  5700.  
  5701.  
  5702. @%:@ Check whether --with-berkdb-debug was given.
  5703. if test "${with_berkdb_debug+set}" = set; then :
  5704.   withval=$with_berkdb_debug; 
  5705. $as_echo "@%:@define BERKDB_ERROR_REPORTING 1" >>confdefs.h
  5706.  
  5707.  
  5708. fi
  5709.  
  5710.  
  5711. TAU_INCS=
  5712. BUILD_TAU=
  5713.  
  5714.  
  5715. @%:@ Check whether --with-tau was given.
  5716. if test "${with_tau+set}" = set; then :
  5717.   withval=$with_tau; if test "x$withval" = "xyes" ; then
  5718.            as_fn_error "--with-tau must be given a pathname" "$LINENO" 5
  5719.     else
  5720.        TAU_INCS="-I$withval/include"
  5721.        CFLAGS="$CFLAGS $TAU_INCS -D__PVFS2_ENABLE_EVENT__"
  5722.        LDFLAGS="$LDFLAGS -L$withval/$(uname -m)/lib"
  5723.        tau_mkfile=$withval/$(uname -m)/lib/Makefile.*-profile-trace
  5724.        if test ! -f $tau_mkfile; then
  5725.            as_fn_error "TAU not compiled with profiling and tracing support" "$LINENO" 5
  5726.        fi
  5727.        tau_config=$(echo $tau_mkfile | sed -e "s|.*Makefile.tau-||")
  5728.        LIBS="$LIBS -lTAU_tf -lTAU_traceinput-$tau_config -ltau-$tau_config -lpthread -lstdc++"
  5729.        
  5730. $as_echo "@%:@define HAVE_TAU 1" >>confdefs.h
  5731.  
  5732.        BUILD_TAU=1
  5733.     fi
  5734.  
  5735. fi
  5736.  
  5737.  
  5738.  
  5739.  
  5740.  
  5741. BUILD_KERNEL=
  5742.  
  5743.  
  5744. @%:@ Check whether --with-kernel was given.
  5745. if test "${with_kernel+set}" = set; then :
  5746.   withval=$with_kernel; if test "x$withval" = "xyes" -o "x$withval" = "x" ; then
  5747.            as_fn_error "--with-kernel must be given the path to your kernel source." "$LINENO" 5
  5748.     fi
  5749.     if ! test -d $withval ; then
  5750.            as_fn_error "The --with-kernel path $withval is not a directory." "$LINENO" 5
  5751.     fi
  5752.     if ! test -r $withval/include/linux/version.h ; then
  5753.        as_fn_error "The kernel source tree must have been configured." "$LINENO" 5
  5754.     fi
  5755.  
  5756.     if test -r $withval/include/linux/version.h && grep -q UTS_RELEASE..2\\.6\\. $withval/include/linux/version.h ; then
  5757.         vers=`sed -n '/UTS_RELEASE/{; s/.*"\(0-9\.0-9\).*".*/\1/; p; }' $withval/include/linux/version.h`
  5758.     elif test -r $withval/include/linux/utsrelease.h && grep -q UTS_RELEASE..2\\.6\\. $withval/include/linux/utsrelease.h; then
  5759.         vers=`sed -n '/UTS_RELEASE/{; s/.*"\(0-9\.0-9\).*".*/\1/; p; }' $withval/include/linux/utsrelease.h`
  5760.     elif test -r  $withval/include/generated/utsrelease.h && grep -q UTS_RELEASE..2\\.6\\. $withval/include/generated/utsrelease.h; then
  5761.         vers=`sed -n '/UTS_RELEASE/{; s/.*"\(0-9\.0-9\).*".*/\1/; p; }' $withval/include/generated/utsrelease.h`
  5762.     else
  5763.         as_fn_error "The kernel source tree does not appear to be 2.6" "$LINENO" 5
  5764.     fi
  5765.  
  5766.     # At least up through 2.6.3 needed to write .__modpost.cmd; this changed
  5767.     # sometime between then and 2.6.10.   Now anybody can compile out-of-tree
  5768.     # modules against a configured kernel tree
  5769.     LINUX_KERNEL_SRC="$withval"
  5770.     BUILD_KERNEL=1
  5771.     
  5772. else
  5773.   LINUX_KERNEL_SRC=""
  5774.  
  5775. fi
  5776.  
  5777.  
  5778.  
  5779. @%:@ Check whether --with-kernel24 was given.
  5780. if test "${with_kernel24+set}" = set; then :
  5781.   withval=$with_kernel24; if test "x$withval" = "xyes" -o "x$withval" = "x" ; then
  5782.            as_fn_error "--with-kernel24 must be given the path to your kernel 2.4.x source." "$LINENO" 5
  5783.     fi
  5784.     if ! test -d $withval ; then
  5785.            as_fn_error "The --with-kernel path $withval is not a directory." "$LINENO" 5
  5786.     fi
  5787.     if ! test -r $withval/include/linux/version.h ; then
  5788.        as_fn_error "The kernel source tree must have been configured." "$LINENO" 5
  5789.     fi
  5790.     vers=`sed -n '/UTS_RELEASE/{; s/.*"\(0-9\.0-9\).*".*/\1/; p; }' $withval/include/linux/version.h`
  5791.     if ! grep -q UTS_RELEASE..2\\.4\\. $withval/include/linux/version.h ; then
  5792.        as_fn_error "The kernel source tree does not appear to be 2.4" "$LINENO" 5
  5793.     fi
  5794.     k24_minor_ver=`echo $vers | cut -b 26- | sed -n 's/\"//p' | head -n 1`
  5795.     tmp_k24_minor_ver=`echo $k24_minor_ver | grep \-`
  5796.     if ! test "x$tmp_k24_minor_ver" = "x"; then
  5797.        tmp_k24_minor_ver=`echo $k24_minor_ver | cut -d- -f1`
  5798.        k24_minor_ver=$tmp_k24_minor_ver
  5799.     fi
  5800.     LINUX24_KERNEL_SRC="$withval" LINUX24_KERNEL_MINOR_VER="`echo $k24_minor_ver| cut -d'.' -f 1`"
  5801.     BUILD_KERNEL=1
  5802.     
  5803. else
  5804.   LINUX24_KERNEL_SRC="" LINUX24_KERNEL_MINOR_VER=""
  5805. fi
  5806.  
  5807.  
  5808.  
  5809.  
  5810.  
  5811. oldcflags=$CFLAGS
  5812. if test -z "${LINUX_KERNEL_SRC}"  ; then
  5813.     lk_src=${LINUX24_KERNEL_SRC}
  5814. elif test -z "${LINUX24_KERNEL_SRC}"  ; then
  5815.     lk_src=${LINUX_KERNEL_SRC}
  5816. fi
  5817.  
  5818.  
  5819. @%:@ Check whether --enable-kernel-aio was given.
  5820. if test "${enable_kernel_aio+set}" = set; then :
  5821.   enableval=$enable_kernel_aio;  enable_kernel_aio=$enableval 
  5822. else
  5823.    enable_kernel_aio=yes 
  5824.   
  5825. fi
  5826.  
  5827.  
  5828. @%:@ Check whether --enable-kernel-sendfile was given.
  5829. if test "${enable_kernel_sendfile+set}" = set; then :
  5830.   enableval=$enable_kernel_sendfile;  enable_kernel_sendfile=$enableval 
  5831. else
  5832.    enable_kernel_sendfile=no 
  5833.   
  5834. fi
  5835.  
  5836.  
  5837. if test -n "$lk_src" ; then
  5838.     
  5839.                                 
  5840.             
  5841.     NOSTDINCFLAGS="-Werror-implicit-function-declaration -nostdinc -isystem `$CC -print-file-name=include`"
  5842.  
  5843.     CFLAGS="$USR_CFLAGS $NOSTDINCFLAGS -I$lk_src/include -I$lk_src/include/asm/mach-default -DKBUILD_STR(s)=#s -DKBUILD_BASENAME=KBUILD_STR(empty)  -DKBUILD_MODNAME=KBUILD_STR(empty)"
  5844.  
  5845.         if test -f $lk_src/include/generated/autoconf.h ; then
  5846.         CFLAGS="$CFLAGS -imacros $lk_src/include/generated/autoconf.h"
  5847.     else
  5848.         CFLAGS="$CFLAGS -imacros $lk_src/include/linux/autoconf.h"
  5849.     fi
  5850.  
  5851.                     if test -n "${ARCH}" ; then
  5852.         CFLAGS="$CFLAGS -I$lk_src/arch/${ARCH}/include -I$lk_src/arch/${ARCH}/include/asm/mach-default"
  5853.         else
  5854.             SUBARCH=`uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \
  5855.             -e s/arm.*/arm/ -e s/sa110/arm/ \
  5856.             -e s/s390x/s390/ -e s/parisc64/parisc/ \
  5857.             -e s/ppc.*/powerpc/ -e s/mips.*/mips/ \
  5858.             -e s/sh.*/sh/`
  5859.             if test "x$SUBARCH" = "xi386"; then
  5860.                 ARCH=x86    
  5861.             elif test "x$SUBARCH" = "xx86_64"; then
  5862.                 ARCH=x86    
  5863.             elif test "x$SUBARCH" = "xsparc64"; then
  5864.                 ARCH=sparc    
  5865.             else
  5866.                 ARCH=$SUBARCH
  5867.             fi
  5868.  
  5869.             CFLAGS="$CFLAGS -I$lk_src/arch/${ARCH}/include -I$lk_src/arch/${ARCH}/include/asm/mach-default"
  5870.     fi
  5871.  
  5872.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i_size_write in kernel" >&5
  5873. $as_echo_n "checking for i_size_write in kernel... " >&6; }
  5874.             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5875. /* end confdefs.h.  */
  5876.  
  5877.         #define __KERNEL__
  5878.         #include <linux/fs.h>
  5879.         void i_size_write(struct inode *inode,
  5880.                 loff_t i_size)
  5881.         {
  5882.             return;
  5883.         }
  5884.     
  5885. int
  5886. main ()
  5887. {
  5888.  
  5889.   ;
  5890.   return 0;
  5891. }
  5892. _ACEOF
  5893. if ac_fn_c_try_compile "$LINENO"; then :
  5894.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5895. $as_echo "no" >&6; }
  5896. else
  5897.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5898. $as_echo "yes" >&6; }
  5899.         
  5900. $as_echo "@%:@define HAVE_I_SIZE_WRITE 1" >>confdefs.h
  5901.  
  5902. fi
  5903. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5904.  
  5905.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i_size_read in kernel" >&5
  5906. $as_echo_n "checking for i_size_read in kernel... " >&6; }
  5907.             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5908. /* end confdefs.h.  */
  5909.  
  5910.         #define __KERNEL__
  5911.         #include <linux/fs.h>
  5912.         loff_t i_size_read(struct inode *inode)
  5913.         {
  5914.             return 0;
  5915.         }
  5916.     
  5917. int
  5918. main ()
  5919. {
  5920.  
  5921.   ;
  5922.   return 0;
  5923. }
  5924. _ACEOF
  5925. if ac_fn_c_try_compile "$LINENO"; then :
  5926.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5927. $as_echo "no" >&6; }
  5928. else
  5929.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5930. $as_echo "yes" >&6; }
  5931.         
  5932. $as_echo "@%:@define HAVE_I_SIZE_READ 1" >>confdefs.h
  5933.  
  5934. fi
  5935. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5936.  
  5937.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iget_locked function in kernel" >&5
  5938. $as_echo_n "checking for iget_locked function in kernel... " >&6; }
  5939.             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5940. /* end confdefs.h.  */
  5941.  
  5942.         #define __KERNEL__
  5943.         #include <linux/fs.h>
  5944.         loff_t iget_locked(struct inode *inode)
  5945.         {
  5946.             return 0;
  5947.         }
  5948.     
  5949. int
  5950. main ()
  5951. {
  5952.  
  5953.   ;
  5954.   return 0;
  5955. }
  5956. _ACEOF
  5957. if ac_fn_c_try_compile "$LINENO"; then :
  5958.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5959. $as_echo "no" >&6; }
  5960. else
  5961.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5962. $as_echo "yes" >&6; }
  5963.         
  5964. $as_echo "@%:@define HAVE_IGET_LOCKED 1" >>confdefs.h
  5965.  
  5966. fi
  5967. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5968.  
  5969.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iget4_locked function in kernel" >&5
  5970. $as_echo_n "checking for iget4_locked function in kernel... " >&6; }
  5971.             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5972. /* end confdefs.h.  */
  5973.  
  5974.         #define __KERNEL__
  5975.         #include <linux/fs.h>
  5976.         loff_t iget4_locked(struct inode *inode)
  5977.         {
  5978.             return 0;
  5979.         }
  5980.     
  5981. int
  5982. main ()
  5983. {
  5984.  
  5985.   ;
  5986.   return 0;
  5987. }
  5988. _ACEOF
  5989. if ac_fn_c_try_compile "$LINENO"; then :
  5990.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5991. $as_echo "no" >&6; }
  5992. else
  5993.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5994. $as_echo "yes" >&6; }
  5995.         
  5996. $as_echo "@%:@define HAVE_IGET4_LOCKED 1" >>confdefs.h
  5997.  
  5998. fi
  5999. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6000.  
  6001.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iget5_locked function in kernel" >&5
  6002. $as_echo_n "checking for iget5_locked function in kernel... " >&6; }
  6003.             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6004. /* end confdefs.h.  */
  6005.  
  6006.         #define __KERNEL__
  6007.         #include <linux/fs.h>
  6008.         loff_t iget5_locked(struct inode *inode)
  6009.         {
  6010.             return 0;
  6011.         }
  6012.     
  6013. int
  6014. main ()
  6015. {
  6016.  
  6017.   ;
  6018.   return 0;
  6019. }
  6020. _ACEOF
  6021. if ac_fn_c_try_compile "$LINENO"; then :
  6022.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6023. $as_echo "no" >&6; }
  6024. else
  6025.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6026. $as_echo "yes" >&6; }
  6027.         
  6028. $as_echo "@%:@define HAVE_IGET5_LOCKED 1" >>confdefs.h
  6029.  
  6030. fi
  6031. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6032.  
  6033.             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct xtvec in kernel" >&5
  6034. $as_echo_n "checking for struct xtvec in kernel... " >&6; }
  6035.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6036. /* end confdefs.h.  */
  6037.  
  6038.         #define __KERNEL__
  6039.         #include <linux/uio.h>
  6040.         static struct xtvec xv = { 0, 0 };
  6041.     
  6042. int
  6043. main ()
  6044. {
  6045.  
  6046.   ;
  6047.   return 0;
  6048. }
  6049. _ACEOF
  6050. if ac_fn_c_try_compile "$LINENO"; then :
  6051.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6052. $as_echo "yes" >&6; }
  6053.         
  6054. $as_echo "@%:@define HAVE_STRUCT_XTVEC 1" >>confdefs.h
  6055.  
  6056. else
  6057.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6058. $as_echo "no" >&6; }
  6059.     
  6060. fi
  6061. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6062.  
  6063.                                             tmp_cflags=$CFLAGS
  6064.         CFLAGS="$CFLAGS -Werror"
  6065.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct kmem_cache in kernel" >&5
  6066. $as_echo_n "checking for struct kmem_cache in kernel... " >&6; }
  6067.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6068. /* end confdefs.h.  */
  6069.  
  6070.         #define __KERNEL__
  6071.         #include <linux/kernel.h>
  6072.         #include <linux/slab.h>
  6073.  
  6074.         int foo(struct kmem_cache *s)
  6075.         {
  6076.             return (s == NULL) ? 3 : 4;
  6077.         }
  6078.     
  6079. int
  6080. main ()
  6081. {
  6082.  
  6083.   ;
  6084.   return 0;
  6085. }
  6086. _ACEOF
  6087. if ac_fn_c_try_compile "$LINENO"; then :
  6088.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6089. $as_echo "yes" >&6; }
  6090.         
  6091. $as_echo "@%:@define HAVE_STRUCT_KMEM_CACHE 1" >>confdefs.h
  6092.  
  6093. else
  6094.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6095. $as_echo "no" >&6; }
  6096.     
  6097. fi
  6098. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6099.         CFLAGS=$tmp_cflags
  6100.  
  6101.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SLAB_KERNEL flag in kernel" >&5
  6102. $as_echo_n "checking for SLAB_KERNEL flag in kernel... " >&6; }
  6103.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6104. /* end confdefs.h.  */
  6105.  
  6106.         #define __KERNEL__
  6107.         #include <linux/slab.h>
  6108.         static int flags = SLAB_KERNEL;
  6109.     
  6110. int
  6111. main ()
  6112. {
  6113.  
  6114.   ;
  6115.   return 0;
  6116. }
  6117. _ACEOF
  6118. if ac_fn_c_try_compile "$LINENO"; then :
  6119.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6120. $as_echo "yes" >&6; }
  6121.         
  6122. $as_echo "@%:@define HAVE_SLAB_KERNEL 1" >>confdefs.h
  6123.  
  6124. else
  6125.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6126. $as_echo "no" >&6; }
  6127.     
  6128. fi
  6129. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6130.  
  6131.             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory_backed in struct backing_dev_info in kernel" >&5
  6132. $as_echo_n "checking for memory_backed in struct backing_dev_info in kernel... " >&6; }
  6133.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6134. /* end confdefs.h.  */
  6135.  
  6136.         #define __KERNEL__
  6137.         #include <linux/mm.h>
  6138.         #include <linux/backing-dev.h>
  6139.         static struct backing_dev_info bdi = {
  6140.             .memory_backed = 0
  6141.         };
  6142.     
  6143. int
  6144. main ()
  6145. {
  6146.  
  6147.   ;
  6148.   return 0;
  6149. }
  6150. _ACEOF
  6151. if ac_fn_c_try_compile "$LINENO"; then :
  6152.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6153. $as_echo "yes" >&6; }
  6154.         
  6155. $as_echo "@%:@define HAVE_BDI_MEMORY_BACKED 1" >>confdefs.h
  6156.  
  6157. else
  6158.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6159. $as_echo "no" >&6; }
  6160.     
  6161. fi
  6162. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6163.  
  6164.         if test "x$enable_kernel_sendfile" = "xyes"; then
  6165.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile callback in struct file_operations in kernel" >&5
  6166. $as_echo_n "checking for sendfile callback in struct file_operations in kernel... " >&6; }
  6167.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6168. /* end confdefs.h.  */
  6169.  
  6170.             #define __KERNEL__
  6171.             #include <linux/fs.h>
  6172.             static struct file_operations fop = {
  6173.                  .sendfile = NULL,
  6174.             };
  6175.         
  6176. int
  6177. main ()
  6178. {
  6179.  
  6180.   ;
  6181.   return 0;
  6182. }
  6183. _ACEOF
  6184. if ac_fn_c_try_compile "$LINENO"; then :
  6185.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6186. $as_echo "yes" >&6; }
  6187.             
  6188. $as_echo "@%:@define HAVE_SENDFILE_VFS_SUPPORT 1" >>confdefs.h
  6189.  
  6190. else
  6191.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6192. $as_echo "no" >&6; }
  6193.         
  6194. fi
  6195. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6196.     fi
  6197.  
  6198.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readv callback in struct file_operations in kernel" >&5
  6199. $as_echo_n "checking for readv callback in struct file_operations in kernel... " >&6; }
  6200.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6201. /* end confdefs.h.  */
  6202.  
  6203.         #define __KERNEL__
  6204.         #include <linux/fs.h>
  6205.         static struct file_operations fop = {
  6206.             .readv = NULL,
  6207.         };
  6208.     
  6209. int
  6210. main ()
  6211. {
  6212.  
  6213.   ;
  6214.   return 0;
  6215. }
  6216. _ACEOF
  6217. if ac_fn_c_try_compile "$LINENO"; then :
  6218.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6219. $as_echo "yes" >&6; }
  6220.         
  6221. $as_echo "@%:@define HAVE_READV_FILE_OPERATIONS 1" >>confdefs.h
  6222.  
  6223. else
  6224.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6225. $as_echo "no" >&6; }
  6226.     
  6227. fi
  6228. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6229.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for writev callback in struct file_operations in kernel" >&5
  6230. $as_echo_n "checking for writev callback in struct file_operations in kernel... " >&6; }
  6231.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6232. /* end confdefs.h.  */
  6233.  
  6234.         #define __KERNEL__
  6235.         #include <linux/fs.h>
  6236.         static struct file_operations fop = {
  6237.             .writev = NULL,
  6238.         };
  6239.     
  6240. int
  6241. main ()
  6242. {
  6243.  
  6244.   ;
  6245.   return 0;
  6246. }
  6247. _ACEOF
  6248. if ac_fn_c_try_compile "$LINENO"; then :
  6249.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6250. $as_echo "yes" >&6; }
  6251.         
  6252. $as_echo "@%:@define HAVE_WRITEV_FILE_OPERATIONS 1" >>confdefs.h
  6253.  
  6254. else
  6255.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6256. $as_echo "no" >&6; }
  6257.     
  6258. fi
  6259. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6260.  
  6261.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for find_inode_handle callback in struct super_operations in kernel" >&5
  6262. $as_echo_n "checking for find_inode_handle callback in struct super_operations in kernel... " >&6; }
  6263.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6264. /* end confdefs.h.  */
  6265.  
  6266.         #define __KERNEL__
  6267.         #include <linux/fs.h>
  6268.         static struct super_operations sop = {
  6269.             .find_inode_handle = NULL,
  6270.         };
  6271.     
  6272. int
  6273. main ()
  6274. {
  6275.  
  6276.   ;
  6277.   return 0;
  6278. }
  6279. _ACEOF
  6280. if ac_fn_c_try_compile "$LINENO"; then :
  6281.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6282. $as_echo "yes" >&6; }
  6283.         
  6284. $as_echo "@%:@define HAVE_FIND_INODE_HANDLE_SUPER_OPERATIONS 1" >>confdefs.h
  6285.  
  6286. else
  6287.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6288. $as_echo "no" >&6; }
  6289.     
  6290. fi
  6291. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6292.  
  6293.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i_blksize in struct inode" >&5
  6294. $as_echo_n "checking for i_blksize in struct inode... " >&6; }
  6295.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6296. /* end confdefs.h.  */
  6297.  
  6298.         #define __KERNEL__
  6299.         #include <linux/fs.h>
  6300.         static struct inode i = {
  6301.             .i_blksize = 0,
  6302.             };
  6303.         
  6304. int
  6305. main ()
  6306. {
  6307.  
  6308.   ;
  6309.   return 0;
  6310. }
  6311. _ACEOF
  6312. if ac_fn_c_try_compile "$LINENO"; then :
  6313.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6314. $as_echo "yes" >&6; }
  6315.             
  6316. $as_echo "@%:@define HAVE_I_BLKSIZE_IN_STRUCT_INODE 1" >>confdefs.h
  6317.  
  6318. else
  6319.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6320. $as_echo "no" >&6; }
  6321.     
  6322. fi
  6323. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6324.  
  6325.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i_sem in struct inode" >&5
  6326. $as_echo_n "checking for i_sem in struct inode... " >&6; }
  6327.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6328. /* end confdefs.h.  */
  6329.  
  6330.         #define __KERNEL__
  6331.         #include <linux/fs.h>
  6332.         static struct inode i = {
  6333.             .i_sem = {0},
  6334.             };
  6335.         
  6336. int
  6337. main ()
  6338. {
  6339.  
  6340.   ;
  6341.   return 0;
  6342. }
  6343. _ACEOF
  6344. if ac_fn_c_try_compile "$LINENO"; then :
  6345.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6346. $as_echo "yes" >&6; }
  6347.             
  6348. $as_echo "@%:@define HAVE_I_SEM_IN_STRUCT_INODE 1" >>confdefs.h
  6349.  
  6350. else
  6351.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6352. $as_echo "no" >&6; }
  6353.     
  6354. fi
  6355. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6356.  
  6357.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for statfs_lite callback in struct super_operations in kernel" >&5
  6358. $as_echo_n "checking for statfs_lite callback in struct super_operations in kernel... " >&6; }
  6359.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6360. /* end confdefs.h.  */
  6361.  
  6362.         #define __KERNEL__
  6363.         #include <linux/fs.h>
  6364.         static struct super_operations sop = {
  6365.             .statfs_lite = NULL,
  6366.         };
  6367.     
  6368. int
  6369. main ()
  6370. {
  6371.  
  6372.   ;
  6373.   return 0;
  6374. }
  6375. _ACEOF
  6376. if ac_fn_c_try_compile "$LINENO"; then :
  6377.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6378. $as_echo "yes" >&6; }
  6379.         
  6380. $as_echo "@%:@define HAVE_STATFS_LITE_SUPER_OPERATIONS 1" >>confdefs.h
  6381.  
  6382. else
  6383.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6384. $as_echo "no" >&6; }
  6385.     
  6386. fi
  6387. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6388.  
  6389.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fill_handle callback in struct inode_operations in kernel" >&5
  6390. $as_echo_n "checking for fill_handle callback in struct inode_operations in kernel... " >&6; }
  6391.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6392. /* end confdefs.h.  */
  6393.  
  6394.         #define __KERNEL__
  6395.         #include <linux/fs.h>
  6396.         static struct inode_operations iop = {
  6397.             .fill_handle = NULL,
  6398.         };
  6399.     
  6400. int
  6401. main ()
  6402. {
  6403.  
  6404.   ;
  6405.   return 0;
  6406. }
  6407. _ACEOF
  6408. if ac_fn_c_try_compile "$LINENO"; then :
  6409.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6410. $as_echo "yes" >&6; }
  6411.         
  6412. $as_echo "@%:@define HAVE_FILL_HANDLE_INODE_OPERATIONS 1" >>confdefs.h
  6413.  
  6414. else
  6415.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6416. $as_echo "no" >&6; }
  6417.     
  6418. fi
  6419. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6420.  
  6421.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getattr_lite callback in struct inode_operations in kernel" >&5
  6422. $as_echo_n "checking for getattr_lite callback in struct inode_operations in kernel... " >&6; }
  6423.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6424. /* end confdefs.h.  */
  6425.  
  6426.         #define __KERNEL__
  6427.         #include <linux/fs.h>
  6428.         static struct inode_operations iop = {
  6429.             .getattr_lite = NULL,
  6430.         };
  6431.     
  6432. int
  6433. main ()
  6434. {
  6435.  
  6436.   ;
  6437.   return 0;
  6438. }
  6439. _ACEOF
  6440. if ac_fn_c_try_compile "$LINENO"; then :
  6441.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6442. $as_echo "yes" >&6; }
  6443.         
  6444. $as_echo "@%:@define HAVE_GETATTR_LITE_INODE_OPERATIONS 1" >>confdefs.h
  6445.  
  6446. else
  6447.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6448. $as_echo "no" >&6; }
  6449.     
  6450. fi
  6451. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6452.  
  6453.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for get_fs_key callback in struct super_operations in kernel" >&5
  6454. $as_echo_n "checking for get_fs_key callback in struct super_operations in kernel... " >&6; }
  6455.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6456. /* end confdefs.h.  */
  6457.  
  6458.         #define __KERNEL__
  6459.         #include <linux/fs.h>
  6460.         static struct super_operations sop = {
  6461.             .get_fs_key = NULL,
  6462.         };
  6463.     
  6464. int
  6465. main ()
  6466. {
  6467.  
  6468.   ;
  6469.   return 0;
  6470. }
  6471. _ACEOF
  6472. if ac_fn_c_try_compile "$LINENO"; then :
  6473.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6474. $as_echo "yes" >&6; }
  6475.         
  6476. $as_echo "@%:@define HAVE_GET_FS_KEY_SUPER_OPERATIONS 1" >>confdefs.h
  6477.  
  6478. else
  6479.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6480. $as_echo "no" >&6; }
  6481.     
  6482. fi
  6483. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6484.     
  6485.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readdirplus member in file_operations structure" >&5
  6486. $as_echo_n "checking for readdirplus member in file_operations structure... " >&6; }
  6487.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6488. /* end confdefs.h.  */
  6489.  
  6490.         #define __KERNEL__
  6491.         #include <linux/fs.h>
  6492.          
  6493. int
  6494. main ()
  6495. {
  6496.  
  6497.          struct file_operations filop = {
  6498.                 .readdirplus = NULL
  6499.          };
  6500.         
  6501.   ;
  6502.   return 0;
  6503. }
  6504. _ACEOF
  6505. if ac_fn_c_try_compile "$LINENO"; then :
  6506.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6507. $as_echo "yes" >&6; }
  6508.          
  6509. $as_echo "@%:@define HAVE_READDIRPLUS_FILE_OPERATIONS 1" >>confdefs.h
  6510.  
  6511. else
  6512.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6513. $as_echo "no" >&6; }
  6514.         
  6515. fi
  6516. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6517.  
  6518.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readdirplus_lite member in file_operations structure" >&5
  6519. $as_echo_n "checking for readdirplus_lite member in file_operations structure... " >&6; }
  6520.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6521. /* end confdefs.h.  */
  6522.  
  6523.         #define __KERNEL__
  6524.         #include <linux/fs.h>
  6525.          
  6526. int
  6527. main ()
  6528. {
  6529.  
  6530.          struct file_operations filop = {
  6531.                 .readdirplus_lite = NULL
  6532.          };
  6533.         
  6534.   ;
  6535.   return 0;
  6536. }
  6537. _ACEOF
  6538. if ac_fn_c_try_compile "$LINENO"; then :
  6539.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6540. $as_echo "yes" >&6; }
  6541.          
  6542. $as_echo "@%:@define HAVE_READDIRPLUSLITE_FILE_OPERATIONS 1" >>confdefs.h
  6543.  
  6544. else
  6545.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6546. $as_echo "no" >&6; }
  6547.         
  6548. fi
  6549. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6550.  
  6551.  
  6552.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readx member in file_operations structure" >&5
  6553. $as_echo_n "checking for readx member in file_operations structure... " >&6; }
  6554.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6555. /* end confdefs.h.  */
  6556.  
  6557.         #define __KERNEL__
  6558.         #include <linux/fs.h>
  6559.          
  6560. int
  6561. main ()
  6562. {
  6563.  
  6564.          struct file_operations filop = {
  6565.                 .readx = NULL
  6566.          };
  6567.         
  6568.   ;
  6569.   return 0;
  6570. }
  6571. _ACEOF
  6572. if ac_fn_c_try_compile "$LINENO"; then :
  6573.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6574. $as_echo "yes" >&6; }
  6575.          
  6576. $as_echo "@%:@define HAVE_READX_FILE_OPERATIONS 1" >>confdefs.h
  6577.  
  6578. else
  6579.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6580. $as_echo "no" >&6; }
  6581.         
  6582. fi
  6583. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6584.  
  6585.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for writex member in file_operations structure" >&5
  6586. $as_echo_n "checking for writex member in file_operations structure... " >&6; }
  6587.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6588. /* end confdefs.h.  */
  6589.  
  6590.         #define __KERNEL__
  6591.         #include <linux/fs.h>
  6592.          
  6593. int
  6594. main ()
  6595. {
  6596.  
  6597.          struct file_operations filop = {
  6598.                 .writex = NULL
  6599.          };
  6600.         
  6601.   ;
  6602.   return 0;
  6603. }
  6604. _ACEOF
  6605. if ac_fn_c_try_compile "$LINENO"; then :
  6606.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6607. $as_echo "yes" >&6; }
  6608.          
  6609. $as_echo "@%:@define HAVE_WRITEX_FILE_OPERATIONS 1" >>confdefs.h
  6610.  
  6611. else
  6612.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6613. $as_echo "no" >&6; }
  6614.         
  6615. fi
  6616. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6617.  
  6618.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aio support in kernel" >&5
  6619. $as_echo_n "checking for aio support in kernel... " >&6; }
  6620.             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6621. /* end confdefs.h.  */
  6622.  
  6623.         #define __KERNEL__
  6624.         #include <linux/wait.h>
  6625.         #include <linux/aio.h>
  6626.           static struct kiocb iocb;
  6627.         
  6628. int
  6629. main ()
  6630. {
  6631.  
  6632.   ;
  6633.   return 0;
  6634. }
  6635. _ACEOF
  6636. if ac_fn_c_try_compile "$LINENO"; then :
  6637.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6638. $as_echo "yes" >&6; }
  6639.         
  6640. $as_echo "@%:@define HAVE_AIO 1" >>confdefs.h
  6641.  
  6642.         have_aio=yes
  6643. else
  6644.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6645. $as_echo "no" >&6; }
  6646.         have_aio=no
  6647.     
  6648. fi
  6649. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6650.  
  6651.     if test "x$have_aio" = "xyes" -a "x$enable_kernel_aio" = "xyes"; then
  6652.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ki_dtor in kiocb structure of kernel" >&5
  6653. $as_echo_n "checking for ki_dtor in kiocb structure of kernel... " >&6; }
  6654.                                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6655. /* end confdefs.h.  */
  6656.  
  6657.             #define __KERNEL__
  6658.             #include <linux/wait.h>
  6659.             #include <linux/aio.h>
  6660.             static struct kiocb io_cb = {
  6661.                       .ki_dtor = NULL,
  6662.             };
  6663.         
  6664. int
  6665. main ()
  6666. {
  6667.  
  6668.   ;
  6669.   return 0;
  6670. }
  6671. _ACEOF
  6672. if ac_fn_c_try_compile "$LINENO"; then :
  6673.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6674. $as_echo "yes" >&6; }
  6675.             
  6676. $as_echo "@%:@define HAVE_AIO_VFS_SUPPORT 1" >>confdefs.h
  6677.  
  6678. else
  6679.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6680. $as_echo "no" >&6; }
  6681.         
  6682. fi
  6683. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6684.  
  6685.         tmp_cflags=$CFLAGS
  6686.                 CFLAGS="$CFLAGS -Werror"
  6687.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new prototype of aio_read callback of file_operations structure" >&5
  6688. $as_echo_n "checking for new prototype of aio_read callback of file_operations structure... " >&6; }
  6689.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6690. /* end confdefs.h.  */
  6691.  
  6692.             #define __KERNEL__
  6693.             #include <linux/fs.h>
  6694.             extern ssize_t my_aio_read(struct kiocb *, const struct iovec *, unsigned long, loff_t);
  6695.             static struct file_operations fop = {
  6696.                       .aio_read = my_aio_read,
  6697.             };
  6698.         
  6699. int
  6700. main ()
  6701. {
  6702.  
  6703.   ;
  6704.   return 0;
  6705. }
  6706. _ACEOF
  6707. if ac_fn_c_try_compile "$LINENO"; then :
  6708.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6709. $as_echo "yes" >&6; }
  6710.             
  6711. $as_echo "@%:@define HAVE_AIO_NEW_AIO_SIGNATURE 1" >>confdefs.h
  6712.  
  6713. else
  6714.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6715. $as_echo "no" >&6; }
  6716.         
  6717. fi
  6718. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6719.         CFLAGS=$tmp_cflags
  6720.  
  6721.     fi
  6722.  
  6723.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dentry argument in kernel super_operations statfs" >&5
  6724. $as_echo_n "checking for dentry argument in kernel super_operations statfs... " >&6; }
  6725.                                                             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6726. /* end confdefs.h.  */
  6727.  
  6728.         #define __KERNEL__
  6729.         #include <linux/fs.h>
  6730.         int vfs_statfs(struct dentry *de, struct kstatfs *kfs)
  6731.         {
  6732.             return 0;
  6733.         }
  6734.         
  6735. int
  6736. main ()
  6737. {
  6738.  
  6739.   ;
  6740.   return 0;
  6741. }
  6742. _ACEOF
  6743. if ac_fn_c_try_compile "$LINENO"; then :
  6744.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6745. $as_echo "yes" >&6; }
  6746.         
  6747. $as_echo "@%:@define HAVE_DENTRY_STATFS_SOP 1" >>confdefs.h
  6748.  
  6749. else
  6750.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6751. $as_echo "no" >&6; }
  6752.     
  6753. fi
  6754. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6755.  
  6756.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vfsmount argument in kernel file_system_type get_sb" >&5
  6757. $as_echo_n "checking for vfsmount argument in kernel file_system_type get_sb... " >&6; }
  6758.                                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6759. /* end confdefs.h.  */
  6760.  
  6761.         #define __KERNEL__
  6762.         #include <linux/fs.h>
  6763.         int get_sb_bdev(struct file_system_type *fs_type, int flags,
  6764.                 const char *dev_name, void *data,
  6765.                 int (*fill_super)(struct super_block *, void *,
  6766.                           int),
  6767.                 struct vfsmount *vfsm)
  6768.         {
  6769.             return 0;
  6770.         }
  6771.         
  6772. int
  6773. main ()
  6774. {
  6775.  
  6776.   ;
  6777.   return 0;
  6778. }
  6779. _ACEOF
  6780. if ac_fn_c_try_compile "$LINENO"; then :
  6781.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6782. $as_echo "yes" >&6; }
  6783.         
  6784. $as_echo "@%:@define HAVE_VFSMOUNT_GETSB 1" >>confdefs.h
  6785.  
  6786. else
  6787.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6788. $as_echo "no" >&6; }
  6789.     
  6790. fi
  6791. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6792.  
  6793.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xattr support in kernel" >&5
  6794. $as_echo_n "checking for xattr support in kernel... " >&6; }
  6795.             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6796. /* end confdefs.h.  */
  6797.  
  6798.         #define __KERNEL__
  6799.         #include <linux/fs.h>
  6800.               static struct inode_operations in_op = {
  6801.                   .getxattr = NULL
  6802.               };
  6803.         
  6804. int
  6805. main ()
  6806. {
  6807.  
  6808.   ;
  6809.   return 0;
  6810. }
  6811. _ACEOF
  6812. if ac_fn_c_try_compile "$LINENO"; then :
  6813.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6814. $as_echo "yes" >&6; }
  6815.         
  6816. $as_echo "@%:@define HAVE_XATTR 1" >>confdefs.h
  6817.  
  6818.         have_xattr=yes
  6819. else
  6820.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6821. $as_echo "no" >&6; }
  6822.         have_xattr=no
  6823.     
  6824. fi
  6825. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6826.  
  6827.     if test "x$have_xattr" = "xyes"; then
  6828.               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const argument to setxattr function" >&5
  6829. $as_echo_n "checking for const argument to setxattr function... " >&6; }
  6830.               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6831. /* end confdefs.h.  */
  6832.  
  6833.         #define __KERNEL__
  6834.         #include <linux/fs.h>
  6835.         
  6836. int
  6837. main ()
  6838. {
  6839.  
  6840.             struct inode_operations inode_ops;
  6841.             int ret;
  6842.             struct dentry * dent = NULL;
  6843.             const char * name = NULL;
  6844.             const void * val = NULL;
  6845.             size_t size = 0;
  6846.             int flags = 0;
  6847.  
  6848.             ret = inode_ops.setxattr(dent, name, val, size, flags);
  6849.         
  6850.   ;
  6851.   return 0;
  6852. }
  6853. _ACEOF
  6854. if ac_fn_c_try_compile "$LINENO"; then :
  6855.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6856. $as_echo "yes" >&6; }
  6857.         
  6858. $as_echo "@%:@define HAVE_SETXATTR_CONST_ARG 1" >>confdefs.h
  6859.  
  6860. else
  6861.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6862. $as_echo "no" >&6; }
  6863.         
  6864. fi
  6865. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6866.     fi
  6867.  
  6868.                                                                                                                                                  
  6869.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file argument to sysctl proc handlers" >&5
  6870. $as_echo_n "checking for file argument to sysctl proc handlers... " >&6; }
  6871.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6872. /* end confdefs.h.  */
  6873.  
  6874.         #define __KERNEL__
  6875.         #include <linux/fs.h>
  6876.         #include <linux/sysctl.h>
  6877.         
  6878. int
  6879. main ()
  6880. {
  6881.  
  6882.                 struct ctl_table * ctl = NULL;
  6883.                 int write = 0;
  6884.                 struct file * filp = NULL;
  6885.                 void __user * buffer = NULL;
  6886.                 size_t * lenp = NULL;
  6887.                 loff_t * ppos = NULL;
  6888.  
  6889.                 proc_dointvec_minmax(ctl, write, filp, buffer, lenp, ppos);
  6890.         
  6891.   ;
  6892.   return 0;
  6893. }
  6894. _ACEOF
  6895. if ac_fn_c_try_compile "$LINENO"; then :
  6896.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6897. $as_echo "yes" >&6; }
  6898.         
  6899. $as_echo "@%:@define HAVE_PROC_HANDLER_FILE_ARG 1" >>confdefs.h
  6900.  
  6901. else
  6902.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6903. $as_echo "no" >&6; }
  6904.         
  6905. fi
  6906. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6907.  
  6908.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ppos argument to sysctl proc handlers" >&5
  6909. $as_echo_n "checking for ppos argument to sysctl proc handlers... " >&6; }
  6910.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6911. /* end confdefs.h.  */
  6912.  
  6913.         #define __KERNEL__
  6914.         #include <linux/fs.h>
  6915.         #include <linux/sysctl.h>
  6916.         
  6917. int
  6918. main ()
  6919. {
  6920.  
  6921.                 struct ctl_table * ctl = NULL;
  6922.                 int write = 0;
  6923.                 void __user * buffer = NULL;
  6924.                 size_t * lenp = NULL;
  6925.                 loff_t * ppos = NULL;
  6926.  
  6927.                 proc_dointvec_minmax(ctl, write, buffer, lenp, ppos);
  6928.         
  6929.   ;
  6930.   return 0;
  6931. }
  6932. _ACEOF
  6933. if ac_fn_c_try_compile "$LINENO"; then :
  6934.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6935. $as_echo "yes" >&6; }
  6936.         
  6937. $as_echo "@%:@define HAVE_PROC_HANDLER_PPOS_ARG 1" >>confdefs.h
  6938.  
  6939. else
  6940.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6941. $as_echo "no" >&6; }
  6942.         
  6943. fi
  6944. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6945.  
  6946.     for ac_header in linux/posix_acl.h
  6947. do :
  6948.   ac_fn_c_check_header_compile "$LINENO" "linux/posix_acl.h" "ac_cv_header_linux_posix_acl_h" "#define __KERNEL__
  6949.          #include <linux/fs.h>
  6950.          #ifdef HAVE_XATTR 
  6951.          #include <linux/xattr.h> 
  6952.          #endif
  6953.           
  6954. "
  6955. if test "x$ac_cv_header_linux_posix_acl_h" = x""yes; then :
  6956.   cat >>confdefs.h <<_ACEOF
  6957. @%:@define HAVE_LINUX_POSIX_ACL_H 1
  6958. _ACEOF
  6959.  
  6960. fi
  6961.  
  6962. done
  6963.  
  6964.  
  6965.     for ac_header in linux/posix_acl_xattr.h
  6966. do :
  6967.   ac_fn_c_check_header_compile "$LINENO" "linux/posix_acl_xattr.h" "ac_cv_header_linux_posix_acl_xattr_h" "#define __KERNEL__
  6968.          #include <linux/fs.h>
  6969.          #ifdef HAVE_XATTR 
  6970.          #include <linux/xattr.h> 
  6971.          #endif
  6972.           
  6973. "
  6974. if test "x$ac_cv_header_linux_posix_acl_xattr_h" = x""yes; then :
  6975.   cat >>confdefs.h <<_ACEOF
  6976. @%:@define HAVE_LINUX_POSIX_ACL_XATTR_H 1
  6977. _ACEOF
  6978.  
  6979. fi
  6980.  
  6981. done
  6982.  
  6983.  
  6984.         for ac_header in linux/xattr_acl.h
  6985. do :
  6986.   ac_fn_c_check_header_compile "$LINENO" "linux/xattr_acl.h" "ac_cv_header_linux_xattr_acl_h" "#define __KERNEL__
  6987.          #include <linux/fs.h>
  6988.          #ifdef HAVE_XATTR
  6989.          #include <linux/xattr.h>
  6990.          #endif
  6991.           
  6992. "
  6993. if test "x$ac_cv_header_linux_xattr_acl_h" = x""yes; then :
  6994.   cat >>confdefs.h <<_ACEOF
  6995. @%:@define HAVE_LINUX_XATTR_ACL_H 1
  6996. _ACEOF
  6997.  
  6998. fi
  6999.  
  7000. done
  7001.  
  7002.  
  7003.     for ac_header in linux/mount.h
  7004. do :
  7005.   ac_fn_c_check_header_compile "$LINENO" "linux/mount.h" "ac_cv_header_linux_mount_h" "#define __KERNEL__
  7006.          #include <linux/mount.h>
  7007.           
  7008. "
  7009. if test "x$ac_cv_header_linux_mount_h" = x""yes; then :
  7010.   cat >>confdefs.h <<_ACEOF
  7011. @%:@define HAVE_LINUX_MOUNT_H 1
  7012. _ACEOF
  7013.  
  7014. fi
  7015.  
  7016. done
  7017.  
  7018.     for ac_header in linux/ioctl32.h
  7019. do :
  7020.   ac_fn_c_check_header_compile "$LINENO" "linux/ioctl32.h" "ac_cv_header_linux_ioctl32_h" "#define __KERNEL__
  7021.          #include <linux/ioctl32.h>
  7022.           
  7023. "
  7024. if test "x$ac_cv_header_linux_ioctl32_h" = x""yes; then :
  7025.   cat >>confdefs.h <<_ACEOF
  7026. @%:@define HAVE_LINUX_IOCTL32_H 1
  7027. _ACEOF
  7028.  
  7029. fi
  7030.  
  7031. done
  7032.  
  7033.     for ac_header in linux/compat.h
  7034. do :
  7035.   ac_fn_c_check_header_compile "$LINENO" "linux/compat.h" "ac_cv_header_linux_compat_h" "#define __KERNEL__
  7036.          #include <linux/compat.h>
  7037.           
  7038. "
  7039. if test "x$ac_cv_header_linux_compat_h" = x""yes; then :
  7040.   cat >>confdefs.h <<_ACEOF
  7041. @%:@define HAVE_LINUX_COMPAT_H 1
  7042. _ACEOF
  7043.  
  7044. fi
  7045.  
  7046. done
  7047.  
  7048.     for ac_header in linux/syscalls.h
  7049. do :
  7050.   ac_fn_c_check_header_compile "$LINENO" "linux/syscalls.h" "ac_cv_header_linux_syscalls_h" "#define __KERNEL__
  7051.          #include <linux/syscalls.h>
  7052.           
  7053. "
  7054. if test "x$ac_cv_header_linux_syscalls_h" = x""yes; then :
  7055.   cat >>confdefs.h <<_ACEOF
  7056. @%:@define HAVE_LINUX_SYSCALLS_H 1
  7057. _ACEOF
  7058.  
  7059. fi
  7060.  
  7061. done
  7062.  
  7063.     for ac_header in asm/ioctl32.h
  7064. do :
  7065.   ac_fn_c_check_header_compile "$LINENO" "asm/ioctl32.h" "ac_cv_header_asm_ioctl32_h" "#define __KERNEL__
  7066.          #include <asm/ioctl32.h>
  7067.           
  7068. "
  7069. if test "x$ac_cv_header_asm_ioctl32_h" = x""yes; then :
  7070.   cat >>confdefs.h <<_ACEOF
  7071. @%:@define HAVE_ASM_IOCTL32_H 1
  7072. _ACEOF
  7073.  
  7074. fi
  7075.  
  7076. done
  7077.  
  7078.     for ac_header in linux/exportfs.h
  7079. do :
  7080.   ac_fn_c_check_header_compile "$LINENO" "linux/exportfs.h" "ac_cv_header_linux_exportfs_h" "#define __KERNEL__
  7081.          #include <linux/exportfs.h>
  7082.         
  7083. "
  7084. if test "x$ac_cv_header_linux_exportfs_h" = x""yes; then :
  7085.   cat >>confdefs.h <<_ACEOF
  7086. @%:@define HAVE_LINUX_EXPORTFS_H 1
  7087. _ACEOF
  7088.  
  7089. fi
  7090.  
  7091. done
  7092.  
  7093.  
  7094.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for generic_file_readv api in kernel" >&5
  7095. $as_echo_n "checking for generic_file_readv api in kernel... " >&6; }
  7096.                 
  7097.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7098. /* end confdefs.h.  */
  7099.  
  7100.         #define __KERNEL__
  7101.         #include <linux/fs.h>
  7102.         int generic_file_readv(struct inode *inode)
  7103.         {
  7104.             return 0;
  7105.         }
  7106.     
  7107. int
  7108. main ()
  7109. {
  7110.  
  7111.   ;
  7112.   return 0;
  7113. }
  7114. _ACEOF
  7115. if ac_fn_c_try_compile "$LINENO"; then :
  7116.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7117. $as_echo "no" >&6; }
  7118. else
  7119.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7120. $as_echo "yes" >&6; }
  7121.         
  7122. $as_echo "@%:@define HAVE_GENERIC_FILE_READV 1" >>confdefs.h
  7123.  
  7124. fi
  7125. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7126.  
  7127.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for generic_permission api in kernel" >&5
  7128. $as_echo_n "checking for generic_permission api in kernel... " >&6; }
  7129.                 
  7130.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7131. /* end confdefs.h.  */
  7132.  
  7133.         #define __KERNEL__
  7134.         #include <linux/fs.h>
  7135.         int generic_permission(struct inode *inode)
  7136.         {
  7137.             return 0;
  7138.         }
  7139.     
  7140. int
  7141. main ()
  7142. {
  7143.  
  7144.   ;
  7145.   return 0;
  7146. }
  7147. _ACEOF
  7148. if ac_fn_c_try_compile "$LINENO"; then :
  7149.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7150. $as_echo "no" >&6; }
  7151. else
  7152.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7153. $as_echo "yes" >&6; }
  7154.         
  7155. $as_echo "@%:@define HAVE_GENERIC_PERMISSION 1" >>confdefs.h
  7156.  
  7157. fi
  7158. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7159.  
  7160.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for generic_getxattr api in kernel" >&5
  7161. $as_echo_n "checking for generic_getxattr api in kernel... " >&6; }
  7162.             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7163. /* end confdefs.h.  */
  7164.  
  7165.         #define __KERNEL__
  7166.         #include <linux/fs.h>
  7167.                 #include <linux/xattr.h>
  7168.         int generic_getxattr(struct inode *inode)
  7169.         {
  7170.             return 0;
  7171.         }
  7172.     
  7173. int
  7174. main ()
  7175. {
  7176.  
  7177.   ;
  7178.   return 0;
  7179. }
  7180. _ACEOF
  7181. if ac_fn_c_try_compile "$LINENO"; then :
  7182.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7183. $as_echo "no" >&6; }
  7184. else
  7185.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7186. $as_echo "yes" >&6; }
  7187.         
  7188. $as_echo "@%:@define HAVE_GENERIC_GETXATTR 1" >>confdefs.h
  7189.  
  7190. fi
  7191. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7192.  
  7193.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for arg member in read_descriptor_t in kernel" >&5
  7194. $as_echo_n "checking for arg member in read_descriptor_t in kernel... " >&6; }
  7195.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7196. /* end confdefs.h.  */
  7197.  
  7198.         #define __KERNEL__
  7199.         #include <linux/fs.h>
  7200.         
  7201. int
  7202. main ()
  7203. {
  7204.  
  7205.         read_descriptor_t x;
  7206.         x.arg.data = NULL;
  7207.         
  7208.   ;
  7209.   return 0;
  7210. }
  7211. _ACEOF
  7212. if ac_fn_c_try_compile "$LINENO"; then :
  7213.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7214. $as_echo "yes" >&6; }
  7215.         
  7216. $as_echo "@%:@define HAVE_ARG_IN_READ_DESCRIPTOR_T 1" >>confdefs.h
  7217.  
  7218. else
  7219.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7220. $as_echo "no" >&6; }
  7221.     
  7222. fi
  7223. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7224.  
  7225.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fh_to_dentry member in export_operations in kernel" >&5
  7226. $as_echo_n "checking for fh_to_dentry member in export_operations in kernel... " >&6; }
  7227.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7228. /* end confdefs.h.  */
  7229.  
  7230.         #define __KERNEL__
  7231.         #include <linux/exportfs.h>
  7232.         
  7233. int
  7234. main ()
  7235. {
  7236.  
  7237.         struct export_operations x;
  7238.         x.fh_to_dentry = NULL;
  7239.         
  7240.   ;
  7241.   return 0;
  7242. }
  7243. _ACEOF
  7244. if ac_fn_c_try_compile "$LINENO"; then :
  7245.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7246. $as_echo "yes" >&6; }
  7247.         
  7248. $as_echo "@%:@define HAVE_FHTODENTRY_EXPORT_OPERATIONS 1" >>confdefs.h
  7249.  
  7250. else
  7251.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7252. $as_echo "no" >&6; }
  7253.     
  7254. fi
  7255. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7256.  
  7257.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for encode_fh member in export_operations in kernel" >&5
  7258. $as_echo_n "checking for encode_fh member in export_operations in kernel... " >&6; }
  7259.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7260. /* end confdefs.h.  */
  7261.  
  7262.         #define __KERNEL__
  7263.         #include <linux/exportfs.h>
  7264.         
  7265. int
  7266. main ()
  7267. {
  7268.  
  7269.         struct export_operations x;
  7270.         x.encode_fh = NULL;
  7271.         
  7272.   ;
  7273.   return 0;
  7274. }
  7275. _ACEOF
  7276. if ac_fn_c_try_compile "$LINENO"; then :
  7277.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7278. $as_echo "yes" >&6; }
  7279.         
  7280. $as_echo "@%:@define HAVE_ENCODEFH_EXPORT_OPERATIONS 1" >>confdefs.h
  7281.  
  7282. else
  7283.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7284. $as_echo "no" >&6; }
  7285.     
  7286. fi
  7287. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7288.  
  7289.                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for second arg type int in address_space_operations releasepage" >&5
  7290. $as_echo_n "checking for second arg type int in address_space_operations releasepage... " >&6; }
  7291.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7292. /* end confdefs.h.  */
  7293.  
  7294.         #define __KERNEL__
  7295.         #include <linux/buffer_head.h>
  7296.         extern int try_to_release_page(struct page *page, int gfp_mask);
  7297.         
  7298. int
  7299. main ()
  7300. {
  7301.  
  7302.   ;
  7303.   return 0;
  7304. }
  7305. _ACEOF
  7306. if ac_fn_c_try_compile "$LINENO"; then :
  7307.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7308. $as_echo "yes" >&6; }
  7309.         
  7310. $as_echo "@%:@define HAVE_INT_ARG2_ADDRESS_SPACE_OPERATIONS_RELEASEPAGE 1" >>confdefs.h
  7311.  
  7312. else
  7313.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7314. $as_echo "no" >&6; }
  7315.     
  7316. fi
  7317. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7318.  
  7319.             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int return in inode_operations follow_link" >&5
  7320. $as_echo_n "checking for int return in inode_operations follow_link... " >&6; }
  7321.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7322. /* end confdefs.h.  */
  7323.  
  7324.         #define __KERNEL__
  7325.         #include <linux/fs.h>
  7326.         extern int page_follow_link_light(struct dentry *,
  7327.                                           struct nameidata *);
  7328.         
  7329. int
  7330. main ()
  7331. {
  7332.  
  7333.   ;
  7334.   return 0;
  7335. }
  7336. _ACEOF
  7337. if ac_fn_c_try_compile "$LINENO"; then :
  7338.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7339. $as_echo "yes" >&6; }
  7340.         
  7341. $as_echo "@%:@define HAVE_INT_RETURN_INODE_OPERATIONS_FOLLOW_LINK 1" >>confdefs.h
  7342.  
  7343. else
  7344.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7345. $as_echo "no" >&6; }
  7346.     
  7347. fi
  7348. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7349.  
  7350.             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int return in kmem_cache_destroy" >&5
  7351. $as_echo_n "checking for int return in kmem_cache_destroy... " >&6; }
  7352.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7353. /* end confdefs.h.  */
  7354.  
  7355.         #define __KERNEL__
  7356.         #include <linux/slab.h>
  7357.         extern int kmem_cache_destroy(kmem_cache_t *);
  7358.         
  7359. int
  7360. main ()
  7361. {
  7362.  
  7363.   ;
  7364.   return 0;
  7365. }
  7366. _ACEOF
  7367. if ac_fn_c_try_compile "$LINENO"; then :
  7368.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7369. $as_echo "yes" >&6; }
  7370.         
  7371. $as_echo "@%:@define HAVE_INT_RETURN_KMEM_CACHE_DESTROY 1" >>confdefs.h
  7372.  
  7373. else
  7374.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7375. $as_echo "no" >&6; }
  7376.     
  7377. fi
  7378. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7379.  
  7380.                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for older int return in invalidatepage" >&5
  7381. $as_echo_n "checking for older int return in invalidatepage... " >&6; }
  7382.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7383. /* end confdefs.h.  */
  7384.  
  7385.         #define __KERNEL__
  7386.         #include <linux/fs.h>
  7387.         
  7388. int
  7389. main ()
  7390. {
  7391.  
  7392.             struct address_space_operations aso;
  7393.  
  7394.             int ret;
  7395.             struct page * page = NULL;
  7396.             unsigned long offset;
  7397.  
  7398.             ret = aso.invalidatepage(page, offset);
  7399.         
  7400.   ;
  7401.   return 0;
  7402. }
  7403. _ACEOF
  7404. if ac_fn_c_try_compile "$LINENO"; then :
  7405.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7406. $as_echo "yes" >&6; }
  7407.         
  7408. $as_echo "@%:@define HAVE_INT_RETURN_ADDRESS_SPACE_OPERATIONS_INVALIDATEPAGE 1" >>confdefs.h
  7409.  
  7410. else
  7411.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: NO" >&5
  7412. $as_echo "NO" >&6; }
  7413.         
  7414. fi
  7415. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7416.  
  7417.             tmp_cflags=${CFLAGS}
  7418.     CFLAGS="${CFLAGS} -Werror"
  7419.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for warnings when including linux/config.h" >&5
  7420. $as_echo_n "checking for warnings when including linux/config.h... " >&6; }
  7421.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7422. /* end confdefs.h.  */
  7423.  
  7424.         #define __KERNEL__
  7425.         #include <linux/config.h>
  7426.         
  7427. int
  7428. main ()
  7429. {
  7430.  
  7431.   ;
  7432.   return 0;
  7433. }
  7434. _ACEOF
  7435. if ac_fn_c_try_compile "$LINENO"; then :
  7436.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7437. $as_echo "no" >&6; }
  7438.         
  7439. $as_echo "@%:@define HAVE_NOWARNINGS_WHEN_INCLUDING_LINUX_CONFIG_H 1" >>confdefs.h
  7440.  
  7441. else
  7442.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7443. $as_echo "yes" >&6; }
  7444.     
  7445. fi
  7446. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7447.     CFLAGS=$tmp_cflags
  7448.  
  7449.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compat_ioctl member in file_operations structure" >&5
  7450. $as_echo_n "checking for compat_ioctl member in file_operations structure... " >&6; }
  7451.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7452. /* end confdefs.h.  */
  7453.  
  7454.         #define __KERNEL__
  7455.         #include <linux/fs.h>
  7456.          
  7457. int
  7458. main ()
  7459. {
  7460.  
  7461.          struct file_operations filop = {
  7462.                 .compat_ioctl = NULL
  7463.          };
  7464.         
  7465.   ;
  7466.   return 0;
  7467. }
  7468. _ACEOF
  7469. if ac_fn_c_try_compile "$LINENO"; then :
  7470.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7471. $as_echo "yes" >&6; }
  7472.          
  7473. $as_echo "@%:@define HAVE_COMPAT_IOCTL_HANDLER 1" >>confdefs.h
  7474.  
  7475. else
  7476.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7477. $as_echo "no" >&6; }
  7478.         
  7479. fi
  7480. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7481.  
  7482.         if test x$ac_cv_header_linux_ioctl32_h = xyes ; then
  7483.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for register_ioctl32_conversion kernel exports" >&5
  7484. $as_echo_n "checking for register_ioctl32_conversion kernel exports... " >&6; }
  7485.             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7486. /* end confdefs.h.  */
  7487.  
  7488.         #define __KERNEL__
  7489.         #include <linux/kernel.h>
  7490.         #include <linux/ioctl32.h>
  7491.         int register_ioctl32_conversion(void)
  7492.         {
  7493.             return 0;
  7494.         }
  7495.     
  7496. int
  7497. main ()
  7498. {
  7499.  
  7500.   ;
  7501.   return 0;
  7502. }
  7503. _ACEOF
  7504. if ac_fn_c_try_compile "$LINENO"; then :
  7505.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7506. $as_echo "no" >&6; }
  7507. else
  7508.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7509. $as_echo "yes" >&6; }
  7510.         
  7511. $as_echo "@%:@define HAVE_REGISTER_IOCTL32_CONVERSION 1" >>confdefs.h
  7512.  
  7513. fi
  7514. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7515.     fi
  7516.  
  7517.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int return value of kmem_cache_destroy" >&5
  7518. $as_echo_n "checking for int return value of kmem_cache_destroy... " >&6; }
  7519.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7520. /* end confdefs.h.  */
  7521.  
  7522.         #define __KERNEL__
  7523.         #include <linux/slab.h>
  7524.         
  7525. int
  7526. main ()
  7527. {
  7528.  
  7529.         int i = kmem_cache_destroy(NULL);
  7530.         
  7531.   ;
  7532.   return 0;
  7533. }
  7534. _ACEOF
  7535. if ac_fn_c_try_compile "$LINENO"; then :
  7536.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7537. $as_echo "yes" >&6; }
  7538.         
  7539. $as_echo "@%:@define HAVE_KMEM_CACHE_DESTROY_INT_RETURN 1" >>confdefs.h
  7540.  
  7541. else
  7542.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7543. $as_echo "no" >&6; }
  7544.     
  7545. fi
  7546. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7547.  
  7548.             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for combined file_operations readv and aio_read" >&5
  7549. $as_echo_n "checking for combined file_operations readv and aio_read... " >&6; }
  7550.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7551. /* end confdefs.h.  */
  7552.  
  7553.         #define __KERNEL__
  7554.         #include <linux/fs.h>
  7555.          
  7556. int
  7557. main ()
  7558. {
  7559.  
  7560.          struct file_operations filop = {
  7561.             .readv = NULL
  7562.          };
  7563.         
  7564.   ;
  7565.   return 0;
  7566. }
  7567. _ACEOF
  7568. if ac_fn_c_try_compile "$LINENO"; then :
  7569.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7570. $as_echo "no" >&6; }
  7571. else
  7572.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7573. $as_echo "yes" >&6; }
  7574.         
  7575. $as_echo "@%:@define HAVE_COMBINED_AIO_AND_VECTOR 1" >>confdefs.h
  7576.  
  7577. fi
  7578. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7579.  
  7580.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kzalloc" >&5
  7581. $as_echo_n "checking for kzalloc... " >&6; }
  7582.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7583. /* end confdefs.h.  */
  7584.  
  7585.         #define __KERNEL__
  7586.         #include <linux/slab.h>
  7587.     
  7588. int
  7589. main ()
  7590. {
  7591.  
  7592.         void * a;
  7593.         a = kzalloc(1024, GFP_KERNEL);
  7594.     
  7595.   ;
  7596.   return 0;
  7597. }
  7598. _ACEOF
  7599. if ac_fn_c_try_compile "$LINENO"; then :
  7600.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7601. $as_echo "yes" >&6; }
  7602.     
  7603. $as_echo "@%:@define HAVE_KZALLOC 1" >>confdefs.h
  7604.  
  7605. else
  7606.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7607. $as_echo "no" >&6; }
  7608.     
  7609. fi
  7610. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7611.  
  7612.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two arguments to register_sysctl_table" >&5
  7613. $as_echo_n "checking for two arguments to register_sysctl_table... " >&6; }
  7614.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7615. /* end confdefs.h.  */
  7616.  
  7617.         #define __KERNEL__
  7618.         #include <linux/sysctl.h>
  7619.         #include <linux/proc_fs.h>
  7620.     
  7621. int
  7622. main ()
  7623. {
  7624.  
  7625.         register_sysctl_table(NULL, 0);
  7626.     
  7627.   ;
  7628.   return 0;
  7629. }
  7630. _ACEOF
  7631. if ac_fn_c_try_compile "$LINENO"; then :
  7632.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7633. $as_echo "yes" >&6; }
  7634.     
  7635. $as_echo "@%:@define HAVE_TWO_ARG_REGISTER_SYSCTL_TABLE 1" >>confdefs.h
  7636.  
  7637. else
  7638.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7639. $as_echo "no" >&6; }
  7640.     
  7641. fi
  7642. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7643.  
  7644.             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for generic FS_IOC ioctl flags" >&5
  7645. $as_echo_n "checking for generic FS_IOC ioctl flags... " >&6; }
  7646.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7647. /* end confdefs.h.  */
  7648.  
  7649.         #define __KERNEL__
  7650.         #include <linux/fs.h>
  7651.     
  7652. int
  7653. main ()
  7654. {
  7655.  
  7656.         int flags = FS_IOC_GETFLAGS;
  7657.     
  7658.   ;
  7659.   return 0;
  7660. }
  7661. _ACEOF
  7662. if ac_fn_c_try_compile "$LINENO"; then :
  7663.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7664. $as_echo "yes" >&6; }
  7665. else
  7666.   
  7667. $as_echo "@%:@define HAVE_NO_FS_IOC_FLAGS 1" >>confdefs.h
  7668.  
  7669.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7670. $as_echo "no" >&6; }
  7671.     
  7672. fi
  7673. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7674.  
  7675.                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete struct page count without underscore" >&5
  7676. $as_echo_n "checking for obsolete struct page count without underscore... " >&6; }
  7677.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7678. /* end confdefs.h.  */
  7679.  
  7680.         #define __KERNEL__
  7681.         #include <linux/mm.h>
  7682.     
  7683. int
  7684. main ()
  7685. {
  7686.  
  7687.         struct page *p;
  7688.         int foo;
  7689.         foo = atomic_read(&(p)->count);
  7690.     
  7691.   ;
  7692.   return 0;
  7693. }
  7694. _ACEOF
  7695. if ac_fn_c_try_compile "$LINENO"; then :
  7696.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7697. $as_echo "yes" >&6; }
  7698.     
  7699. $as_echo "@%:@define HAVE_OBSOLETE_STRUCT_PAGE_COUNT_NO_UNDERSCORE 1" >>confdefs.h
  7700.  
  7701. else
  7702.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7703. $as_echo "no" >&6; }
  7704.     
  7705. fi
  7706. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7707.  
  7708.                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if kernel has device classes" >&5
  7709. $as_echo_n "checking if kernel has device classes... " >&6; }
  7710.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7711. /* end confdefs.h.  */
  7712.  
  7713.         #define __KERNEL__
  7714.         #include <linux/device.h>
  7715.     
  7716. int
  7717. main ()
  7718. {
  7719.  
  7720.         class_device_destroy(NULL, "pvfs2")
  7721.     
  7722.   ;
  7723.   return 0;
  7724. }
  7725. _ACEOF
  7726. if ac_fn_c_try_compile "$LINENO"; then :
  7727.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7728. $as_echo "yes" >&6; }
  7729.     
  7730. $as_echo "@%:@define HAVE_KERNEL_DEVICE_CLASSES 1" >>confdefs.h
  7731.  
  7732. else
  7733.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7734. $as_echo "no" >&6; }
  7735.     
  7736. fi
  7737. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7738.  
  7739.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for destructor param to kmem_cache_create" >&5
  7740. $as_echo_n "checking for destructor param to kmem_cache_create... " >&6; }
  7741.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7742. /* end confdefs.h.  */
  7743.  
  7744.         #define __KERNEL__
  7745.         #include <linux/slab.h>
  7746.     
  7747. int
  7748. main ()
  7749. {
  7750.  
  7751.        kmem_cache_create("config-test", 0, 0, 0, NULL, NULL);
  7752.     
  7753.   ;
  7754.   return 0;
  7755. }
  7756. _ACEOF
  7757. if ac_fn_c_try_compile "$LINENO"; then :
  7758.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7759. $as_echo "yes" >&6; }
  7760.     
  7761. $as_echo "@%:@define HAVE_KMEM_CACHE_CREATE_DESTRUCTOR_PARAM 1" >>confdefs.h
  7762.  
  7763. else
  7764.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7765. $as_echo "no" >&6; }
  7766.     
  7767. fi
  7768. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7769.  
  7770.                                         tmp_cflags=$CFLAGS
  7771.     CFLAGS="$CFLAGS -Werror"
  7772.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for one-param kmem_cache_create constructor" >&5
  7773. $as_echo_n "checking for one-param kmem_cache_create constructor... " >&6; }
  7774.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7775. /* end confdefs.h.  */
  7776.  
  7777.         #define __KERNEL__
  7778.         #include <linux/kernel.h>
  7779.         #include <linux/slab.h>
  7780.         void ctor(void *req)
  7781.         {
  7782.         }
  7783.     
  7784. int
  7785. main ()
  7786. {
  7787.  
  7788.         kmem_cache_create("config-test", 0, 0, 0, ctor);
  7789.     
  7790.   ;
  7791.   return 0;
  7792. }
  7793. _ACEOF
  7794. if ac_fn_c_try_compile "$LINENO"; then :
  7795.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7796. $as_echo "yes" >&6; }
  7797.     
  7798. $as_echo "@%:@define HAVE_KMEM_CACHE_CREATE_CTOR_ONE_PARAM 1" >>confdefs.h
  7799.  
  7800. else
  7801.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7802. $as_echo "no" >&6; }
  7803.     
  7804. fi
  7805. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7806.     CFLAGS=$tmp_cflags
  7807.  
  7808.                                 tmp_cflags=$CFLAGS
  7809.     CFLAGS="$CFLAGS -Werror -Wall"
  7810.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two param permission" >&5
  7811. $as_echo_n "checking for two param permission... " >&6; }
  7812.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7813. /* end confdefs.h.  */
  7814.  
  7815.         #define __KERNEL__
  7816.         #include <linux/kernel.h>
  7817.         #include <linux/slab.h>
  7818.         #include <linux/fs.h>
  7819.         #include <linux/namei.h>
  7820.         int ctor(struct inode *i, int a)
  7821.         {
  7822.             return 0;
  7823.         }
  7824.         struct inode_operations iop = {
  7825.             .permission = ctor,
  7826.         };
  7827.     
  7828. int
  7829. main ()
  7830. {
  7831.  
  7832.     
  7833.   ;
  7834.   return 0;
  7835. }
  7836. _ACEOF
  7837. if ac_fn_c_try_compile "$LINENO"; then :
  7838.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7839. $as_echo "yes" >&6; }
  7840.     
  7841. $as_echo "@%:@define HAVE_TWO_PARAM_PERMISSION 1" >>confdefs.h
  7842.  
  7843. else
  7844.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7845. $as_echo "no" >&6; }
  7846.     
  7847. fi
  7848. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7849.     CFLAGS=$tmp_cflags
  7850.  
  7851.  
  7852.                                     tmp_cflags=$CFLAGS
  7853.     CFLAGS="$CFLAGS -Werror"
  7854.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-param kmem_cache_create constructor" >&5
  7855. $as_echo_n "checking for two-param kmem_cache_create constructor... " >&6; }
  7856.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7857. /* end confdefs.h.  */
  7858.  
  7859.         #define __KERNEL__
  7860.         #include <linux/kernel.h>
  7861.         #include <linux/slab.h>
  7862.         void ctor(struct kmem_cache *cachep, void *req)
  7863.         {
  7864.         }
  7865.     
  7866. int
  7867. main ()
  7868. {
  7869.  
  7870.         kmem_cache_create("config-test", 0, 0, 0, ctor);
  7871.     
  7872.   ;
  7873.   return 0;
  7874. }
  7875. _ACEOF
  7876. if ac_fn_c_try_compile "$LINENO"; then :
  7877.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7878. $as_echo "yes" >&6; }
  7879.     
  7880. $as_echo "@%:@define HAVE_KMEM_CACHE_CREATE_CTOR_TWO_PARAM 1" >>confdefs.h
  7881.  
  7882. else
  7883.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7884. $as_echo "no" >&6; }
  7885.     
  7886. fi
  7887. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7888.     CFLAGS=$tmp_cflags
  7889.  
  7890.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if kernel address_space struct has a spin_lock field named page_lock" >&5
  7891. $as_echo_n "checking if kernel address_space struct has a spin_lock field named page_lock... " >&6; }
  7892.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7893. /* end confdefs.h.  */
  7894.  
  7895.         #define __KERNEL__
  7896.         #include <linux/fs.h>
  7897.     
  7898. int
  7899. main ()
  7900. {
  7901.  
  7902.         struct address_space as;
  7903.         spin_lock(&as.page_lock);
  7904.     
  7905.   ;
  7906.   return 0;
  7907. }
  7908. _ACEOF
  7909. if ac_fn_c_try_compile "$LINENO"; then :
  7910.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7911. $as_echo "yes" >&6; }
  7912.     
  7913. $as_echo "@%:@define HAVE_SPIN_LOCK_PAGE_ADDR_SPACE_STRUCT 1" >>confdefs.h
  7914.  
  7915. else
  7916.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7917. $as_echo "no" >&6; }
  7918.     
  7919. fi
  7920. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7921.  
  7922.         tmp_cflags=$CFLAGS
  7923.         CFLAGS="$CFLAGS -Werror"
  7924.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if kernel address_space struct has a rwlock_t field named tree_lock" >&5
  7925. $as_echo_n "checking if kernel address_space struct has a rwlock_t field named tree_lock... " >&6; }
  7926.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7927. /* end confdefs.h.  */
  7928.  
  7929.         #define __KERNEL__
  7930.         #include <linux/fs.h>
  7931.     
  7932. int
  7933. main ()
  7934. {
  7935.  
  7936.         struct address_space as;
  7937.         read_lock(&as.tree_lock);
  7938.     
  7939.   ;
  7940.   return 0;
  7941. }
  7942. _ACEOF
  7943. if ac_fn_c_try_compile "$LINENO"; then :
  7944.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7945. $as_echo "yes" >&6; }
  7946.     
  7947. $as_echo "@%:@define HAVE_RW_LOCK_TREE_ADDR_SPACE_STRUCT 1" >>confdefs.h
  7948.  
  7949. else
  7950.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7951. $as_echo "no" >&6; }
  7952.     
  7953. fi
  7954. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7955.         CFLAGS=$tmp_cflags
  7956.  
  7957.         tmp_cflags=$CFLAGS
  7958.         CFLAGS="$CFLAGS -Werror"
  7959.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if kernel address_space struct has a spinlock_t field named tree_lock" >&5
  7960. $as_echo_n "checking if kernel address_space struct has a spinlock_t field named tree_lock... " >&6; }
  7961.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7962. /* end confdefs.h.  */
  7963.  
  7964.         #define __KERNEL__
  7965.         #include <linux/fs.h>
  7966.     
  7967. int
  7968. main ()
  7969. {
  7970.  
  7971.         struct address_space as;
  7972.         spin_lock(&as.tree_lock);
  7973.     
  7974.   ;
  7975.   return 0;
  7976. }
  7977. _ACEOF
  7978. if ac_fn_c_try_compile "$LINENO"; then :
  7979.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7980. $as_echo "yes" >&6; }
  7981.     
  7982. $as_echo "@%:@define HAVE_SPIN_LOCK_TREE_ADDR_SPACE_STRUCT 1" >>confdefs.h
  7983.  
  7984. else
  7985.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7986. $as_echo "no" >&6; }
  7987.     
  7988. fi
  7989. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7990.         CFLAGS=$tmp_cflags
  7991.  
  7992.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if kernel address_space struct has a priv_lock field - from RT linux" >&5
  7993. $as_echo_n "checking if kernel address_space struct has a priv_lock field - from RT linux... " >&6; }
  7994.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7995. /* end confdefs.h.  */
  7996.  
  7997.         #define __KERNEL__
  7998.         #include <linux/fs.h>
  7999.     
  8000. int
  8001. main ()
  8002. {
  8003.  
  8004.         struct address_space as;
  8005.         spin_lock(&as.priv_lock);
  8006.     
  8007.   ;
  8008.   return 0;
  8009. }
  8010. _ACEOF
  8011. if ac_fn_c_try_compile "$LINENO"; then :
  8012.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8013. $as_echo "yes" >&6; }
  8014.     
  8015. $as_echo "@%:@define HAVE_RT_PRIV_LOCK_ADDR_SPACE_STRUCT 1" >>confdefs.h
  8016.  
  8017. else
  8018.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8019. $as_echo "no" >&6; }
  8020.     
  8021. fi
  8022. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8023.  
  8024.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if kernel defines mapping_nrpages macro - from RT linux" >&5
  8025. $as_echo_n "checking if kernel defines mapping_nrpages macro - from RT linux... " >&6; }
  8026.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8027. /* end confdefs.h.  */
  8028.  
  8029.         #define __KERNEL__
  8030.         #include <linux/fs.h>
  8031.     
  8032. int
  8033. main ()
  8034. {
  8035.  
  8036.         struct address_space idata;
  8037.         int i = mapping_nrpages(&idata);
  8038.     
  8039.   ;
  8040.   return 0;
  8041. }
  8042. _ACEOF
  8043. if ac_fn_c_try_compile "$LINENO"; then :
  8044.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8045. $as_echo "yes" >&6; }
  8046.     
  8047. $as_echo "@%:@define HAVE_MAPPING_NRPAGES_MACRO 1" >>confdefs.h
  8048.  
  8049. else
  8050.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8051. $as_echo "no" >&6; }
  8052.     
  8053. fi
  8054. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8055.  
  8056.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if kernel super_operations contains read_inode field" >&5
  8057. $as_echo_n "checking if kernel super_operations contains read_inode field... " >&6; }
  8058.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8059. /* end confdefs.h.  */
  8060.  
  8061.         #define __KERNEL__
  8062.         #include <linux/fs.h>
  8063.     
  8064. int
  8065. main ()
  8066. {
  8067.  
  8068.         struct super_operations sops;
  8069.         sops.read_inode(NULL);
  8070.     
  8071.   ;
  8072.   return 0;
  8073. }
  8074. _ACEOF
  8075. if ac_fn_c_try_compile "$LINENO"; then :
  8076.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8077. $as_echo "yes" >&6; }
  8078.     
  8079. $as_echo "@%:@define HAVE_READ_INODE 1" >>confdefs.h
  8080.  
  8081. else
  8082.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8083. $as_echo "no" >&6; }
  8084.     
  8085. fi
  8086. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8087.  
  8088.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if kernel super_operations contains drop_inode field" >&5
  8089. $as_echo_n "checking if kernel super_operations contains drop_inode field... " >&6; }
  8090.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8091. /* end confdefs.h.  */
  8092.  
  8093.         #define __KERNEL__
  8094.         #include <linux/fs.h>
  8095.     
  8096. int
  8097. main ()
  8098. {
  8099.  
  8100.         struct super_operations sops;
  8101.         sops.drop_inode(NULL);
  8102.     
  8103.   ;
  8104.   return 0;
  8105. }
  8106. _ACEOF
  8107. if ac_fn_c_try_compile "$LINENO"; then :
  8108.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8109. $as_echo "yes" >&6; }
  8110.     
  8111. $as_echo "@%:@define HAVE_DROP_INODE 1" >>confdefs.h
  8112.  
  8113. else
  8114.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8115. $as_echo "no" >&6; }
  8116.     
  8117. fi
  8118. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8119.  
  8120.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if kernel super_operations contains put_inode field" >&5
  8121. $as_echo_n "checking if kernel super_operations contains put_inode field... " >&6; }
  8122.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8123. /* end confdefs.h.  */
  8124.  
  8125.         #define __KERNEL__
  8126.         #include <linux/fs.h>
  8127.     
  8128. int
  8129. main ()
  8130. {
  8131.  
  8132.         struct super_operations sops;
  8133.         sops.put_inode(NULL);
  8134.     
  8135.   ;
  8136.   return 0;
  8137. }
  8138. _ACEOF
  8139. if ac_fn_c_try_compile "$LINENO"; then :
  8140.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8141. $as_echo "yes" >&6; }
  8142.     
  8143. $as_echo "@%:@define HAVE_PUT_INODE 1" >>confdefs.h
  8144.  
  8145. else
  8146.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8147. $as_echo "no" >&6; }
  8148.     
  8149. fi
  8150. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8151.  
  8152.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mount.h defines MNT_NOATIME" >&5
  8153. $as_echo_n "checking if mount.h defines MNT_NOATIME... " >&6; }
  8154.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8155. /* end confdefs.h.  */
  8156.  
  8157.         #define __KERNEL__
  8158.         #include <linux/mount.h>
  8159.     
  8160. int
  8161. main ()
  8162. {
  8163.  
  8164.         int flag = MNT_NOATIME;
  8165.     
  8166.   ;
  8167.   return 0;
  8168. }
  8169. _ACEOF
  8170. if ac_fn_c_try_compile "$LINENO"; then :
  8171.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8172. $as_echo "yes" >&6; }
  8173.     
  8174. $as_echo "@%:@define HAVE_MNT_NOATIME 1" >>confdefs.h
  8175.  
  8176. else
  8177.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8178. $as_echo "no" >&6; }
  8179.     
  8180. fi
  8181. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8182.  
  8183.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mount.h defines MNT_NODIRATIME" >&5
  8184. $as_echo_n "checking if mount.h defines MNT_NODIRATIME... " >&6; }
  8185.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8186. /* end confdefs.h.  */
  8187.  
  8188.         #define __KERNEL__
  8189.         #include <linux/mount.h>
  8190.     
  8191. int
  8192. main ()
  8193. {
  8194.  
  8195.         int flag = MNT_NODIRATIME;
  8196.     
  8197.   ;
  8198.   return 0;
  8199. }
  8200. _ACEOF
  8201. if ac_fn_c_try_compile "$LINENO"; then :
  8202.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8203. $as_echo "yes" >&6; }
  8204.     
  8205. $as_echo "@%:@define HAVE_MNT_NODIRATIME 1" >>confdefs.h
  8206.  
  8207. else
  8208.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8209. $as_echo "no" >&6; }
  8210.     
  8211. fi
  8212. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8213.  
  8214.                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_alloc_anon" >&5
  8215. $as_echo_n "checking for d_alloc_anon... " >&6; }
  8216.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8217. /* end confdefs.h.  */
  8218.  
  8219.                 #define __KERNEL__
  8220.                 #include <linux/dcache.h>
  8221.         
  8222. int
  8223. main ()
  8224. {
  8225.  
  8226.                 struct inode *i;
  8227.                 d_alloc_anon(i);
  8228.         
  8229.   ;
  8230.   return 0;
  8231. }
  8232. _ACEOF
  8233. if ac_fn_c_try_compile "$LINENO"; then :
  8234.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8235. $as_echo "yes" >&6; }
  8236.         
  8237. $as_echo "@%:@define HAVE_D_ALLOC_ANON 1" >>confdefs.h
  8238.  
  8239. else
  8240.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8241. $as_echo "no" >&6; }
  8242.         
  8243. fi
  8244. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8245.  
  8246.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for s_dirty in struct super_block" >&5
  8247. $as_echo_n "checking for s_dirty in struct super_block... " >&6; }
  8248.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8249. /* end confdefs.h.  */
  8250.  
  8251.                 #define __KERNEL__
  8252.                 #include <linux/fs.h>
  8253.         
  8254. int
  8255. main ()
  8256. {
  8257.  
  8258.                 struct super_block *s;
  8259.                 list_empty(&s->s_dirty);
  8260.         
  8261.   ;
  8262.   return 0;
  8263. }
  8264. _ACEOF
  8265. if ac_fn_c_try_compile "$LINENO"; then :
  8266.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8267. $as_echo "yes" >&6; }
  8268.         
  8269. $as_echo "@%:@define HAVE_SB_DIRTY_LIST 1" >>confdefs.h
  8270.  
  8271. else
  8272.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8273. $as_echo "no" >&6; }
  8274.         
  8275. fi
  8276. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8277.  
  8278.                         tmp_cflags=$CFLAGS
  8279.         CFLAGS="$CFLAGS -Werror"
  8280.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for current_fsuid" >&5
  8281. $as_echo_n "checking for current_fsuid... " >&6; }
  8282.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8283. /* end confdefs.h.  */
  8284.  
  8285.                 #define __KERNEL__
  8286.                 #include <linux/sched.h>
  8287.                 #include <linux/cred.h>
  8288.         
  8289. int
  8290. main ()
  8291. {
  8292.  
  8293.                 int uid = current_fsuid();
  8294.         
  8295.   ;
  8296.   return 0;
  8297. }
  8298. _ACEOF
  8299. if ac_fn_c_try_compile "$LINENO"; then :
  8300.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8301. $as_echo "yes" >&6; }
  8302.         
  8303. $as_echo "@%:@define HAVE_CURRENT_FSUID 1" >>confdefs.h
  8304.  
  8305. else
  8306.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8307. $as_echo "no" >&6; }
  8308.         
  8309. fi
  8310. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8311.         CFLAGS=$tmp_cflags
  8312.  
  8313.                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if kernel backing_dev_info struct has a name field" >&5
  8314. $as_echo_n "checking if kernel backing_dev_info struct has a name field... " >&6; }
  8315.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8316. /* end confdefs.h.  */
  8317.  
  8318.         #define __KERNEL__
  8319.         #include <linux/fs.h>
  8320.         #include <linux/backing-dev.h>
  8321.     
  8322. int
  8323. main ()
  8324. {
  8325.  
  8326.                 struct backing_dev_info foo = 
  8327.                 {
  8328.                     .name = "foo"
  8329.                 };
  8330.     
  8331.   ;
  8332.   return 0;
  8333. }
  8334. _ACEOF
  8335. if ac_fn_c_try_compile "$LINENO"; then :
  8336.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8337. $as_echo "yes" >&6; }
  8338.     
  8339. $as_echo "@%:@define HAVE_BACKING_DEV_INFO_NAME 1" >>confdefs.h
  8340.  
  8341. else
  8342.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8343. $as_echo "no" >&6; }
  8344.     
  8345. fi
  8346. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8347.  
  8348.                 tmp_cflags=$CFLAGS
  8349.         CFLAGS="$CFLAGS -Werror"
  8350.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdi_init" >&5
  8351. $as_echo_n "checking for bdi_init... " >&6; }
  8352.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8353. /* end confdefs.h.  */
  8354.  
  8355.                 #define __KERNEL__
  8356.         #include <linux/fs.h>
  8357.         #include <linux/backing-dev.h>
  8358.         
  8359. int
  8360. main ()
  8361. {
  8362.  
  8363.                 int ret = bdi_init(NULL);
  8364.         
  8365.   ;
  8366.   return 0;
  8367. }
  8368. _ACEOF
  8369. if ac_fn_c_try_compile "$LINENO"; then :
  8370.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8371. $as_echo "yes" >&6; }
  8372.         
  8373. $as_echo "@%:@define HAVE_BDI_INIT 1" >>confdefs.h
  8374.  
  8375. else
  8376.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8377. $as_echo "no" >&6; }
  8378.         
  8379. fi
  8380. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8381.         CFLAGS=$tmp_cflags
  8382.  
  8383.  
  8384.                 tmp_cflags=$CFLAGS
  8385.         CFLAGS="$CFLAGS -Werror"
  8386.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ctl_table has ctl_name" >&5
  8387. $as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; }
  8388.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8389. /* end confdefs.h.  */
  8390.  
  8391.         #define __KERNEL__
  8392.         #include <linux/sysctl.h>
  8393.                 static struct ctl_table c = { .ctl_name = 0, };
  8394.     
  8395. int
  8396. main ()
  8397. {
  8398.  
  8399.   ;
  8400.   return 0;
  8401. }
  8402. _ACEOF
  8403. if ac_fn_c_try_compile "$LINENO"; then :
  8404.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8405. $as_echo "yes" >&6; }
  8406.     
  8407. $as_echo "@%:@define HAVE_CTL_NAME 1" >>confdefs.h
  8408.  
  8409. else
  8410.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8411. $as_echo "no" >&6; }
  8412.     
  8413. fi
  8414. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8415.  
  8416.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ctl_table has strategy" >&5
  8417. $as_echo_n "checking whether struct ctl_table has strategy... " >&6; }
  8418.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8419. /* end confdefs.h.  */
  8420.  
  8421.         #define __KERNEL__
  8422.         #include <linux/sysctl.h>
  8423.                 static struct ctl_table c = { .strategy = 0, };
  8424.     
  8425. int
  8426. main ()
  8427. {
  8428.  
  8429.   ;
  8430.   return 0;
  8431. }
  8432. _ACEOF
  8433. if ac_fn_c_try_compile "$LINENO"; then :
  8434.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8435. $as_echo "yes" >&6; }
  8436.     
  8437. $as_echo "@%:@define HAVE_STRATEGY_NAME 1" >>confdefs.h
  8438.  
  8439. else
  8440.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8441. $as_echo "no" >&6; }
  8442.     
  8443. fi
  8444. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8445.         CFLAGS=$tmp_cflags
  8446.  
  8447.                     tmp_cflags=$CFLAGS
  8448.     CFLAGS="$CFLAGS -Werror"
  8449.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for five-param xattr_handler.get" >&5
  8450. $as_echo_n "checking for five-param xattr_handler.get... " >&6; }
  8451.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8452. /* end confdefs.h.  */
  8453.  
  8454.         #define __KERNEL__
  8455.         #include <linux/dcache.h>
  8456.         #include <linux/xattr.h>
  8457.         static struct xattr_handler x;
  8458.         static int get_xattr_h( struct dentry *d, const char *n, 
  8459.                     void *b, size_t s, int h)
  8460.         { return 0; }
  8461.     
  8462. int
  8463. main ()
  8464. {
  8465.  
  8466.         x.get = get_xattr_h;
  8467.     
  8468.   ;
  8469.   return 0;
  8470. }
  8471. _ACEOF
  8472. if ac_fn_c_try_compile "$LINENO"; then :
  8473.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8474. $as_echo "yes" >&6; }
  8475.     
  8476. $as_echo "@%:@define HAVE_XATTR_HANDLER_GET_FIVE_PARAM 1" >>confdefs.h
  8477.  
  8478. else
  8479.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8480. $as_echo "no" >&6; }
  8481.     
  8482. fi
  8483. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8484.  
  8485.                     tmp_cflags=$CFLAGS
  8486.     CFLAGS="$CFLAGS -Werror"
  8487.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for six-param xattr_handler.set" >&5
  8488. $as_echo_n "checking for six-param xattr_handler.set... " >&6; }
  8489.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8490. /* end confdefs.h.  */
  8491.  
  8492.         #define __KERNEL__
  8493.         #include <linux/dcache.h>
  8494.         #include <linux/xattr.h>
  8495.         static struct xattr_handler x;
  8496.         static int set_xattr_h( struct dentry *d, const char *n, 
  8497.                     const void *b, size_t s, int f, int h)
  8498.         { return 0; }
  8499.     
  8500. int
  8501. main ()
  8502. {
  8503.  
  8504.         x.set = set_xattr_h;
  8505.     
  8506.   ;
  8507.   return 0;
  8508. }
  8509. _ACEOF
  8510. if ac_fn_c_try_compile "$LINENO"; then :
  8511.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8512. $as_echo "yes" >&6; }
  8513.     
  8514. $as_echo "@%:@define HAVE_XATTR_HANDLER_SET_SIX_PARAM 1" >>confdefs.h
  8515.  
  8516. else
  8517.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8518. $as_echo "no" >&6; }
  8519.     
  8520. fi
  8521. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8522.         CFLAGS=$tmp_cflags
  8523.  
  8524.         tmp_cflags=$CFLAGS
  8525.     CFLAGS="$CFLAGS -Werror"
  8526.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const s_xattr member in super_block struct" >&5
  8527. $as_echo_n "checking for const s_xattr member in super_block struct... " >&6; }
  8528.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8529. /* end confdefs.h.  */
  8530.  
  8531.         #define __KERNEL__
  8532.         #include <linux/fs.h>
  8533.         #include <linux/xattr.h>
  8534.         struct super_block sb;
  8535.                 const struct xattr_handler *x[] = { NULL };
  8536.     
  8537. int
  8538. main ()
  8539. {
  8540.  
  8541.             sb.s_xattr = x;
  8542.     
  8543.   ;
  8544.   return 0;
  8545. }
  8546. _ACEOF
  8547. if ac_fn_c_try_compile "$LINENO"; then :
  8548.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8549. $as_echo "yes" >&6; }
  8550.     
  8551. $as_echo "@%:@define HAVE_CONST_S_XATTR_IN_SUPERBLOCK 1" >>confdefs.h
  8552.  
  8553. else
  8554.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8555. $as_echo "no" >&6; }
  8556.     
  8557. fi
  8558. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8559.         CFLAGS=$tmp_cflags
  8560.  
  8561.             tmp_cflags=$CFLAGS
  8562.     CFLAGS="$CFLAGS -Werror"
  8563.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking stddef.h true/false enum" >&5
  8564. $as_echo_n "checking stddef.h true/false enum... " >&6; }
  8565.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8566. /* end confdefs.h.  */
  8567.  
  8568.         #define __KERNEL__
  8569.         #include <linux/stddef.h>
  8570.                 int f = true;
  8571.     
  8572. int
  8573. main ()
  8574. {
  8575.  
  8576.   ;
  8577.   return 0;
  8578. }
  8579. _ACEOF
  8580. if ac_fn_c_try_compile "$LINENO"; then :
  8581.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8582. $as_echo "yes" >&6; }
  8583.     
  8584. $as_echo "@%:@define HAVE_TRUE_FALSE_ENUM 1" >>confdefs.h
  8585.  
  8586. else
  8587.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8588. $as_echo "no" >&6; }
  8589.     
  8590. fi
  8591. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8592.         CFLAGS=$tmp_cflags
  8593.  
  8594.  
  8595.         tmp_cflags=$CFLAGS
  8596.     CFLAGS="$CFLAGS -Werror"
  8597.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dentry argument in fsync" >&5
  8598. $as_echo_n "checking for dentry argument in fsync... " >&6; }
  8599.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8600. /* end confdefs.h.  */
  8601.  
  8602.         #define __KERNEL__
  8603.         #include <linux/fs.h>
  8604.         static struct file_operations f;
  8605.         static int local_fsync(struct file *f, struct dentry *d, int i)
  8606.         { return 0; }
  8607.     
  8608. int
  8609. main ()
  8610. {
  8611.  
  8612.         f.fsync = local_fsync;
  8613.     
  8614.   ;
  8615.   return 0;
  8616. }
  8617. _ACEOF
  8618. if ac_fn_c_try_compile "$LINENO"; then :
  8619.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8620. $as_echo "yes" >&6; }
  8621.     
  8622. $as_echo "@%:@define HAVE_FSYNC_DENTRY_PARAM 1" >>confdefs.h
  8623.  
  8624. else
  8625.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8626. $as_echo "no" >&6; }
  8627.     
  8628. fi
  8629. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8630.         CFLAGS=$tmp_cflags
  8631.  
  8632.     CFLAGS=$oldcflags
  8633.  
  8634.  
  8635.     
  8636. $as_echo "@%:@define WITH_LINUX_KMOD 1" >>confdefs.h
  8637.  
  8638. fi
  8639.  
  8640. @%:@ Check whether --enable-threaded-kmod-helper was given.
  8641. if test "${enable_threaded_kmod_helper+set}" = set; then :
  8642.   enableval=$enable_threaded_kmod_helper;  if test "x$enableval" = "xyes" ; then
  8643.     THREADED_KMOD_HELPER=yes
  8644.   fi
  8645.  
  8646. fi
  8647.  
  8648.  
  8649.  
  8650. BUILD_ABSOLUTE_TOP=`pwd`
  8651. SRC_RELATIVE_TOP=`echo $0 | sed -e "s|configure$||"`
  8652. SRC_ABSOLUTE_TOP=`cd $SRC_RELATIVE_TOP ; pwd`
  8653.  
  8654.  
  8655.  
  8656.  
  8657.  
  8658.  
  8659.  
  8660.  
  8661. @%:@ Check whether --enable-fast was given.
  8662. if test "${enable_fast+set}" = set; then :
  8663.   enableval=$enable_fast; 
  8664. if test "x$USR_CFLAGS_SET" = "xno"; then
  8665.     CFLAGS="$CFLAGS -DNDEBUG -O3 -DGOSSIP_DISABLE_DEBUG"
  8666. fi
  8667.  
  8668. fi
  8669.  
  8670.  
  8671. test_for_fuse()
  8672. {
  8673.   # Extract the first word of "pkg-config", so it can be a program name with args.
  8674. set dummy pkg-config; ac_word=$2
  8675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8676. $as_echo_n "checking for $ac_word... " >&6; }
  8677. if test "${ac_cv_prog_HAVE_PKGCONFIG+set}" = set; then :
  8678.   $as_echo_n "(cached) " >&6
  8679. else
  8680.   if test -n "$HAVE_PKGCONFIG"; then
  8681.   ac_cv_prog_HAVE_PKGCONFIG="$HAVE_PKGCONFIG" # Let the user override the test.
  8682. else
  8683. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8684. for as_dir in $PATH
  8685. do
  8686.   IFS=$as_save_IFS
  8687.   test -z "$as_dir" && as_dir=.
  8688.     for ac_exec_ext in '' $ac_executable_extensions; do
  8689.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8690.     ac_cv_prog_HAVE_PKGCONFIG="yes"
  8691.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8692.     break 2
  8693.   fi
  8694. done
  8695.   done
  8696. IFS=$as_save_IFS
  8697.  
  8698.   test -z "$ac_cv_prog_HAVE_PKGCONFIG" && ac_cv_prog_HAVE_PKGCONFIG="no"
  8699. fi
  8700. fi
  8701. HAVE_PKGCONFIG=$ac_cv_prog_HAVE_PKGCONFIG
  8702. if test -n "$HAVE_PKGCONFIG"; then
  8703.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_PKGCONFIG" >&5
  8704. $as_echo "$HAVE_PKGCONFIG" >&6; }
  8705. else
  8706.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8707. $as_echo "no" >&6; }
  8708. fi
  8709.  
  8710.  
  8711.   if test "x$HAVE_PKGCONFIG" = "xyes" ; then
  8712.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FUSE library" >&5
  8713. $as_echo_n "checking for FUSE library... " >&6; }
  8714.     if `pkg-config --exists fuse` ; then
  8715.        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8716. $as_echo "yes" >&6; }
  8717.        FUSE_LDFLAGS=`pkg-config --libs fuse`
  8718.        FUSE_CFLAGS=`pkg-config --cflags fuse`
  8719.  
  8720.        
  8721.        
  8722.        BUILD_FUSE="1"
  8723.        
  8724.     else
  8725.             as_fn_error "FUSE: FUSE library not found. Check LD_LIBRARY_PATH." "$LINENO" 5
  8726.     fi
  8727.   else
  8728.           as_fn_error "FUSE: pkg-config not available. Please install pkg-config." "$LINENO" 5
  8729.   fi
  8730. }
  8731.  
  8732. @%:@ Check whether --enable-fuse was given.
  8733. if test "${enable_fuse+set}" = set; then :
  8734.   enableval=$enable_fuse; 
  8735. if test "x$enableval" = "xyes" ; then
  8736.    test_for_fuse
  8737.    CFLAGS="$CFLAGS -D__PVFS2_ENABLE_FUSE__"
  8738. fi
  8739.  
  8740. fi
  8741.  
  8742.  
  8743. # default CFLAGS is -g -O2, unless user set CFLAGS or asked for --enable-fast
  8744. if test "x$USR_CFLAGS_SET" = "xno" && test "x$enable_fast" != "xyes"; then
  8745.     CFLAGS="$CFLAGS -g -O2"
  8746. fi
  8747.  
  8748.  
  8749.  
  8750.  
  8751. STRICT_CFLAGS=
  8752. @%:@ Check whether --enable-strict was given.
  8753. if test "${enable_strict+set}" = set; then :
  8754.   enableval=$enable_strict; STRICT_CFLAGS=1
  8755. fi
  8756.  
  8757.  
  8758.  
  8759. @%:@ Check whether --enable-verbose-build was given.
  8760. if test "${enable_verbose_build+set}" = set; then :
  8761.   enableval=$enable_verbose_build; QUIET_COMPILE=0
  8762. else
  8763.   QUIET_COMPILE=1
  8764. fi
  8765.  
  8766.  
  8767.  
  8768.  
  8769. test_for_epoll()
  8770. {
  8771.   for ac_header in sys/epoll.h
  8772. do :
  8773.   ac_fn_c_check_header_mongrel "$LINENO" "sys/epoll.h" "ac_cv_header_sys_epoll_h" "$ac_includes_default"
  8774. if test "x$ac_cv_header_sys_epoll_h" = x""yes; then :
  8775.   cat >>confdefs.h <<_ACEOF
  8776. @%:@define HAVE_SYS_EPOLL_H 1
  8777. _ACEOF
  8778.  
  8779. fi
  8780.  
  8781. done
  8782.  
  8783.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll functions" >&5
  8784. $as_echo_n "checking for epoll functions... " >&6; }
  8785.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8786. /* end confdefs.h.  */
  8787. #include <sys/epoll.h>
  8788. int
  8789. main ()
  8790. {
  8791.  
  8792.     int fd;
  8793.     fd = epoll_create(1);
  8794.     close(fd);
  8795.   
  8796.   ;
  8797.   return 0;
  8798. }
  8799. _ACEOF
  8800. if ac_fn_c_try_link "$LINENO"; then :
  8801.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8802. $as_echo "yes" >&6; }
  8803.      BUILD_EPOLL=1
  8804.      
  8805. else
  8806.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8807. $as_echo "no" >&6; }
  8808.   
  8809. fi
  8810. rm -f core conftest.err conftest.$ac_objext \
  8811.     conftest$ac_exeext conftest.$ac_ext
  8812. }
  8813.  
  8814. @%:@ Check whether --enable-epoll was given.
  8815. if test "${enable_epoll+set}" = set; then :
  8816.   enableval=$enable_epoll; 
  8817.    if test "x$enableval" = "xyes"; then
  8818.         BUILD_EPOLL=1
  8819.         
  8820.    fi
  8821.  
  8822. else
  8823.   
  8824.   test_for_epoll
  8825.  
  8826. fi
  8827.  
  8828.  
  8829. @%:@ Check whether --enable-segv-backtrace was given.
  8830. if test "${enable_segv_backtrace+set}" = set; then :
  8831.   enableval=$enable_segv_backtrace; 
  8832. else
  8833.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if segv backtrace capable" >&5
  8834. $as_echo_n "checking if segv backtrace capable... " >&6; }
  8835.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8836. /* end confdefs.h.  */
  8837.  
  8838. #include <execinfo.h>
  8839. #define __USE_GNU
  8840. #include <ucontext.h>
  8841. #if !defined(REG_EIP) && !defined(REG_RIP)
  8842.            choke me
  8843. #endif
  8844.            
  8845. int
  8846. main ()
  8847. {
  8848.  
  8849.   ;
  8850.   return 0;
  8851. }
  8852. _ACEOF
  8853. if ac_fn_c_try_compile "$LINENO"; then :
  8854.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8855. $as_echo "yes" >&6; }
  8856.                PVFS2_SEGV_BACKTRACE=1
  8857. else
  8858.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8859. $as_echo "no" >&6; }
  8860.     
  8861. fi
  8862. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8863.  
  8864. fi
  8865.  
  8866.  
  8867.  
  8868. @%:@ Check whether --enable-shared was given.
  8869. if test "${enable_shared+set}" = set; then :
  8870.   enableval=$enable_shared; build_shared=$enableval
  8871. else
  8872.   build_shared=no
  8873. fi
  8874.  
  8875.  
  8876.  
  8877. if test "x$build_shared" = "xno" -a "x$build_static" = "xno" ; then
  8878.     as_fn_error "Must do --enable-shared or --enable-static or both." "$LINENO" 5
  8879. fi
  8880.  
  8881. INTELC=
  8882. GNUC=
  8883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc is an Intel compiler" >&5
  8884. $as_echo_n "checking whether cc is an Intel compiler... " >&6; }
  8885. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8886. /* end confdefs.h.  */
  8887.  
  8888. #ifndef __ICC
  8889.        choke me
  8890. #endif
  8891.  
  8892. int
  8893. main ()
  8894. {
  8895.  
  8896.   ;
  8897.   return 0;
  8898. }
  8899. _ACEOF
  8900. if ac_fn_c_try_compile "$LINENO"; then :
  8901.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8902. $as_echo "yes" >&6; }
  8903.     INTELC=1
  8904.     
  8905. else
  8906.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8907. $as_echo "no" >&6; }
  8908.  
  8909. fi
  8910. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8911. if test "x$INTELC" = "x" ; then
  8912.     if test "x$GCC" = "xyes" ; then
  8913.        GNUC=1
  8914.     fi
  8915. fi
  8916.  
  8917.  
  8918.  
  8919.  
  8920. @%:@ Check whether --with-efence was given.
  8921. if test "${with_efence+set}" = set; then :
  8922.   withval=$with_efence; if test "x$withval" != "xyes" ; then
  8923.               LDFLAGS="${LDFLAGS} -L$withval"
  8924.        fi
  8925.        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -lefence" >&5
  8926. $as_echo_n "checking for malloc in -lefence... " >&6; }
  8927. if test "${ac_cv_lib_efence_malloc+set}" = set; then :
  8928.   $as_echo_n "(cached) " >&6
  8929. else
  8930.   ac_check_lib_save_LIBS=$LIBS
  8931. LIBS="-lefence  $LIBS"
  8932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8933. /* end confdefs.h.  */
  8934.  
  8935. /* Override any GCC internal prototype to avoid an error.
  8936.    Use char because int might match the return type of a GCC
  8937.    builtin and then its argument prototype would still apply.  */
  8938. #ifdef __cplusplus
  8939. extern "C"
  8940. #endif
  8941. char malloc ();
  8942. int
  8943. main ()
  8944. {
  8945. return malloc ();
  8946.   ;
  8947.   return 0;
  8948. }
  8949. _ACEOF
  8950. if ac_fn_c_try_link "$LINENO"; then :
  8951.   ac_cv_lib_efence_malloc=yes
  8952. else
  8953.   ac_cv_lib_efence_malloc=no
  8954. fi
  8955. rm -f core conftest.err conftest.$ac_objext \
  8956.     conftest$ac_exeext conftest.$ac_ext
  8957. LIBS=$ac_check_lib_save_LIBS
  8958. fi
  8959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efence_malloc" >&5
  8960. $as_echo "$ac_cv_lib_efence_malloc" >&6; }
  8961. if test "x$ac_cv_lib_efence_malloc" = x""yes; then :
  8962.   cat >>confdefs.h <<_ACEOF
  8963. @%:@define HAVE_LIBEFENCE 1
  8964. _ACEOF
  8965.  
  8966.   LIBS="-lefence $LIBS"
  8967.  
  8968. fi
  8969.  
  8970.  
  8971. fi
  8972.  
  8973.  
  8974.  
  8975. @%:@ Check whether --with-valgrind was given.
  8976. if test "${with_valgrind+set}" = set; then :
  8977.   withval=$with_valgrind; 
  8978.     found=no
  8979.     save_cppflags="$CPPFLAGS"
  8980.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for valgrind.h usability" >&5
  8981. $as_echo_n "checking for valgrind.h usability... " >&6; }
  8982.     if test "x$withval" = xyes ; then
  8983.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8984. /* end confdefs.h.  */
  8985. #include <valgrind.h>
  8986. _ACEOF
  8987. if ac_fn_c_try_compile "$LINENO"; then :
  8988.   found=yes
  8989. fi
  8990. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8991.     if test x$found = xno ; then
  8992.         CPPFLAGS="$CPPFLAGS -I/usr/include/valgrind"
  8993.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8994. /* end confdefs.h.  */
  8995. #include <valgrind.h>
  8996. _ACEOF
  8997. if ac_fn_c_try_compile "$LINENO"; then :
  8998.   found=yes
  8999. else
  9000.   CPPFLAGS="$save_cppflags"
  9001. fi
  9002. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9003.     fi
  9004.     else
  9005.     for d in $withval $withval/include \
  9006.              $withval/valgrind $withval/include/valgrind
  9007.     do
  9008.         CPPFLAGS="$CPPFLAGS -I$d"
  9009.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9010. /* end confdefs.h.  */
  9011. #include <valgrind.h>
  9012. _ACEOF
  9013. if ac_fn_c_try_compile "$LINENO"; then :
  9014.   found=yes
  9015. else
  9016.   CPPFLAGS="$save_cppflags"
  9017. fi
  9018. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9019.         if test x$found = xyes ; then
  9020.         break
  9021.         fi
  9022.     done
  9023.     fi
  9024.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
  9025. $as_echo "$found" >&6; }
  9026.     if test x$found = xyes ; then
  9027.     
  9028. $as_echo "@%:@define HAVE_VALGRIND_H 1" >>confdefs.h
  9029.  
  9030.     fi
  9031.  
  9032. fi
  9033.  
  9034.  
  9035. if test "x$NEED_BERKELEY_DB" = "xyes" ; then
  9036.                     
  9037. @%:@ Check whether --with-db was given.
  9038. if test "${with_db+set}" = set; then :
  9039.   withval=$with_db; 
  9040.     dbpath=${withval}
  9041.  
  9042.     DB_LDFLAGS=
  9043.                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db library" >&5
  9044. $as_echo_n "checking for db library... " >&6; }
  9045.     oldlibs=$LIBS
  9046.     lib=notfound
  9047.  
  9048.     if test "x$dbpath" != "x" ; then
  9049.     oldcflags=$CFLAGS
  9050.     for dbheader in db4 db3 notfound; do
  9051.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9052. /* end confdefs.h.  */
  9053. #include "$dbpath/include/$dbheader/db.h"
  9054. _ACEOF
  9055. if ac_fn_c_try_compile "$LINENO"; then :
  9056.   DB_CFLAGS="-I$dbpath/include/$dbheader/"
  9057.              break
  9058. fi
  9059. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9060.     done
  9061.  
  9062.     if test "x$dbheader" = "xnotfound"; then
  9063.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9064. /* end confdefs.h.  */
  9065. #include "$dbpath/include/db.h"
  9066. _ACEOF
  9067. if ac_fn_c_try_compile "$LINENO"; then :
  9068.   DB_CFLAGS="-I$dbpath/include/"
  9069. else
  9070.   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9071. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9072. as_fn_error "Invalid libdb path specified. No db.h found.
  9073. See \`config.log' for more details." "$LINENO" 5; }
  9074. fi
  9075. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9076.     fi
  9077.  
  9078.         DB_LDFLAGS="-L${dbpath}/lib"
  9079.     LDFLAGS="$DB_LDFLAGS ${LDFLAGS}"
  9080.  
  9081.     LIBS="${oldlibs} -ldb -lpthread"
  9082.     DB_LIB="-ldb"
  9083.     CFLAGS="$DB_CFLAGS $oldcflags"
  9084.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9085. /* end confdefs.h.  */
  9086. #include <db.h>
  9087. int
  9088. main ()
  9089. {
  9090. DB *dbp; db_create(&dbp, NULL, 0);
  9091.   ;
  9092.   return 0;
  9093. }
  9094. _ACEOF
  9095. if ac_fn_c_try_link "$LINENO"; then :
  9096.   lib=db
  9097. fi
  9098. rm -f core conftest.err conftest.$ac_objext \
  9099.     conftest$ac_exeext conftest.$ac_ext
  9100.     CFLAGS=$oldcflags
  9101.     
  9102.     else
  9103.         for lib in db4  db3  db  notfound; do
  9104.            LIBS="${oldlibs} -l$lib -lpthread"
  9105.            DB_LIB="-l$lib"
  9106.            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9107. /* end confdefs.h.  */
  9108. #include <db.h>
  9109. int
  9110. main ()
  9111. {
  9112. DB *dbp; db_create(&dbp, NULL, 0);
  9113.   ;
  9114.   return 0;
  9115. }
  9116. _ACEOF
  9117. if ac_fn_c_try_link "$LINENO"; then :
  9118.   break
  9119. fi
  9120. rm -f core conftest.err conftest.$ac_objext \
  9121.     conftest$ac_exeext conftest.$ac_ext
  9122.         done
  9123.     fi
  9124.  
  9125.         LIBS=$oldlibs 
  9126.     if test "x$lib" = "xnotfound" ; then
  9127.            as_fn_error "could not find DB libraries" "$LINENO" 5
  9128.     else
  9129.            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lib" >&5
  9130. $as_echo "$lib" >&6; }
  9131.     fi
  9132.         
  9133.     
  9134.     
  9135.                                                                 
  9136.                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbenv parameter to DB error callback function" >&5
  9137. $as_echo_n "checking for dbenv parameter to DB error callback function... " >&6; }
  9138.     oldcflags=$CFLAGS
  9139.     CFLAGS="$USR_CFLAGS $DB_CFLAGS -Werror"
  9140.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9141. /* end confdefs.h.  */
  9142.  
  9143.     #include <db.h>
  9144.     
  9145.     void error_callback_fn(const DB_ENV *dbenv,
  9146.                            const char *prefix,
  9147.                            const char *message)
  9148.     {
  9149.         return;
  9150.     }
  9151.     
  9152. int
  9153. main ()
  9154. {
  9155.  
  9156.     DB *db;
  9157.     
  9158.     db->set_errcall(db, error_callback_fn);
  9159.     
  9160.   ;
  9161.   return 0;
  9162. }
  9163. _ACEOF
  9164. if ac_fn_c_try_compile "$LINENO"; then :
  9165.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9166. $as_echo "yes" >&6; }
  9167.     
  9168. $as_echo "@%:@define HAVE_DBENV_PARAMETER_TO_DB_ERROR_CALLBACK 1" >>confdefs.h
  9169.  
  9170.     have_dbenv_parameter_to_db_error_callback=yes
  9171. else
  9172.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9173. $as_echo "no" >&6; }
  9174.     have_dbenv_parameter_to_db_error_callback=no
  9175. fi
  9176. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9177.     
  9178.     if test "x$have_dbenv_parameter_to_db_error_callback" = "xyes" ; then
  9179.                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if third parameter to error callback function is const" >&5
  9180. $as_echo_n "checking if third parameter to error callback function is const... " >&6; }
  9181.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9182. /* end confdefs.h.  */
  9183.  
  9184.         #include <db.h>
  9185.         
  9186.         void error_callback_fn(const DB_ENV *dbenv,
  9187.                                const char *prefix,
  9188.                                char *message)
  9189.         {
  9190.             return;
  9191.         }
  9192.         
  9193. int
  9194. main ()
  9195. {
  9196.  
  9197.         DB *db;
  9198.         
  9199.         db->set_errcall(db, error_callback_fn);
  9200.         
  9201.   ;
  9202.   return 0;
  9203. }
  9204. _ACEOF
  9205. if ac_fn_c_try_compile "$LINENO"; then :
  9206.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9207. $as_echo "no" >&6; }
  9208. else
  9209.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9210. $as_echo "yes" >&6; }
  9211.         
  9212. $as_echo "@%:@define HAVE_CONST_THIRD_PARAMETER_TO_DB_ERROR_CALLBACK 1" >>confdefs.h
  9213.  
  9214. fi
  9215. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9216.     fi
  9217.     
  9218.     CFLAGS="$USR_CFLAGS $DB_CFLAGS -Werror"    
  9219.                             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB stat with malloc function ptr" >&5
  9220. $as_echo_n "checking for DB stat with malloc function ptr... " >&6; }
  9221.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9222. /* end confdefs.h.  */
  9223.  
  9224.       #include <db.h>
  9225.       #include <stdlib.h>
  9226.       
  9227. int
  9228. main ()
  9229. {
  9230.  
  9231.       int ret = 0;
  9232.       DB *db = db;
  9233.       int dummy = 0;
  9234.       u_int32_t flags = 0;
  9235.         
  9236.       ret = db->stat(db, &dummy, malloc, flags);
  9237.       
  9238.   ;
  9239.   return 0;
  9240. }
  9241. _ACEOF
  9242. if ac_fn_c_try_compile "$LINENO"; then :
  9243.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9244. $as_echo "yes" >&6; }
  9245.     
  9246. $as_echo "@%:@define HAVE_UNKNOWN_PARAMETER_TO_DB_STAT 1" >>confdefs.h
  9247.  
  9248.     have_db_stat_malloc=yes
  9249. else
  9250.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9251. $as_echo "no" >&6; }
  9252.     have_db_stat_malloc=no
  9253. fi
  9254. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9255.  
  9256.         if test "x$have_db_stat_malloc" = "xno" ; then
  9257.     
  9258.        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for txnid parameter to DB stat function" >&5
  9259. $as_echo_n "checking for txnid parameter to DB stat function... " >&6; }
  9260.        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9261. /* end confdefs.h.  */
  9262.  
  9263.        #include <db.h>
  9264.        
  9265. int
  9266. main ()
  9267. {
  9268.  
  9269.        int ret = 0;
  9270.        DB *db = db;
  9271.        DB_TXN *txnid = txnid;
  9272.        u_int32_t flags = 0;
  9273.     
  9274.         ret = db->stat(db, txnid, NULL, flags);
  9275.         
  9276.   ;
  9277.   return 0;
  9278. }
  9279. _ACEOF
  9280. if ac_fn_c_try_compile "$LINENO"; then :
  9281.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9282. $as_echo "yes" >&6; }
  9283.         
  9284. $as_echo "@%:@define HAVE_TXNID_PARAMETER_TO_DB_STAT 1" >>confdefs.h
  9285.  
  9286.         have_txnid_param_to_stat=yes
  9287. else
  9288.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9289. $as_echo "no" >&6; }
  9290.         have_txnid_param_to_stat=no
  9291. fi
  9292. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9293.     
  9294.     fi
  9295.     
  9296.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for txnid parameter to DB open function" >&5
  9297. $as_echo_n "checking for txnid parameter to DB open function... " >&6; }
  9298.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9299. /* end confdefs.h.  */
  9300.  
  9301.     #include <db.h>
  9302.     
  9303. int
  9304. main ()
  9305. {
  9306.  
  9307.     int ret = 0;
  9308.     DB *db = NULL;
  9309.     DB_TXN *txnid = NULL;
  9310.     char *file = NULL;
  9311.     char *database = NULL;
  9312.     DBTYPE type = 0;
  9313.     u_int32_t flags = 0;
  9314.     int mode = 0;
  9315.     
  9316.     ret = db->open(db, txnid, file, database, type, flags, mode);
  9317.     
  9318.   ;
  9319.   return 0;
  9320. }
  9321. _ACEOF
  9322. if ac_fn_c_try_compile "$LINENO"; then :
  9323.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9324. $as_echo "yes" >&6; }
  9325.     
  9326. $as_echo "@%:@define HAVE_TXNID_PARAMETER_TO_DB_OPEN 1" >>confdefs.h
  9327.  
  9328. else
  9329.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9330. $as_echo "no" >&6; }
  9331. fi
  9332. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9333.     
  9334.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB_DIRTY_READ flag" >&5
  9335. $as_echo_n "checking for DB_DIRTY_READ flag... " >&6; }
  9336.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9337. /* end confdefs.h.  */
  9338.  
  9339.     #include <db.h>
  9340.     
  9341. int
  9342. main ()
  9343. {
  9344.  
  9345.     u_int32_t flags = DB_DIRTY_READ;
  9346.     
  9347.   ;
  9348.   return 0;
  9349. }
  9350. _ACEOF
  9351. if ac_fn_c_try_compile "$LINENO"; then :
  9352.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9353. $as_echo "yes" >&6; }
  9354.     
  9355. $as_echo "@%:@define HAVE_DB_DIRTY_READ 1" >>confdefs.h
  9356.  
  9357. else
  9358.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9359. $as_echo "no" >&6; }
  9360. fi
  9361. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9362.  
  9363.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB_BUFFER_SMALL error" >&5
  9364. $as_echo_n "checking for DB_BUFFER_SMALL error... " >&6; }
  9365.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9366. /* end confdefs.h.  */
  9367.  
  9368.     #include <db.h>
  9369.     
  9370. int
  9371. main ()
  9372. {
  9373.  
  9374.     int res = DB_BUFFER_SMALL;
  9375.     res++;
  9376.     
  9377.   ;
  9378.   return 0;
  9379. }
  9380. _ACEOF
  9381. if ac_fn_c_try_compile "$LINENO"; then :
  9382.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9383. $as_echo "yes" >&6; }
  9384.     
  9385. $as_echo "@%:@define HAVE_DB_BUFFER_SMALL 1" >>confdefs.h
  9386.  
  9387. else
  9388.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9389. $as_echo "no" >&6; }
  9390. fi
  9391. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9392.  
  9393.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for berkeley db get_pagesize function" >&5
  9394. $as_echo_n "checking for berkeley db get_pagesize function... " >&6; }
  9395.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9396. /* end confdefs.h.  */
  9397.  
  9398.     #include <db.h>
  9399.     
  9400. int
  9401. main ()
  9402. {
  9403.  
  9404.     int ret = 0;
  9405.     DB *db = NULL;
  9406.     int pagesize;
  9407.     
  9408.     ret = db->get_pagesize(db, &pagesize);
  9409.     
  9410.   ;
  9411.   return 0;
  9412. }
  9413. _ACEOF
  9414. if ac_fn_c_try_compile "$LINENO"; then :
  9415.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9416. $as_echo "yes" >&6; }
  9417.     
  9418. $as_echo "@%:@define HAVE_DB_GET_PAGESIZE 1" >>confdefs.h
  9419.  
  9420. else
  9421.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9422. $as_echo "no" >&6; }
  9423. fi
  9424. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9425.     
  9426.     CFLAGS="$oldcflags"    
  9427.  
  9428. else
  9429.   
  9430.     dbpath=""
  9431.  
  9432.     DB_LDFLAGS=
  9433.                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db library" >&5
  9434. $as_echo_n "checking for db library... " >&6; }
  9435.     oldlibs=$LIBS
  9436.     lib=notfound
  9437.  
  9438.     if test "x$dbpath" != "x" ; then
  9439.     oldcflags=$CFLAGS
  9440.     for dbheader in db4 db3 notfound; do
  9441.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9442. /* end confdefs.h.  */
  9443. #include "$dbpath/include/$dbheader/db.h"
  9444. _ACEOF
  9445. if ac_fn_c_try_compile "$LINENO"; then :
  9446.   DB_CFLAGS="-I$dbpath/include/$dbheader/"
  9447.              break
  9448. fi
  9449. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9450.     done
  9451.  
  9452.     if test "x$dbheader" = "xnotfound"; then
  9453.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9454. /* end confdefs.h.  */
  9455. #include "$dbpath/include/db.h"
  9456. _ACEOF
  9457. if ac_fn_c_try_compile "$LINENO"; then :
  9458.   DB_CFLAGS="-I$dbpath/include/"
  9459. else
  9460.   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9461. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9462. as_fn_error "Invalid libdb path specified. No db.h found.
  9463. See \`config.log' for more details." "$LINENO" 5; }
  9464. fi
  9465. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9466.     fi
  9467.  
  9468.         DB_LDFLAGS="-L${dbpath}/lib"
  9469.     LDFLAGS="$DB_LDFLAGS ${LDFLAGS}"
  9470.  
  9471.     LIBS="${oldlibs} -ldb -lpthread"
  9472.     DB_LIB="-ldb"
  9473.     CFLAGS="$DB_CFLAGS $oldcflags"
  9474.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9475. /* end confdefs.h.  */
  9476. #include <db.h>
  9477. int
  9478. main ()
  9479. {
  9480. DB *dbp; db_create(&dbp, NULL, 0);
  9481.   ;
  9482.   return 0;
  9483. }
  9484. _ACEOF
  9485. if ac_fn_c_try_link "$LINENO"; then :
  9486.   lib=db
  9487. fi
  9488. rm -f core conftest.err conftest.$ac_objext \
  9489.     conftest$ac_exeext conftest.$ac_ext
  9490.     CFLAGS=$oldcflags
  9491.     
  9492.     else
  9493.         for lib in db4  db3  db  notfound; do
  9494.            LIBS="${oldlibs} -l$lib -lpthread"
  9495.            DB_LIB="-l$lib"
  9496.            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9497. /* end confdefs.h.  */
  9498. #include <db.h>
  9499. int
  9500. main ()
  9501. {
  9502. DB *dbp; db_create(&dbp, NULL, 0);
  9503.   ;
  9504.   return 0;
  9505. }
  9506. _ACEOF
  9507. if ac_fn_c_try_link "$LINENO"; then :
  9508.   break
  9509. fi
  9510. rm -f core conftest.err conftest.$ac_objext \
  9511.     conftest$ac_exeext conftest.$ac_ext
  9512.         done
  9513.     fi
  9514.  
  9515.         LIBS=$oldlibs 
  9516.     if test "x$lib" = "xnotfound" ; then
  9517.            as_fn_error "could not find DB libraries" "$LINENO" 5
  9518.     else
  9519.            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lib" >&5
  9520. $as_echo "$lib" >&6; }
  9521.     fi
  9522.         
  9523.     
  9524.     
  9525.                                                                 
  9526.                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbenv parameter to DB error callback function" >&5
  9527. $as_echo_n "checking for dbenv parameter to DB error callback function... " >&6; }
  9528.     oldcflags=$CFLAGS
  9529.     CFLAGS="$USR_CFLAGS $DB_CFLAGS -Werror"
  9530.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9531. /* end confdefs.h.  */
  9532.  
  9533.     #include <db.h>
  9534.     
  9535.     void error_callback_fn(const DB_ENV *dbenv,
  9536.                            const char *prefix,
  9537.                            const char *message)
  9538.     {
  9539.         return;
  9540.     }
  9541.     
  9542. int
  9543. main ()
  9544. {
  9545.  
  9546.     DB *db;
  9547.     
  9548.     db->set_errcall(db, error_callback_fn);
  9549.     
  9550.   ;
  9551.   return 0;
  9552. }
  9553. _ACEOF
  9554. if ac_fn_c_try_compile "$LINENO"; then :
  9555.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9556. $as_echo "yes" >&6; }
  9557.     
  9558. $as_echo "@%:@define HAVE_DBENV_PARAMETER_TO_DB_ERROR_CALLBACK 1" >>confdefs.h
  9559.  
  9560.     have_dbenv_parameter_to_db_error_callback=yes
  9561. else
  9562.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9563. $as_echo "no" >&6; }
  9564.     have_dbenv_parameter_to_db_error_callback=no
  9565. fi
  9566. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9567.     
  9568.     if test "x$have_dbenv_parameter_to_db_error_callback" = "xyes" ; then
  9569.                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if third parameter to error callback function is const" >&5
  9570. $as_echo_n "checking if third parameter to error callback function is const... " >&6; }
  9571.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9572. /* end confdefs.h.  */
  9573.  
  9574.         #include <db.h>
  9575.         
  9576.         void error_callback_fn(const DB_ENV *dbenv,
  9577.                                const char *prefix,
  9578.                                char *message)
  9579.         {
  9580.             return;
  9581.         }
  9582.         
  9583. int
  9584. main ()
  9585. {
  9586.  
  9587.         DB *db;
  9588.         
  9589.         db->set_errcall(db, error_callback_fn);
  9590.         
  9591.   ;
  9592.   return 0;
  9593. }
  9594. _ACEOF
  9595. if ac_fn_c_try_compile "$LINENO"; then :
  9596.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9597. $as_echo "no" >&6; }
  9598. else
  9599.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9600. $as_echo "yes" >&6; }
  9601.         
  9602. $as_echo "@%:@define HAVE_CONST_THIRD_PARAMETER_TO_DB_ERROR_CALLBACK 1" >>confdefs.h
  9603.  
  9604. fi
  9605. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9606.     fi
  9607.     
  9608.     CFLAGS="$USR_CFLAGS $DB_CFLAGS -Werror"    
  9609.                             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB stat with malloc function ptr" >&5
  9610. $as_echo_n "checking for DB stat with malloc function ptr... " >&6; }
  9611.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9612. /* end confdefs.h.  */
  9613.  
  9614.       #include <db.h>
  9615.       #include <stdlib.h>
  9616.       
  9617. int
  9618. main ()
  9619. {
  9620.  
  9621.       int ret = 0;
  9622.       DB *db = db;
  9623.       int dummy = 0;
  9624.       u_int32_t flags = 0;
  9625.         
  9626.       ret = db->stat(db, &dummy, malloc, flags);
  9627.       
  9628.   ;
  9629.   return 0;
  9630. }
  9631. _ACEOF
  9632. if ac_fn_c_try_compile "$LINENO"; then :
  9633.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9634. $as_echo "yes" >&6; }
  9635.     
  9636. $as_echo "@%:@define HAVE_UNKNOWN_PARAMETER_TO_DB_STAT 1" >>confdefs.h
  9637.  
  9638.     have_db_stat_malloc=yes
  9639. else
  9640.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9641. $as_echo "no" >&6; }
  9642.     have_db_stat_malloc=no
  9643. fi
  9644. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9645.  
  9646.         if test "x$have_db_stat_malloc" = "xno" ; then
  9647.     
  9648.        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for txnid parameter to DB stat function" >&5
  9649. $as_echo_n "checking for txnid parameter to DB stat function... " >&6; }
  9650.        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9651. /* end confdefs.h.  */
  9652.  
  9653.        #include <db.h>
  9654.        
  9655. int
  9656. main ()
  9657. {
  9658.  
  9659.        int ret = 0;
  9660.        DB *db = db;
  9661.        DB_TXN *txnid = txnid;
  9662.        u_int32_t flags = 0;
  9663.     
  9664.         ret = db->stat(db, txnid, NULL, flags);
  9665.         
  9666.   ;
  9667.   return 0;
  9668. }
  9669. _ACEOF
  9670. if ac_fn_c_try_compile "$LINENO"; then :
  9671.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9672. $as_echo "yes" >&6; }
  9673.         
  9674. $as_echo "@%:@define HAVE_TXNID_PARAMETER_TO_DB_STAT 1" >>confdefs.h
  9675.  
  9676.         have_txnid_param_to_stat=yes
  9677. else
  9678.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9679. $as_echo "no" >&6; }
  9680.         have_txnid_param_to_stat=no
  9681. fi
  9682. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9683.     
  9684.     fi
  9685.     
  9686.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for txnid parameter to DB open function" >&5
  9687. $as_echo_n "checking for txnid parameter to DB open function... " >&6; }
  9688.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9689. /* end confdefs.h.  */
  9690.  
  9691.     #include <db.h>
  9692.     
  9693. int
  9694. main ()
  9695. {
  9696.  
  9697.     int ret = 0;
  9698.     DB *db = NULL;
  9699.     DB_TXN *txnid = NULL;
  9700.     char *file = NULL;
  9701.     char *database = NULL;
  9702.     DBTYPE type = 0;
  9703.     u_int32_t flags = 0;
  9704.     int mode = 0;
  9705.     
  9706.     ret = db->open(db, txnid, file, database, type, flags, mode);
  9707.     
  9708.   ;
  9709.   return 0;
  9710. }
  9711. _ACEOF
  9712. if ac_fn_c_try_compile "$LINENO"; then :
  9713.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9714. $as_echo "yes" >&6; }
  9715.     
  9716. $as_echo "@%:@define HAVE_TXNID_PARAMETER_TO_DB_OPEN 1" >>confdefs.h
  9717.  
  9718. else
  9719.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9720. $as_echo "no" >&6; }
  9721. fi
  9722. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9723.     
  9724.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB_DIRTY_READ flag" >&5
  9725. $as_echo_n "checking for DB_DIRTY_READ flag... " >&6; }
  9726.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9727. /* end confdefs.h.  */
  9728.  
  9729.     #include <db.h>
  9730.     
  9731. int
  9732. main ()
  9733. {
  9734.  
  9735.     u_int32_t flags = DB_DIRTY_READ;
  9736.     
  9737.   ;
  9738.   return 0;
  9739. }
  9740. _ACEOF
  9741. if ac_fn_c_try_compile "$LINENO"; then :
  9742.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9743. $as_echo "yes" >&6; }
  9744.     
  9745. $as_echo "@%:@define HAVE_DB_DIRTY_READ 1" >>confdefs.h
  9746.  
  9747. else
  9748.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9749. $as_echo "no" >&6; }
  9750. fi
  9751. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9752.  
  9753.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB_BUFFER_SMALL error" >&5
  9754. $as_echo_n "checking for DB_BUFFER_SMALL error... " >&6; }
  9755.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9756. /* end confdefs.h.  */
  9757.  
  9758.     #include <db.h>
  9759.     
  9760. int
  9761. main ()
  9762. {
  9763.  
  9764.     int res = DB_BUFFER_SMALL;
  9765.     res++;
  9766.     
  9767.   ;
  9768.   return 0;
  9769. }
  9770. _ACEOF
  9771. if ac_fn_c_try_compile "$LINENO"; then :
  9772.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9773. $as_echo "yes" >&6; }
  9774.     
  9775. $as_echo "@%:@define HAVE_DB_BUFFER_SMALL 1" >>confdefs.h
  9776.  
  9777. else
  9778.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9779. $as_echo "no" >&6; }
  9780. fi
  9781. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9782.  
  9783.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for berkeley db get_pagesize function" >&5
  9784. $as_echo_n "checking for berkeley db get_pagesize function... " >&6; }
  9785.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9786. /* end confdefs.h.  */
  9787.  
  9788.     #include <db.h>
  9789.     
  9790. int
  9791. main ()
  9792. {
  9793.  
  9794.     int ret = 0;
  9795.     DB *db = NULL;
  9796.     int pagesize;
  9797.     
  9798.     ret = db->get_pagesize(db, &pagesize);
  9799.     
  9800.   ;
  9801.   return 0;
  9802. }
  9803. _ACEOF
  9804. if ac_fn_c_try_compile "$LINENO"; then :
  9805.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9806. $as_echo "yes" >&6; }
  9807.     
  9808. $as_echo "@%:@define HAVE_DB_GET_PAGESIZE 1" >>confdefs.h
  9809.  
  9810. else
  9811.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9812. $as_echo "no" >&6; }
  9813. fi
  9814. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9815.     
  9816.     CFLAGS="$oldcflags"    
  9817.  
  9818. fi
  9819.  
  9820. fi
  9821.  
  9822. if test "x$BUILD_SERVER" = "x1"; then
  9823.         
  9824.  
  9825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if server lib needs -lrt" >&5
  9826. $as_echo_n "checking if server lib needs -lrt... " >&6; }
  9827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9828. /* end confdefs.h.  */
  9829. #include <stdlib.h>
  9830.      #include <unistd.h>
  9831.      #include <aio.h>
  9832. int
  9833. main ()
  9834. {
  9835. lio_listio(LIO_NOWAIT, NULL, 0, NULL);
  9836.   ;
  9837.   return 0;
  9838. }
  9839. _ACEOF
  9840. if ac_fn_c_try_link "$LINENO"; then :
  9841.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9842. $as_echo "no" >&6; }
  9843. else
  9844.   
  9845.         oldlibs=$LIBS
  9846.         LIBS="$LIBS -lrt"
  9847.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9848. /* end confdefs.h.  */
  9849. #include <stdlib.h>
  9850.              #include <unistd.h>
  9851.              #include <aio.h>
  9852. int
  9853. main ()
  9854. {
  9855. lio_listio(LIO_NOWAIT, NULL, 0, NULL);
  9856.   ;
  9857.   return 0;
  9858. }
  9859. _ACEOF
  9860. if ac_fn_c_try_link "$LINENO"; then :
  9861.   NEEDS_LIBRT=1
  9862.              
  9863.              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9864. $as_echo "yes" >&6; }
  9865. else
  9866.   as_fn_error "failed attempting to link lio_listio" "$LINENO" 5
  9867. fi
  9868. rm -f core conftest.err conftest.$ac_objext \
  9869.     conftest$ac_exeext conftest.$ac_ext
  9870.         LIBS=$oldlibs
  9871.     
  9872. fi
  9873. rm -f core conftest.err conftest.$ac_objext \
  9874.     conftest$ac_exeext conftest.$ac_ext
  9875.  
  9876. fi
  9877.  
  9878. case "$host_os" in
  9879.  
  9880.     *darwin*)
  9881.     
  9882. $as_echo "@%:@define TARGET_OS_DARWIN 1" >>confdefs.h
  9883.  
  9884.         TARGET_OS_DARWIN=1
  9885.     
  9886.     ;;
  9887.     *linux*)
  9888.     
  9889. $as_echo "@%:@define TARGET_OS_LINUX 1" >>confdefs.h
  9890.  
  9891.         TARGET_OS_LINUX=1
  9892.     
  9893.     ;;
  9894. esac
  9895.  
  9896. for ac_header in netdb.h
  9897. do :
  9898.   ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
  9899. if test "x$ac_cv_header_netdb_h" = x""yes; then :
  9900.   cat >>confdefs.h <<_ACEOF
  9901. @%:@define HAVE_NETDB_H 1
  9902. _ACEOF
  9903.  
  9904. fi
  9905.  
  9906. done
  9907.  
  9908. for ac_header in arpa/inet.h
  9909. do :
  9910.   ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
  9911. if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
  9912.   cat >>confdefs.h <<_ACEOF
  9913. @%:@define HAVE_ARPA_INET_H 1
  9914. _ACEOF
  9915.  
  9916. fi
  9917.  
  9918. done
  9919.  
  9920. for ac_header in sys/socket.h
  9921. do :
  9922.   ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
  9923. if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
  9924.   cat >>confdefs.h <<_ACEOF
  9925. @%:@define HAVE_SYS_SOCKET_H 1
  9926. _ACEOF
  9927.  
  9928. fi
  9929.  
  9930. done
  9931.  
  9932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname" >&5
  9933. $as_echo_n "checking for gethostbyname... " >&6; }
  9934. oldcflags="$CFLAGS"
  9935. CFLAGS="$USR_CFLAGS"
  9936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9937. /* end confdefs.h.  */
  9938.  
  9939. #include <netdb.h>
  9940.  
  9941. int
  9942. main ()
  9943. {
  9944.  
  9945. gethostbyname("localhost");
  9946.  
  9947.   ;
  9948.   return 0;
  9949. }
  9950. _ACEOF
  9951. if ac_fn_c_try_compile "$LINENO"; then :
  9952.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9953. $as_echo "yes" >&6; }
  9954.  
  9955. $as_echo "@%:@define HAVE_GETHOSTBYNAME 1" >>confdefs.h
  9956.  
  9957. else
  9958.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9959. $as_echo "no" >&6; }
  9960. WARN_ABOUT_HOSTNAMES="yes"
  9961. fi
  9962. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9963.  
  9964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr" >&5
  9965. $as_echo_n "checking for gethostbyaddr... " >&6; }
  9966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9967. /* end confdefs.h.  */
  9968.  
  9969. #include <netdb.h>
  9970.  
  9971. int
  9972. main ()
  9973. {
  9974.  
  9975. struct sockaddr_in peer;
  9976. gethostbyaddr((void *)&peer.sin_addr.s_addr, sizeof(struct in_addr), AF_INET);
  9977.  
  9978.   ;
  9979.   return 0;
  9980. }
  9981. _ACEOF
  9982. if ac_fn_c_try_compile "$LINENO"; then :
  9983.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9984. $as_echo "yes" >&6; }
  9985.  
  9986. $as_echo "@%:@define HAVE_GETHOSTBYADDR 1" >>confdefs.h
  9987.  
  9988. else
  9989.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9990. $as_echo "no" >&6; }  
  9991. fi
  9992. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9993.  
  9994. CFLAGS="$oldcflags"
  9995.  
  9996. BUILD_BMI_TCP=1
  9997.  
  9998. @%:@ Check whether --with-bmi-tcp was given.
  9999. if test "${with_bmi_tcp+set}" = set; then :
  10000.   withval=$with_bmi_tcp; if test -z "$withval" -o "$withval" = yes ; then
  10001.     :
  10002.     elif test "$withval" = no ; then
  10003.     BUILD_BMI_TCP=
  10004.     else
  10005.     as_fn_error "Option --with-tcp requires yes/no argument." "$LINENO" 5
  10006.     fi
  10007.  
  10008. fi
  10009.  
  10010.  
  10011.  
  10012.  
  10013.                     gm_home=
  10014.     
  10015. @%:@ Check whether --with-gm was given.
  10016. if test "${with_gm+set}" = set; then :
  10017.   withval=$with_gm; if test -z "$withval" -o "$withval" = yes ; then
  10018.         as_fn_error "Option --with-gm requires the path to your GM tree." "$LINENO" 5
  10019.     elif test "$withval" != no ; then
  10020.         gm_home="$withval"
  10021.     fi
  10022.     
  10023. fi
  10024.  
  10025.     
  10026. @%:@ Check whether --with-gm-includes was given.
  10027. if test "${with_gm_includes+set}" = set; then :
  10028.   withval=$with_gm_includes; if test -z "$withval" -o "$withval" = yes ; then
  10029.         as_fn_error "Option --with-gm-includes requires path to GM headers." "$LINENO" 5
  10030.     elif test "$withval" != no ; then
  10031.         GM_INCDIR="$withval"
  10032.     fi
  10033.     
  10034. fi
  10035.  
  10036.     
  10037. @%:@ Check whether --with-gm-libs was given.
  10038. if test "${with_gm_libs+set}" = set; then :
  10039.   withval=$with_gm_libs; if test -z "$withval" -o "$withval" = yes ; then
  10040.         as_fn_error "Option --with-gm-libs requires path to GM libraries." "$LINENO" 5
  10041.     elif test "$withval" != no ; then
  10042.         GM_LIBDIR="$withval"
  10043.     fi
  10044.     
  10045. fi
  10046.  
  10047.             if test -n "$gm_home" ; then
  10048.     if test -z "$GM_INCDIR"; then
  10049.         GM_INCDIR=$gm_home/include
  10050.     fi
  10051.     if test -z "$GM_LIBDIR"; then
  10052.         GM_LIBDIR=$gm_home/lib64
  10053.         if test ! -d "$GM_LIBDIR" ; then
  10054.         GM_LIBDIR=$gm_home/lib
  10055.         fi
  10056.     fi
  10057.     fi
  10058.         if test -n "$GM_INCDIR$GM_LIBDIR" ; then
  10059.     save_cppflags="$CPPFLAGS"
  10060.     CPPFLAGS="$CPPFLAGS -I$GM_INCDIR -I$GM_INCDIR/gm"
  10061.     ac_fn_c_check_header_mongrel "$LINENO" "gm.h" "ac_cv_header_gm_h" "$ac_includes_default"
  10062. if test "x$ac_cv_header_gm_h" = x""yes; then :
  10063.   
  10064. else
  10065.   as_fn_error "Header gm.h not found." "$LINENO" 5
  10066. fi
  10067.  
  10068.  
  10069.             if test ! -f $GM_LIBDIR/libgm.so ; then
  10070.         if test ! -f $GM_LIBDIR/libgm.a ; then
  10071.         as_fn_error "Neither GM library libgm.so or libgm.a found." "$LINENO" 5
  10072.         fi
  10073.     fi
  10074.     BUILD_GM=1
  10075.     CPPFLAGS="$save_cppflags"
  10076.     fi
  10077.     
  10078.     
  10079.     
  10080.  
  10081.  
  10082.  
  10083.                     mx_home=
  10084.     
  10085. @%:@ Check whether --with-mx was given.
  10086. if test "${with_mx+set}" = set; then :
  10087.   withval=$with_mx; if test -z "$withval" -o "$withval" = yes ; then
  10088.         as_fn_error "Option --with-mx requires the path to your MX tree." "$LINENO" 5
  10089.     elif test "$withval" != no ; then
  10090.         mx_home="$withval"
  10091.     fi
  10092.     
  10093. fi
  10094.  
  10095.     
  10096. @%:@ Check whether --with-mx-includes was given.
  10097. if test "${with_mx_includes+set}" = set; then :
  10098.   withval=$with_mx_includes; if test -z "$withval" -o "$withval" = yes ; then
  10099.         as_fn_error "Option --with-mx-includes requires path to MX headers." "$LINENO" 5
  10100.     elif test "$withval" != no ; then
  10101.         MX_INCDIR="$withval"
  10102.     fi
  10103.     
  10104. fi
  10105.  
  10106.     
  10107. @%:@ Check whether --with-mx-libs was given.
  10108. if test "${with_mx_libs+set}" = set; then :
  10109.   withval=$with_mx_libs; if test -z "$withval" -o "$withval" = yes ; then
  10110.         as_fn_error "Option --with-mx-libs requires path to MX libraries." "$LINENO" 5
  10111.     elif test "$withval" != no ; then
  10112.         MX_LIBDIR="$withval"
  10113.     fi
  10114.     
  10115. fi
  10116.  
  10117.             if test -n "$mx_home" ; then
  10118.     if test -z "$MX_INCDIR"; then
  10119.         MX_INCDIR=$mx_home/include
  10120.     fi
  10121.     if test -z "$MX_LIBDIR"; then
  10122.         MX_LIBDIR=$mx_home/lib64
  10123.         if test ! -d "$MX_LIBDIR" ; then
  10124.         MX_LIBDIR=$mx_home/lib
  10125.         fi
  10126.     fi
  10127.     fi
  10128.         if test -n "$MX_INCDIR$MX_LIBDIR" ; then
  10129.     save_cppflags="$CPPFLAGS"
  10130.     CPPFLAGS="$CPPFLAGS -I$MX_INCDIR -I$MX_INCDIR/mx"
  10131.     ac_fn_c_check_header_mongrel "$LINENO" "myriexpress.h" "ac_cv_header_myriexpress_h" "$ac_includes_default"
  10132. if test "x$ac_cv_header_myriexpress_h" = x""yes; then :
  10133.   
  10134. else
  10135.   as_fn_error "Header myriexpress.h not found." "$LINENO" 5
  10136. fi
  10137.  
  10138.  
  10139.             if test ! -f $MX_LIBDIR/libmyriexpress.so ; then
  10140.         if test ! -f $MX_LIBDIR/libmyriexpress.a ; then
  10141.         as_fn_error "Neither MX library libmyriexpress.so or libmyriexpress.a found." "$LINENO" 5
  10142.         fi
  10143.     fi
  10144.     BUILD_MX=1
  10145.     CPPFLAGS="$save_cppflags"
  10146.     fi
  10147.     
  10148.     
  10149.     
  10150.  
  10151.     if test -n "$BUILD_MX" ; then
  10152.                 save_ldflags="$LDFLAGS"
  10153.         LDFLAGS="-L$MX_LIBDIR $LDFLAGS"
  10154.     save_libs="$LIBS"
  10155.     LIBS="-lmyriexpress -lpthread $LIBS"
  10156.         save_cppflags="$CPPFLAGS"
  10157.         CPPFLAGS="$CPPFLAGS -I$MX_INCDIR"
  10158.  
  10159.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mx_decompose_endpoint_addr2" >&5
  10160. $as_echo_n "checking for mx_decompose_endpoint_addr2... " >&6; }
  10161.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10162. /* end confdefs.h.  */
  10163.  
  10164.             #include "mx_extensions.h"
  10165.             #include <stdlib.h>
  10166.         
  10167. int
  10168. main ()
  10169. {
  10170.  
  10171.             mx_endpoint_addr_t epa;
  10172.             mx_decompose_endpoint_addr2(epa, NULL, NULL, NULL);
  10173.         
  10174.   ;
  10175.   return 0;
  10176. }
  10177. _ACEOF
  10178. if ac_fn_c_try_link "$LINENO"; then :
  10179.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10180. $as_echo "yes" >&6; }
  10181. else
  10182.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10183. $as_echo "no" >&6; }
  10184.         as_fn_error "Function mx_decompose_endpoint_addr2() not found." "$LINENO" 5
  10185.         
  10186. fi
  10187. rm -f core conftest.err conftest.$ac_objext \
  10188.     conftest$ac_exeext conftest.$ac_ext
  10189.  
  10190.         LDFLAGS="$save_ldflags"
  10191.         CPPFLAGS="$save_cppflags"
  10192.         LIBS="$save_libs"
  10193.     fi
  10194.  
  10195.  
  10196.  
  10197.                     ib_home=
  10198.     
  10199. @%:@ Check whether --with-ib was given.
  10200. if test "${with_ib+set}" = set; then :
  10201.   withval=$with_ib; if test -z "$withval" -o "$withval" = yes ; then
  10202.         as_fn_error "Option --with-ib requires the path to your IB tree." "$LINENO" 5
  10203.     elif test "$withval" != no ; then
  10204.         ib_home="$withval"
  10205.     fi
  10206.     
  10207. fi
  10208.  
  10209.     
  10210. @%:@ Check whether --with-ib-includes was given.
  10211. if test "${with_ib_includes+set}" = set; then :
  10212.   withval=$with_ib_includes; if test -z "$withval" -o "$withval" = yes ; then
  10213.         as_fn_error "Option --with-ib-includes requires path to IB headers." "$LINENO" 5
  10214.     elif test "$withval" != no ; then
  10215.         IB_INCDIR="$withval"
  10216.     fi
  10217.     
  10218. fi
  10219.  
  10220.     
  10221. @%:@ Check whether --with-ib-libs was given.
  10222. if test "${with_ib_libs+set}" = set; then :
  10223.   withval=$with_ib_libs; if test -z "$withval" -o "$withval" = yes ; then
  10224.         as_fn_error "Option --with-ib-libs requires path to IB libraries." "$LINENO" 5
  10225.     elif test "$withval" != no ; then
  10226.         IB_LIBDIR="$withval"
  10227.     fi
  10228.     
  10229. fi
  10230.  
  10231.             if test -n "$ib_home" ; then
  10232.     if test -z "$IB_INCDIR"; then
  10233.         IB_INCDIR=$ib_home/include
  10234.     fi
  10235.     if test -z "$IB_LIBDIR"; then
  10236.         IB_LIBDIR=$ib_home/lib64
  10237.         if test ! -d "$IB_LIBDIR" ; then
  10238.         IB_LIBDIR=$ib_home/lib
  10239.         fi
  10240.     fi
  10241.     fi
  10242.         if test -n "$IB_INCDIR$IB_LIBDIR" ; then
  10243.     save_cppflags="$CPPFLAGS"
  10244.     CPPFLAGS="$CPPFLAGS -I$IB_INCDIR"
  10245.     ac_fn_c_check_header_mongrel "$LINENO" "vapi.h" "ac_cv_header_vapi_h" "$ac_includes_default"
  10246. if test "x$ac_cv_header_vapi_h" = x""yes; then :
  10247.   
  10248. else
  10249.   as_fn_error "Header vapi.h not found." "$LINENO" 5
  10250. fi
  10251.  
  10252.  
  10253.                 if test ! -f $IB_LIBDIR/libvapi.so ; then
  10254.         if test ! -f $IB_LIBDIR/libvapi.a ; then
  10255.         as_fn_error "Infiniband library libvapi.so not found." "$LINENO" 5
  10256.         fi
  10257.     fi
  10258.     BUILD_IB=1
  10259.     ac_fn_c_check_header_compile "$LINENO" "wrap_common.h" "ac_cv_header_wrap_common_h" "#include <vapi.h>
  10260. "
  10261. if test "x$ac_cv_header_wrap_common_h" = x""yes; then :
  10262.   
  10263. $as_echo "@%:@define HAVE_IB_WRAP_COMMON_H 1" >>confdefs.h
  10264.  
  10265. fi
  10266.  
  10267.  
  10268.     CPPFLAGS="$save_cppflags"
  10269.     fi
  10270.     
  10271.     
  10272.     
  10273.  
  10274.                     openib_home=
  10275.     
  10276. @%:@ Check whether --with-openib was given.
  10277. if test "${with_openib+set}" = set; then :
  10278.   withval=$with_openib; if test -z "$withval" -o "$withval" = yes ; then
  10279.         as_fn_error "Option --with-openib requires the path to your OpenIB tree." "$LINENO" 5
  10280.     elif test "$withval" != no ; then
  10281.         openib_home="$withval"
  10282.     fi
  10283.     
  10284. fi
  10285.  
  10286.     
  10287. @%:@ Check whether --with-openib-includes was given.
  10288. if test "${with_openib_includes+set}" = set; then :
  10289.   withval=$with_openib_includes; if test -z "$withval" -o "$withval" = yes ; then
  10290.         as_fn_error "Option --with-openib-includes requires path to OpenIB headers." "$LINENO" 5
  10291.     elif test "$withval" != no ; then
  10292.         OPENIB_INCDIR="$withval"
  10293.     fi
  10294.     
  10295. fi
  10296.  
  10297.     
  10298. @%:@ Check whether --with-openib-libs was given.
  10299. if test "${with_openib_libs+set}" = set; then :
  10300.   withval=$with_openib_libs; if test -z "$withval" -o "$withval" = yes ; then
  10301.         as_fn_error "Option --with-openib-libs requires path to OpenIB libraries." "$LINENO" 5
  10302.     elif test "$withval" != no ; then
  10303.         OPENIB_LIBDIR="$withval"
  10304.     fi
  10305.     
  10306. fi
  10307.  
  10308.             if test -n "$openib_home" ; then
  10309.     if test -z "$OPENIB_INCDIR"; then
  10310.         OPENIB_INCDIR=$openib_home/include
  10311.     fi
  10312.     if test -z "$OPENIB_LIBDIR"; then
  10313.         OPENIB_LIBDIR=$openib_home/lib64
  10314.         if test ! -d "$OPENIB_LIBDIR" ; then
  10315.         OPENIB_LIBDIR=$openib_home/lib
  10316.         fi
  10317.     fi
  10318.     fi
  10319.         if test -n "$OPENIB_INCDIR$OPENIB_LIBDIR" ; then
  10320.     save_cppflags="$CPPFLAGS"
  10321.     CPPFLAGS="$CPPFLAGS -I$OPENIB_INCDIR"
  10322.     ac_fn_c_check_header_mongrel "$LINENO" "infiniband/verbs.h" "ac_cv_header_infiniband_verbs_h" "$ac_includes_default"
  10323. if test "x$ac_cv_header_infiniband_verbs_h" = x""yes; then :
  10324.   
  10325. else
  10326.   as_fn_error "Header infiniband/verbs.h not found." "$LINENO" 5
  10327. fi
  10328.  
  10329.  
  10330.             if test ! -f $OPENIB_LIBDIR/libibverbs.so ; then
  10331.         if test ! -f $OPENIB_LIBDIR/libibverbs.a ; then
  10332.         as_fn_error "OpenIB library libibverbs.so not found." "$LINENO" 5
  10333.         fi
  10334.     fi
  10335.     BUILD_OPENIB=1
  10336.     CPPFLAGS="$save_cppflags"
  10337.     fi
  10338.     
  10339.     
  10340.     
  10341.  
  10342.     if test -n "$BUILD_OPENIB" ; then
  10343.                 save_ldflags="$LDFLAGS"
  10344.     LDFLAGS="-L$OPENIB_LIBDIR -libverbs"
  10345.     save_cppflags="$CPPFLAGS"
  10346.     CPPFLAGS="$CPPFLAGS -I$OPENIB_INCDIR"
  10347.  
  10348.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibv_get_devices" >&5
  10349. $as_echo_n "checking for ibv_get_devices... " >&6; }
  10350.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10351. /* end confdefs.h.  */
  10352.  
  10353. int
  10354. main ()
  10355. {
  10356.  
  10357.         ibv_get_devices();
  10358.         
  10359.   ;
  10360.   return 0;
  10361. }
  10362. _ACEOF
  10363. if ac_fn_c_try_link "$LINENO"; then :
  10364.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10365. $as_echo "yes" >&6; }
  10366.         
  10367. $as_echo "@%:@define HAVE_IBV_GET_DEVICES 1" >>confdefs.h
  10368.  
  10369. else
  10370.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10371. $as_echo "no" >&6; }
  10372.     
  10373. fi
  10374. rm -f core conftest.err conftest.$ac_objext \
  10375.     conftest$ac_exeext conftest.$ac_ext
  10376.  
  10377.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IBV_EVENT_CLIENT_REREGISTER" >&5
  10378. $as_echo_n "checking for IBV_EVENT_CLIENT_REREGISTER... " >&6; }
  10379.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10380. /* end confdefs.h.  */
  10381.  
  10382.         #include "infiniband/verbs.h"
  10383.     
  10384. int
  10385. main ()
  10386. {
  10387.  
  10388.         enum ibv_event_type x = IBV_EVENT_CLIENT_REREGISTER;
  10389.     
  10390.   ;
  10391.   return 0;
  10392. }
  10393. _ACEOF
  10394. if ac_fn_c_try_compile "$LINENO"; then :
  10395.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10396. $as_echo "yes" >&6; }
  10397.         
  10398. $as_echo "@%:@define HAVE_IBV_EVENT_CLIENT_REREGISTER 1" >>confdefs.h
  10399.  
  10400. else
  10401.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10402. $as_echo "no" >&6; }
  10403.     
  10404. fi
  10405. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10406.  
  10407.     LDFLAGS="$save_ldflags"
  10408.     CPPFLAGS="$save_cppflags"
  10409.     fi
  10410.  
  10411.  
  10412.  
  10413.                                                                         use_portals=
  10414.     home=
  10415.     incs=
  10416.     libs=
  10417.     
  10418. @%:@ Check whether --with-portals was given.
  10419. if test "${with_portals+set}" = set; then :
  10420.   withval=$with_portals; if test -z "$withval" -o "$withval" = yes ; then
  10421.         use_portals=yes
  10422.     elif test "$withval" != no ; then
  10423.         home="$withval"
  10424.     fi
  10425.     
  10426. fi
  10427.  
  10428.     
  10429. @%:@ Check whether --with-portals-includes was given.
  10430. if test "${with_portals_includes+set}" = set; then :
  10431.   withval=$with_portals_includes; if test -z "$withval" -o "$withval" = yes ; then
  10432.         as_fn_error "Option --with-portals-includes requires an argument." "$LINENO" 5
  10433.     elif test "$withval" != no ; then
  10434.         incs="$withval"
  10435.     fi
  10436.     
  10437. fi
  10438.  
  10439.     
  10440. @%:@ Check whether --with-portals-libs was given.
  10441. if test "${with_portals_libs+set}" = set; then :
  10442.   withval=$with_portals_libs; if test -z "$withval" -o "$withval" = yes ; then
  10443.         as_fn_error "Option --with-portals-libs requires an argument." "$LINENO" 5
  10444.     elif test "$withval" != no ; then
  10445.         libs="$withval"
  10446.     fi
  10447.     
  10448. fi
  10449.  
  10450.             if test -n "$home" ; then
  10451.     if test -z "$incs"; then
  10452.         incs=-I$home/include
  10453.     fi
  10454.     if test -z "$libs"; then
  10455.         libs=-L$home/lib64
  10456.         if test ! -d "$home/lib64" ; then
  10457.         libs=-L$home/lib
  10458.         fi
  10459.     fi
  10460.     fi
  10461.  
  10462.                 BUILD_PORTALS=
  10463.     PORTALS_INCS=
  10464.     PORTALS_LIBS=
  10465.     if test "X$use_portals$home$incs$libs" != X ; then
  10466.     # Save stuff
  10467.     save_cppflags="$CPPFLAGS"
  10468.     save_libs="$LIBS"
  10469.  
  10470.     PORTALS_INCS="$incs"
  10471.     CPPFLAGS="$CPPFLAGS $PORTALS_INCS"
  10472.  
  10473.     PORTALS_LIBS="$libs"
  10474.     LIBS="$save_libs $PORTALS_LIBS"
  10475.  
  10476.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for portals3.h header" >&5
  10477. $as_echo_n "checking for portals3.h header... " >&6; }
  10478.     ok=no
  10479.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10480. /* end confdefs.h.  */
  10481. #include <portals/portals3.h>
  10482. int
  10483. main ()
  10484. {
  10485. int m, n; m = PtlInit(&n);
  10486.   ;
  10487.   return 0;
  10488. }
  10489. _ACEOF
  10490. if ac_fn_c_try_compile "$LINENO"; then :
  10491.   ok=yes
  10492. fi
  10493. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10494.  
  10495.     if test "$ok" = yes ; then
  10496.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10497. $as_echo "yes" >&6; }
  10498.     else
  10499.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10500. $as_echo "no" >&6; }
  10501.         as_fn_error "Header portals/portals3.h not found." "$LINENO" 5
  10502.     fi
  10503.  
  10504.                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for portals libraries" >&5
  10505. $as_echo_n "checking for portals libraries... " >&6; }
  10506.     ok=no
  10507.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10508. /* end confdefs.h.  */
  10509. #include <portals/portals3.h>
  10510. int
  10511. main ()
  10512. {
  10513. int m, n; m = PtlInit(&n);
  10514.   ;
  10515.   return 0;
  10516. }
  10517. _ACEOF
  10518. if ac_fn_c_try_link "$LINENO"; then :
  10519.   ok=yes
  10520. fi
  10521. rm -f core conftest.err conftest.$ac_objext \
  10522.     conftest$ac_exeext conftest.$ac_ext
  10523.  
  10524.     if test "$ok" = no ; then
  10525.         PORTALS_LIBS="$libs -lportals"
  10526.         LIBS="$save_libs $PORTALS_LIBS"
  10527.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10528. /* end confdefs.h.  */
  10529. #include <portals/portals3.h>
  10530. int
  10531. main ()
  10532. {
  10533. int m, n; m = PtlInit(&n);
  10534.   ;
  10535.   return 0;
  10536. }
  10537. _ACEOF
  10538. if ac_fn_c_try_link "$LINENO"; then :
  10539.   ok=yes
  10540. fi
  10541. rm -f core conftest.err conftest.$ac_objext \
  10542.     conftest$ac_exeext conftest.$ac_ext
  10543.     fi
  10544.  
  10545.     if test "$ok" = no ; then
  10546.         PORTALS_LIBS="$libs -lp3api -lp3lib -lp3utcp -lp3rt -lpthread"
  10547.         LIBS="$save_libs $PORTALS_LIBS"
  10548.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10549. /* end confdefs.h.  */
  10550. #include <portals/portals3.h>
  10551. int
  10552. main ()
  10553. {
  10554. int m, n; m = PtlInit(&n);
  10555.   ;
  10556.   return 0;
  10557. }
  10558. _ACEOF
  10559. if ac_fn_c_try_link "$LINENO"; then :
  10560.   ok=yes
  10561. fi
  10562. rm -f core conftest.err conftest.$ac_objext \
  10563.     conftest$ac_exeext conftest.$ac_ext
  10564.     fi
  10565.  
  10566.     if test "$ok" = yes ; then
  10567.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10568. $as_echo "yes" >&6; }
  10569.         BUILD_PORTALS=1
  10570.     else
  10571.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10572. $as_echo "no" >&6; }
  10573.         as_fn_error "Could not link Portals library." "$LINENO" 5
  10574.     fi
  10575.  
  10576.     #
  10577.     # Check for API variations.
  10578.     #
  10579.     for ac_func in PtlErrorStr
  10580. do :
  10581.   ac_fn_c_check_func "$LINENO" "PtlErrorStr" "ac_cv_func_PtlErrorStr"
  10582. if test "x$ac_cv_func_PtlErrorStr" = x""yes; then :
  10583.   cat >>confdefs.h <<_ACEOF
  10584. @%:@define HAVE_PTLERRORSTR 1
  10585. _ACEOF
  10586.  
  10587. fi
  10588. done
  10589.  
  10590.     for ac_func in PtlEventKindStr
  10591. do :
  10592.   ac_fn_c_check_func "$LINENO" "PtlEventKindStr" "ac_cv_func_PtlEventKindStr"
  10593. if test "x$ac_cv_func_PtlEventKindStr" = x""yes; then :
  10594.   cat >>confdefs.h <<_ACEOF
  10595. @%:@define HAVE_PTLEVENTKINDSTR 1
  10596. _ACEOF
  10597.  
  10598. fi
  10599. done
  10600.  
  10601.  
  10602.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10603. /* end confdefs.h.  */
  10604. #include <portals/portals3.h>
  10605. int
  10606. main ()
  10607. {
  10608. int m; ptl_process_id_t any_pid;
  10609.          m = PtlACEntry(0, 0, any_pid, (ptl_uid_t) -1, (ptl_jid_t) -1, 0);
  10610.   ;
  10611.   return 0;
  10612. }
  10613. _ACEOF
  10614. if ac_fn_c_try_compile "$LINENO"; then :
  10615.   
  10616. $as_echo "@%:@define HAVE_PTLACENTRY_JID 1" >>confdefs.h
  10617.  
  10618. fi
  10619. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10620.  
  10621.     # Reset
  10622.     CPPFLAGS="$save_cppflags"
  10623.     LIBS="$save_libs"
  10624.     fi
  10625.     
  10626.     
  10627.     
  10628.  
  10629.  
  10630.  
  10631.             
  10632. @%:@ Check whether --with-zoid was given.
  10633. if test "${with_zoid+set}" = set; then :
  10634.   withval=$with_zoid; if test -z "$withval" -o "$withval" = yes ; then
  10635.         as_fn_error "Option --with-zoid requires the path to your ZOID source tree." "$LINENO" 5
  10636.     elif test "$withval" != no ; then
  10637.         ZOID_SRCDIR="$withval"
  10638.     fi
  10639.     
  10640. fi
  10641.  
  10642.     if test -n "$ZOID_SRCDIR" ; then
  10643.     save_cppflags="$CPPFLAGS"
  10644.     CPPFLAGS="$CPPFLAGS -Isrc/io/bmi -I$ZOID_SRCDIR/include -I$ZOID_SRCDIR/zbmi -I$ZOID_SRCDIR/zbmi/implementation"
  10645.     ac_fn_c_check_header_mongrel "$LINENO" "zbmi.h" "ac_cv_header_zbmi_h" "$ac_includes_default"
  10646. if test "x$ac_cv_header_zbmi_h" = x""yes; then :
  10647.   
  10648. else
  10649.   as_fn_error "Header zbmi.h not found." "$LINENO" 5
  10650. fi
  10651.  
  10652.  
  10653.     ac_fn_c_check_header_mongrel "$LINENO" "zoid_api.h" "ac_cv_header_zoid_api_h" "$ac_includes_default"
  10654. if test "x$ac_cv_header_zoid_api_h" = x""yes; then :
  10655.   
  10656. else
  10657.   as_fn_error "Header zoid_api.h not found." "$LINENO" 5
  10658. fi
  10659.  
  10660.  
  10661.     ac_fn_c_check_header_mongrel "$LINENO" "zbmi_protocol.h" "ac_cv_header_zbmi_protocol_h" "$ac_includes_default"
  10662. if test "x$ac_cv_header_zbmi_protocol_h" = x""yes; then :
  10663.   
  10664. else
  10665.   as_fn_error "Header zbmi_protocol.h not found." "$LINENO" 5
  10666. fi
  10667.  
  10668.  
  10669.     CPPFLAGS="$save_cppflags"
  10670.     BUILD_ZOID=1
  10671.     fi
  10672.     
  10673.     
  10674.  
  10675.  
  10676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgetxattr extra arguments" >&5
  10677. $as_echo_n "checking for fgetxattr extra arguments... " >&6; }
  10678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10679. /* end confdefs.h.  */
  10680.  
  10681.     #include <sys/types.h>
  10682.     #ifdef HAVE_ATTR_XATTR_H
  10683.     #include <attr/xattr.h>
  10684.     #endif
  10685.     #ifdef HAVE_SYS_XATTR_H
  10686.     #include <sys/xattr.h>
  10687.     #endif
  10688.     
  10689. int
  10690. main ()
  10691. {
  10692.  
  10693.     fgetxattr(0, 0, 0, 0, 0, 0);
  10694.     
  10695.   ;
  10696.   return 0;
  10697. }
  10698. _ACEOF
  10699. if ac_fn_c_try_compile "$LINENO"; then :
  10700.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10701. $as_echo "yes" >&6; }
  10702.     
  10703. $as_echo "@%:@define HAVE_FGETXATTR_EXTRA_ARGS 1" >>confdefs.h
  10704.  
  10705. else
  10706.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10707. $as_echo "no" >&6; }
  10708.  
  10709. fi
  10710. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10711.  
  10712. ac_fn_c_check_header_mongrel "$LINENO" "sys/sysinfo.h" "ac_cv_header_sys_sysinfo_h" "$ac_includes_default"
  10713. if test "x$ac_cv_header_sys_sysinfo_h" = x""yes; then :
  10714.   
  10715. $as_echo "@%:@define HAVE_SYSINFO 1" >>confdefs.h
  10716.  
  10717.        
  10718. fi
  10719.  
  10720.  
  10721.  
  10722. for ac_func in strnlen
  10723. do :
  10724.   ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
  10725. if test "x$ac_cv_func_strnlen" = x""yes; then :
  10726.   cat >>confdefs.h <<_ACEOF
  10727. @%:@define HAVE_STRNLEN 1
  10728. _ACEOF
  10729.  
  10730. fi
  10731. done
  10732.  
  10733. for ac_func in strtoull
  10734. do :
  10735.   ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
  10736. if test "x$ac_cv_func_strtoull" = x""yes; then :
  10737.   cat >>confdefs.h <<_ACEOF
  10738. @%:@define HAVE_STRTOULL 1
  10739. _ACEOF
  10740.  
  10741. fi
  10742. done
  10743.  
  10744. for ac_func in strstr
  10745. do :
  10746.   ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
  10747. if test "x$ac_cv_func_strstr" = x""yes; then :
  10748.   cat >>confdefs.h <<_ACEOF
  10749. @%:@define HAVE_STRSTR 1
  10750. _ACEOF
  10751.  
  10752. fi
  10753. done
  10754.  
  10755. for ac_func in fgetxattr
  10756. do :
  10757.   ac_fn_c_check_func "$LINENO" "fgetxattr" "ac_cv_func_fgetxattr"
  10758. if test "x$ac_cv_func_fgetxattr" = x""yes; then :
  10759.   cat >>confdefs.h <<_ACEOF
  10760. @%:@define HAVE_FGETXATTR 1
  10761. _ACEOF
  10762.  
  10763. fi
  10764. done
  10765.  
  10766. for ac_func in fsetxattr
  10767. do :
  10768.   ac_fn_c_check_func "$LINENO" "fsetxattr" "ac_cv_func_fsetxattr"
  10769. if test "x$ac_cv_func_fsetxattr" = x""yes; then :
  10770.   cat >>confdefs.h <<_ACEOF
  10771. @%:@define HAVE_FSETXATTR 1
  10772. _ACEOF
  10773.  
  10774. fi
  10775. done
  10776.  
  10777.  
  10778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgetxattr prototype" >&5
  10779. $as_echo_n "checking for fgetxattr prototype... " >&6; }
  10780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10781. /* end confdefs.h.  */
  10782.  
  10783.     #include <sys/types.h>
  10784.     #ifdef HAVE_ATTR_XATTR_H
  10785.     #include <attr/xattr.h>
  10786.     #endif
  10787.     #ifdef HAVE_SYS_XATTR_H
  10788.     #include <sys/xattr.h>
  10789.     #endif
  10790.     char * fgetxattr(char *foo);
  10791.     
  10792. int
  10793. main ()
  10794. {
  10795.  
  10796.   ;
  10797.   return 0;
  10798. }
  10799. _ACEOF
  10800. if ac_fn_c_try_compile "$LINENO"; then :
  10801.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10802. $as_echo "no" >&6; }
  10803. else
  10804.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10805. $as_echo "yes" >&6; }
  10806.     
  10807. $as_echo "@%:@define HAVE_FGETXATTR_PROTOTYPE 1" >>confdefs.h
  10808.  
  10809.  
  10810. fi
  10811. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10812.  
  10813.  
  10814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgetxattr extra arguments" >&5
  10815. $as_echo_n "checking for fgetxattr extra arguments... " >&6; }
  10816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10817. /* end confdefs.h.  */
  10818.  
  10819.     #include <sys/types.h>
  10820.     #ifdef HAVE_ATTR_XATTR_H
  10821.     #include <attr/xattr.h>
  10822.     #endif
  10823.     #ifdef HAVE_SYS_XATTR_H
  10824.     #include <sys/xattr.h>
  10825.     #endif
  10826.     
  10827. int
  10828. main ()
  10829. {
  10830.  
  10831.     #ifdef HAVE_FGETXATTR_PROTOTYPE
  10832.     fgetxattr(0, 0, 0, 0, 0, 0);
  10833.     #else
  10834.     #  error
  10835.     #endif
  10836.     
  10837.   ;
  10838.   return 0;
  10839. }
  10840. _ACEOF
  10841. if ac_fn_c_try_compile "$LINENO"; then :
  10842.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10843. $as_echo "yes" >&6; }
  10844.     
  10845. $as_echo "@%:@define HAVE_FGETXATTR_EXTRA_ARGS 1" >>confdefs.h
  10846.  
  10847. else
  10848.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10849. $as_echo "no" >&6; }
  10850.  
  10851. fi
  10852. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10853.  
  10854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsetxattr extra arguments" >&5
  10855. $as_echo_n "checking for fsetxattr extra arguments... " >&6; }
  10856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10857. /* end confdefs.h.  */
  10858.  
  10859.     #include <sys/types.h>
  10860.     #ifdef HAVE_ATTR_XATTR_H
  10861.     #include <attr/xattr.h>
  10862.     #endif
  10863.     #ifdef HAVE_SYS_XATTR_H
  10864.     #include <sys/xattr.h>
  10865.     #endif
  10866.     
  10867. int
  10868. main ()
  10869. {
  10870.  
  10871.     fsetxattr(0, 0, 0, 0, 0, 0);
  10872.     
  10873.   ;
  10874.   return 0;
  10875. }
  10876. _ACEOF
  10877. if ac_fn_c_try_compile "$LINENO"; then :
  10878.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10879. $as_echo "yes" >&6; }
  10880.     
  10881. $as_echo "@%:@define HAVE_FSETXATTR_EXTRA_ARGS 1" >>confdefs.h
  10882.  
  10883. else
  10884.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10885. $as_echo "no" >&6; }
  10886.  
  10887. fi
  10888. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10889.  
  10890.  
  10891. # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
  10892. # -lseq on Dynix/PTX, -lgen on Unixware.
  10893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
  10894. $as_echo_n "checking for library containing getmntent... " >&6; }
  10895. if test "${ac_cv_search_getmntent+set}" = set; then :
  10896.   $as_echo_n "(cached) " >&6
  10897. else
  10898.   ac_func_search_save_LIBS=$LIBS
  10899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10900. /* end confdefs.h.  */
  10901.  
  10902. /* Override any GCC internal prototype to avoid an error.
  10903.    Use char because int might match the return type of a GCC
  10904.    builtin and then its argument prototype would still apply.  */
  10905. #ifdef __cplusplus
  10906. extern "C"
  10907. #endif
  10908. char getmntent ();
  10909. int
  10910. main ()
  10911. {
  10912. return getmntent ();
  10913.   ;
  10914.   return 0;
  10915. }
  10916. _ACEOF
  10917. for ac_lib in '' sun seq gen; do
  10918.   if test -z "$ac_lib"; then
  10919.     ac_res="none required"
  10920.   else
  10921.     ac_res=-l$ac_lib
  10922.     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  10923.   fi
  10924.   if ac_fn_c_try_link "$LINENO"; then :
  10925.   ac_cv_search_getmntent=$ac_res
  10926. fi
  10927. rm -f core conftest.err conftest.$ac_objext \
  10928.     conftest$ac_exeext
  10929.   if test "${ac_cv_search_getmntent+set}" = set; then :
  10930.   break
  10931. fi
  10932. done
  10933. if test "${ac_cv_search_getmntent+set}" = set; then :
  10934.   
  10935. else
  10936.   ac_cv_search_getmntent=no
  10937. fi
  10938. rm conftest.$ac_ext
  10939. LIBS=$ac_func_search_save_LIBS
  10940. fi
  10941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
  10942. $as_echo "$ac_cv_search_getmntent" >&6; }
  10943. ac_res=$ac_cv_search_getmntent
  10944. if test "$ac_res" != no; then :
  10945.   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  10946.   ac_cv_func_getmntent=yes
  10947.         
  10948. $as_echo "@%:@define HAVE_GETMNTENT 1" >>confdefs.h
  10949.  
  10950. else
  10951.   ac_cv_func_getmntent=no
  10952. fi
  10953.  
  10954.  
  10955.  
  10956. for ac_header in malloc.h
  10957. do :
  10958.   ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
  10959. if test "x$ac_cv_header_malloc_h" = x""yes; then :
  10960.   cat >>confdefs.h <<_ACEOF
  10961. @%:@define HAVE_MALLOC_H 1
  10962. _ACEOF
  10963.  
  10964. fi
  10965.  
  10966. done
  10967.  
  10968. for ac_header in mntent.h
  10969. do :
  10970.   ac_fn_c_check_header_mongrel "$LINENO" "mntent.h" "ac_cv_header_mntent_h" "$ac_includes_default"
  10971. if test "x$ac_cv_header_mntent_h" = x""yes; then :
  10972.   cat >>confdefs.h <<_ACEOF
  10973. @%:@define HAVE_MNTENT_H 1
  10974. _ACEOF
  10975.  
  10976. fi
  10977.  
  10978. done
  10979.  
  10980.  
  10981. @%:@ Check whether --enable-static-server was given.
  10982. if test "${enable_static_server+set}" = set; then :
  10983.   enableval=$enable_static_server;  staticserver=$enableval 
  10984. else
  10985.    staticserver="no"  
  10986. fi
  10987.  
  10988.  
  10989. if test "$staticserver" = "yes"; then
  10990.     SERVER_LDFLAGS="$LDFLAGS -static"
  10991. else
  10992.     SERVER_LDFLAGS="$LDFLAGS -rdynamic"
  10993. fi
  10994.  
  10995.  
  10996.  
  10997. for ac_header in execinfo.h
  10998. do :
  10999.   ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
  11000. if test "x$ac_cv_header_execinfo_h" = x""yes; then :
  11001.   cat >>confdefs.h <<_ACEOF
  11002. @%:@define HAVE_EXECINFO_H 1
  11003. _ACEOF
  11004.  LDFLAGS="$LDFLAGS -rdynamic"
  11005.     GOSSIP_ENABLE_BACKTRACE=1
  11006.  
  11007. fi
  11008.  
  11009. done
  11010.  
  11011.  
  11012.  
  11013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL" >&5
  11014. $as_echo_n "checking for SDL... " >&6; }
  11015. SDL_CONFIG=`which sdl-config 2> /dev/null`
  11016. if ! test -z "$SDL_CONFIG" && test -x "$SDL_CONFIG"; then
  11017.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11018. $as_echo "yes" >&6; }
  11019.    SDL_VERSION=`sdl-config --version`
  11020.    VISCFLAGS=`sdl-config --cflags`
  11021.    VISCLIBS=`sdl-config --libs`
  11022.  
  11023.          for ac_header in SDL_ttf.h
  11024. do :
  11025.   ac_fn_c_check_header_mongrel "$LINENO" "SDL_ttf.h" "ac_cv_header_SDL_ttf_h" "$ac_includes_default"
  11026. if test "x$ac_cv_header_SDL_ttf_h" = x""yes; then :
  11027.   cat >>confdefs.h <<_ACEOF
  11028. @%:@define HAVE_SDL_TTF_H 1
  11029. _ACEOF
  11030.  BUILD_VIS="1"
  11031.         CPPFLAGS="$CPPFLAGS $VISCFLAGS"
  11032. else
  11033.   for ac_header in SDL/SDL_ttf.h
  11034. do :
  11035.   ac_fn_c_check_header_mongrel "$LINENO" "SDL/SDL_ttf.h" "ac_cv_header_SDL_SDL_ttf_h" "$ac_includes_default"
  11036. if test "x$ac_cv_header_SDL_SDL_ttf_h" = x""yes; then :
  11037.   cat >>confdefs.h <<_ACEOF
  11038. @%:@define HAVE_SDL_SDL_TTF_H 1
  11039. _ACEOF
  11040.  BUILD_VIS="1"
  11041.             CPPFLAGS="$CPPFLAGS $VISCFLAGS"
  11042. fi
  11043.  
  11044. done
  11045.  
  11046. fi
  11047.  
  11048. done
  11049.  
  11050.  
  11051.    
  11052.    
  11053.    
  11054. else
  11055.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11056. $as_echo "no" >&6; }
  11057. fi
  11058.  
  11059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU-style strerror_r" >&5
  11060. $as_echo_n "checking for GNU-style strerror_r... " >&6; }
  11061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11062. /* end confdefs.h.  */
  11063.  
  11064.     #include <string.h>
  11065.     extern char *strerror_r();
  11066.     
  11067. int
  11068. main ()
  11069. {
  11070.  
  11071.   ;
  11072.   return 0;
  11073. }
  11074. _ACEOF
  11075. if ac_fn_c_try_compile "$LINENO"; then :
  11076.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11077. $as_echo "yes" >&6; }
  11078.     
  11079. $as_echo "@%:@define HAVE_GNU_STRERROR_R 1" >>confdefs.h
  11080.  
  11081.     
  11082. else
  11083.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11084. $as_echo "no" >&6; }
  11085.  
  11086. fi
  11087. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11088.  
  11089. for d in src/apps src/io src/common src/client src/kernel \
  11090.        doc src/apps/kernel test; do
  11091.        install -d $d;
  11092. done
  11093.  
  11094. ac_config_files="$ac_config_files include/pvfs2.h Makefile module.mk src/apps/admin/module.mk src/apps/admin/pvfs2-config src/apps/devel/module.mk src/apps/karma/module.mk src/apps/vis/module.mk src/apps/fuse/module.mk src/apps/kernel/linux/module.mk src/apps/user/module.mk src/io/trove/module.mk src/io/trove/trove-handle-mgmt/module.mk src/io/trove/trove-dbpf/module.mk src/common/misc/module.mk src/common/quickhash/module.mk src/common/quicklist/module.mk src/common/dotconf/module.mk src/common/id-generator/module.mk src/common/gossip/module.mk src/common/gen-locks/module.mk src/common/llist/module.mk src/common/statecomp/module.mk src/common/events/module.mk src/common/mgmt/module.mk src/io/bmi/module.mk src/io/bmi/bmi_tcp/module.mk src/io/bmi/bmi_gm/module.mk src/io/bmi/bmi_mx/module.mk src/io/bmi/bmi_ib/module.mk src/io/bmi/bmi_portals/module.mk src/io/bmi/bmi_zoid/module.mk src/io/description/module.mk src/io/flow/module.mk src/io/flow/flowproto-bmi-trove/module.mk src/io/flow/flowproto-template/module.mk src/io/flow/flowproto-dump-offsets/module.mk src/io/flow/flowproto-bmi-cache/module.mk src/io/buffer/module.mk src/io/job/module.mk src/io/dev/module.mk src/proto/module.mk src/server/module.mk src/server/request-scheduler/module.mk src/client/sysint/module.mk src/kernel/linux-2.6/Makefile src/kernel/linux-2.4/Makefile doc/module.mk doc/coding/module.mk doc/design/module.mk doc/random/module.mk examples/pvfs2-server.rc doc/doxygen/pvfs2-doxygen.conf"
  11095.  
  11096. cat >confcache <<\_ACEOF
  11097. # This file is a shell script that caches the results of configure
  11098. # tests run on this system so they can be shared between configure
  11099. # scripts and configure runs, see configure's option --config-cache.
  11100. # It is not useful on other systems.  If it contains results you don't
  11101. # want to keep, you may remove or edit it.
  11102. #
  11103. # config.status only pays attention to the cache file if you give it
  11104. # the --recheck option to rerun configure.
  11105. #
  11106. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11107. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11108. # following values.
  11109.  
  11110. _ACEOF
  11111.  
  11112. # The following way of writing the cache mishandles newlines in values,
  11113. # but we know of no workaround that is simple, portable, and efficient.
  11114. # So, we kill variables containing newlines.
  11115. # Ultrix sh set writes to stderr and can't be redirected directly,
  11116. # and sets the high bit in the cache file unless we assign to the vars.
  11117. (
  11118.   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11119.     eval ac_val=\$$ac_var
  11120.     case $ac_val in #(
  11121.     *${as_nl}*)
  11122.       case $ac_var in #(
  11123.       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  11124. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  11125.       esac
  11126.       case $ac_var in #(
  11127.       _ | IFS | as_nl) ;; #(
  11128.       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11129.       *) { eval $ac_var=; unset $ac_var;} ;;
  11130.       esac ;;
  11131.     esac
  11132.   done
  11133.  
  11134.   (set) 2>&1 |
  11135.     case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11136.     *${as_nl}ac_space=\ *)
  11137.       # `set' does not quote correctly, so add quotes: double-quote
  11138.       # substitution turns \\\\ into \\, and sed turns \\ into \.
  11139.       sed -n \
  11140.     "s/'/'\\\\''/g;
  11141.       s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11142.       ;; #(
  11143.     *)
  11144.       # `set' quotes correctly as required by POSIX, so do not add quotes.
  11145.       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11146.       ;;
  11147.     esac |
  11148.     sort
  11149. ) |
  11150.   sed '
  11151.      /^ac_cv_env_/b end
  11152.      t clear
  11153.      :clear
  11154.      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11155.      t end
  11156.      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11157.      :end' >>confcache
  11158. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11159.   if test -w "$cache_file"; then
  11160.     test "x$cache_file" != "x/dev/null" &&
  11161.       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  11162. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11163.     cat confcache >$cache_file
  11164.   else
  11165.     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  11166. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11167.   fi
  11168. fi
  11169. rm -f confcache
  11170.  
  11171. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11172. # Let make expand exec_prefix.
  11173. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11174.  
  11175. DEFS=-DHAVE_CONFIG_H
  11176.  
  11177. ac_libobjs=
  11178. ac_ltlibobjs=
  11179. for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
  11180.   # 1. Remove the extension, and $U if already installed.
  11181.   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  11182.   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  11183.   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
  11184.   #    will be set to the directory where LIBOBJS objects are built.
  11185.   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  11186.   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  11187. done
  11188. LIB@&t@OBJS=$ac_libobjs
  11189.  
  11190. LTLIBOBJS=$ac_ltlibobjs
  11191.  
  11192.  
  11193.  
  11194.  
  11195. : ${CONFIG_STATUS=./config.status}
  11196. ac_write_fail=0
  11197. ac_clean_files_save=$ac_clean_files
  11198. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11199. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  11200. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11201. as_write_fail=0
  11202. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  11203. #! $SHELL
  11204. # Generated by $as_me.
  11205. # Run this file to recreate the current configuration.
  11206. # Compiler output produced by configure, useful for debugging
  11207. # configure, is in config.log if it exists.
  11208.  
  11209. debug=false
  11210. ac_cs_recheck=false
  11211. ac_cs_silent=false
  11212.  
  11213. SHELL=\${CONFIG_SHELL-$SHELL}
  11214. export SHELL
  11215. _ASEOF
  11216. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  11217. ## -------------------- ##
  11218. ## M4sh Initialization. ##
  11219. ## -------------------- ##
  11220.  
  11221. # Be more Bourne compatible
  11222. DUALCASE=1; export DUALCASE # for MKS sh
  11223. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  11224.   emulate sh
  11225.   NULLCMD=:
  11226.   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  11227.   # is contrary to our usage.  Disable this feature.
  11228.   alias -g '${1+"$@"}'='"$@"'
  11229.   setopt NO_GLOB_SUBST
  11230. else
  11231.   case `(set -o) 2>/dev/null` in @%:@(
  11232.   *posix*) :
  11233.     set -o posix ;; @%:@(
  11234.   *) :
  11235.      ;;
  11236. esac
  11237. fi
  11238.  
  11239.  
  11240. as_nl='
  11241. '
  11242. export as_nl
  11243. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  11244. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  11245. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  11246. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  11247. # Prefer a ksh shell builtin over an external printf program on Solaris,
  11248. # but without wasting forks for bash or zsh.
  11249. if test -z "$BASH_VERSION$ZSH_VERSION" \
  11250.     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  11251.   as_echo='print -r --'
  11252.   as_echo_n='print -rn --'
  11253. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  11254.   as_echo='printf %s\n'
  11255.   as_echo_n='printf %s'
  11256. else
  11257.   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  11258.     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  11259.     as_echo_n='/usr/ucb/echo -n'
  11260.   else
  11261.     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  11262.     as_echo_n_body='eval
  11263.       arg=$1;
  11264.       case $arg in @%:@(
  11265.       *"$as_nl"*)
  11266.     expr "X$arg" : "X\\(.*\\)$as_nl";
  11267.     arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  11268.       esac;
  11269.       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  11270.     '
  11271.     export as_echo_n_body
  11272.     as_echo_n='sh -c $as_echo_n_body as_echo'
  11273.   fi
  11274.   export as_echo_body
  11275.   as_echo='sh -c $as_echo_body as_echo'
  11276. fi
  11277.  
  11278. # The user is always right.
  11279. if test "${PATH_SEPARATOR+set}" != set; then
  11280.   PATH_SEPARATOR=:
  11281.   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  11282.     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  11283.       PATH_SEPARATOR=';'
  11284.   }
  11285. fi
  11286.  
  11287.  
  11288. # IFS
  11289. # We need space, tab and new line, in precisely that order.  Quoting is
  11290. # there to prevent editors from complaining about space-tab.
  11291. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  11292. # splitting by setting IFS to empty value.)
  11293. IFS=" ""    $as_nl"
  11294.  
  11295. # Find who we are.  Look in the path if we contain no directory separator.
  11296. case $0 in @%:@((
  11297.   *[\\/]* ) as_myself=$0 ;;
  11298.   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11299. for as_dir in $PATH
  11300. do
  11301.   IFS=$as_save_IFS
  11302.   test -z "$as_dir" && as_dir=.
  11303.     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11304.   done
  11305. IFS=$as_save_IFS
  11306.  
  11307.      ;;
  11308. esac
  11309. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11310. # in which case we are not to be found in the path.
  11311. if test "x$as_myself" = x; then
  11312.   as_myself=$0
  11313. fi
  11314. if test ! -f "$as_myself"; then
  11315.   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  11316.   exit 1
  11317. fi
  11318.  
  11319. # Unset variables that we do not need and which cause bugs (e.g. in
  11320. # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
  11321. # suppresses any "Segmentation fault" message there.  '((' could
  11322. # trigger a bug in pdksh 5.2.14.
  11323. for as_var in BASH_ENV ENV MAIL MAILPATH
  11324. do eval test x\${$as_var+set} = xset \
  11325.   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  11326. done
  11327. PS1='$ '
  11328. PS2='> '
  11329. PS4='+ '
  11330.  
  11331. # NLS nuisances.
  11332. LC_ALL=C
  11333. export LC_ALL
  11334. LANGUAGE=C
  11335. export LANGUAGE
  11336.  
  11337. # CDPATH.
  11338. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11339.  
  11340.  
  11341. @%:@ as_fn_error ERROR [LINENO LOG_FD]
  11342. @%:@ ---------------------------------
  11343. @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  11344. @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  11345. @%:@ script with status @S|@?, using 1 if that was 0.
  11346. as_fn_error ()
  11347. {
  11348.   as_status=$?; test $as_status -eq 0 && as_status=1
  11349.   if test "$3"; then
  11350.     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  11351.     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  11352.   fi
  11353.   $as_echo "$as_me: error: $1" >&2
  11354.   as_fn_exit $as_status
  11355. } @%:@ as_fn_error
  11356.  
  11357.  
  11358. @%:@ as_fn_set_status STATUS
  11359. @%:@ -----------------------
  11360. @%:@ Set @S|@? to STATUS, without forking.
  11361. as_fn_set_status ()
  11362. {
  11363.   return $1
  11364. } @%:@ as_fn_set_status
  11365.  
  11366. @%:@ as_fn_exit STATUS
  11367. @%:@ -----------------
  11368. @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  11369. as_fn_exit ()
  11370. {
  11371.   set +e
  11372.   as_fn_set_status $1
  11373.   exit $1
  11374. } @%:@ as_fn_exit
  11375.  
  11376. @%:@ as_fn_unset VAR
  11377. @%:@ ---------------
  11378. @%:@ Portably unset VAR.
  11379. as_fn_unset ()
  11380. {
  11381.   { eval $1=; unset $1;}
  11382. }
  11383. as_unset=as_fn_unset
  11384. @%:@ as_fn_append VAR VALUE
  11385. @%:@ ----------------------
  11386. @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
  11387. @%:@ advantage of any shell optimizations that allow amortized linear growth over
  11388. @%:@ repeated appends, instead of the typical quadratic growth present in naive
  11389. @%:@ implementations.
  11390. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  11391.   eval 'as_fn_append ()
  11392.   {
  11393.     eval $1+=\$2
  11394.   }'
  11395. else
  11396.   as_fn_append ()
  11397.   {
  11398.     eval $1=\$$1\$2
  11399.   }
  11400. fi # as_fn_append
  11401.  
  11402. @%:@ as_fn_arith ARG...
  11403. @%:@ ------------------
  11404. @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
  11405. @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
  11406. @%:@ must be portable across @S|@(()) and expr.
  11407. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  11408.   eval 'as_fn_arith ()
  11409.   {
  11410.     as_val=$(( $* ))
  11411.   }'
  11412. else
  11413.   as_fn_arith ()
  11414.   {
  11415.     as_val=`expr "$@" || test $? -eq 1`
  11416.   }
  11417. fi # as_fn_arith
  11418.  
  11419.  
  11420. if expr a : '\(a\)' >/dev/null 2>&1 &&
  11421.    test "X`expr 00001 : '.*\(...\)'`" = X001; then
  11422.   as_expr=expr
  11423. else
  11424.   as_expr=false
  11425. fi
  11426.  
  11427. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  11428.   as_basename=basename
  11429. else
  11430.   as_basename=false
  11431. fi
  11432.  
  11433. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  11434.   as_dirname=dirname
  11435. else
  11436.   as_dirname=false
  11437. fi
  11438.  
  11439. as_me=`$as_basename -- "$0" ||
  11440. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11441.      X"$0" : 'X\(//\)$' \| \
  11442.      X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  11443. $as_echo X/"$0" |
  11444.     sed '/^.*\/\([^/][^/]*\)\/*$/{
  11445.         s//\1/
  11446.         q
  11447.       }
  11448.       /^X\/\(\/\/\)$/{
  11449.         s//\1/
  11450.         q
  11451.       }
  11452.       /^X\/\(\/\).*/{
  11453.         s//\1/
  11454.         q
  11455.       }
  11456.       s/.*/./; q'`
  11457.  
  11458. # Avoid depending upon Character Ranges.
  11459. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11460. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11461. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11462. as_cr_digits='0123456789'
  11463. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11464.  
  11465. ECHO_C= ECHO_N= ECHO_T=
  11466. case `echo -n x` in @%:@(((((
  11467. -n*)
  11468.   case `echo 'xy\c'` in
  11469.   *c*) ECHO_T='    ';;    # ECHO_T is single tab character.
  11470.   xy)  ECHO_C='\c';;
  11471.   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
  11472.        ECHO_T='    ';;
  11473.   esac;;
  11474. *)
  11475.   ECHO_N='-n';;
  11476. esac
  11477.  
  11478. rm -f conf$$ conf$$.exe conf$$.file
  11479. if test -d conf$$.dir; then
  11480.   rm -f conf$$.dir/conf$$.file
  11481. else
  11482.   rm -f conf$$.dir
  11483.   mkdir conf$$.dir 2>/dev/null
  11484. fi
  11485. if (echo >conf$$.file) 2>/dev/null; then
  11486.   if ln -s conf$$.file conf$$ 2>/dev/null; then
  11487.     as_ln_s='ln -s'
  11488.     # ... but there are two gotchas:
  11489.     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  11490.     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  11491.     # In both cases, we have to default to `cp -p'.
  11492.     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  11493.       as_ln_s='cp -p'
  11494.   elif ln conf$$.file conf$$ 2>/dev/null; then
  11495.     as_ln_s=ln
  11496.   else
  11497.     as_ln_s='cp -p'
  11498.   fi
  11499. else
  11500.   as_ln_s='cp -p'
  11501. fi
  11502. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  11503. rmdir conf$$.dir 2>/dev/null
  11504.  
  11505.  
  11506. @%:@ as_fn_mkdir_p
  11507. @%:@ -------------
  11508. @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
  11509. as_fn_mkdir_p ()
  11510. {
  11511.  
  11512.   case $as_dir in #(
  11513.   -*) as_dir=./$as_dir;;
  11514.   esac
  11515.   test -d "$as_dir" || eval $as_mkdir_p || {
  11516.     as_dirs=
  11517.     while :; do
  11518.       case $as_dir in #(
  11519.       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  11520.       *) as_qdir=$as_dir;;
  11521.       esac
  11522.       as_dirs="'$as_qdir' $as_dirs"
  11523.       as_dir=`$as_dirname -- "$as_dir" ||
  11524. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11525.      X"$as_dir" : 'X\(//\)[^/]' \| \
  11526.      X"$as_dir" : 'X\(//\)$' \| \
  11527.      X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  11528. $as_echo X"$as_dir" |
  11529.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11530.         s//\1/
  11531.         q
  11532.       }
  11533.       /^X\(\/\/\)[^/].*/{
  11534.         s//\1/
  11535.         q
  11536.       }
  11537.       /^X\(\/\/\)$/{
  11538.         s//\1/
  11539.         q
  11540.       }
  11541.       /^X\(\/\).*/{
  11542.         s//\1/
  11543.         q
  11544.       }
  11545.       s/.*/./; q'`
  11546.       test -d "$as_dir" && break
  11547.     done
  11548.     test -z "$as_dirs" || eval "mkdir $as_dirs"
  11549.   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  11550.  
  11551.  
  11552. } @%:@ as_fn_mkdir_p
  11553. if mkdir -p . 2>/dev/null; then
  11554.   as_mkdir_p='mkdir -p "$as_dir"'
  11555. else
  11556.   test -d ./-p && rmdir ./-p
  11557.   as_mkdir_p=false
  11558. fi
  11559.  
  11560. if test -x / >/dev/null 2>&1; then
  11561.   as_test_x='test -x'
  11562. else
  11563.   if ls -dL / >/dev/null 2>&1; then
  11564.     as_ls_L_option=L
  11565.   else
  11566.     as_ls_L_option=
  11567.   fi
  11568.   as_test_x='
  11569.     eval sh -c '\''
  11570.       if test -d "$1"; then
  11571.     test -d "$1/.";
  11572.       else
  11573.     case $1 in @%:@(
  11574.     -*)set "./$1";;
  11575.     esac;
  11576.     case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
  11577.     ???[sx]*):;;*)false;;esac;fi
  11578.     '\'' sh
  11579.   '
  11580. fi
  11581. as_executable_p=$as_test_x
  11582.  
  11583. # Sed expression to map a string onto a valid CPP name.
  11584. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11585.  
  11586. # Sed expression to map a string onto a valid variable name.
  11587. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11588.  
  11589.  
  11590. exec 6>&1
  11591. ## ----------------------------------- ##
  11592. ## Main body of $CONFIG_STATUS script. ##
  11593. ## ----------------------------------- ##
  11594. _ASEOF
  11595. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  11596.  
  11597. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11598. # Save the log message, to keep $0 and so on meaningful, and to
  11599. # report actual input values of CONFIG_FILES etc. instead of their
  11600. # values after options handling.
  11601. ac_log="
  11602. This file was extended by $as_me, which was
  11603. generated by GNU Autoconf 2.65.  Invocation command line was
  11604.  
  11605.   CONFIG_FILES    = $CONFIG_FILES
  11606.   CONFIG_HEADERS  = $CONFIG_HEADERS
  11607.   CONFIG_LINKS    = $CONFIG_LINKS
  11608.   CONFIG_COMMANDS = $CONFIG_COMMANDS
  11609.   $ $0 $@
  11610.  
  11611. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  11612. "
  11613.  
  11614. _ACEOF
  11615.  
  11616. case $ac_config_files in *"
  11617. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  11618. esac
  11619.  
  11620. case $ac_config_headers in *"
  11621. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  11622. esac
  11623.  
  11624.  
  11625. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11626. # Files that config.status was made for.
  11627. config_files="$ac_config_files"
  11628. config_headers="$ac_config_headers"
  11629.  
  11630. _ACEOF
  11631.  
  11632. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11633. ac_cs_usage="\
  11634. \`$as_me' instantiates files and other configuration actions
  11635. from templates according to the current configuration.  Unless the files
  11636. and actions are specified as TAGs, all are instantiated by default.
  11637.  
  11638. Usage: $0 [OPTION]... [TAG]...
  11639.  
  11640.   -h, --help       print this help, then exit
  11641.   -V, --version    print version number and configuration settings, then exit
  11642.       --config     print configuration, then exit
  11643.   -q, --quiet, --silent
  11644.                    do not print progress messages
  11645.   -d, --debug      don't remove temporary files
  11646.       --recheck    update $as_me by reconfiguring in the same conditions
  11647.       --file=FILE[:TEMPLATE] 
  11648.                    instantiate the configuration file FILE
  11649.       --header=FILE[:TEMPLATE] 
  11650.                    instantiate the configuration header FILE
  11651.  
  11652. Configuration files:
  11653. $config_files
  11654.  
  11655. Configuration headers:
  11656. $config_headers
  11657.  
  11658. Report bugs to the package provider."
  11659.  
  11660. _ACEOF
  11661. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11662. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  11663. ac_cs_version="\\
  11664. config.status
  11665. configured by $0, generated by GNU Autoconf 2.65,
  11666.   with options \\"\$ac_cs_config\\"
  11667.  
  11668. Copyright (C) 2009 Free Software Foundation, Inc.
  11669. This config.status script is free software; the Free Software Foundation
  11670. gives unlimited permission to copy, distribute and modify it."
  11671.  
  11672. ac_pwd='$ac_pwd'
  11673. srcdir='$srcdir'
  11674. INSTALL='$INSTALL'
  11675. test -n "\$AWK" || AWK=awk
  11676. _ACEOF
  11677.  
  11678. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11679. # The default lists apply if the user does not specify any file.
  11680. ac_need_defaults=:
  11681. while test $# != 0
  11682. do
  11683.   case $1 in
  11684.   --*=*)
  11685.     ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11686.     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  11687.     ac_shift=:
  11688.     ;;
  11689.   *)
  11690.     ac_option=$1
  11691.     ac_optarg=$2
  11692.     ac_shift=shift
  11693.     ;;
  11694.   esac
  11695.  
  11696.   case $ac_option in
  11697.   # Handling of the options.
  11698.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11699.     ac_cs_recheck=: ;;
  11700.   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  11701.     $as_echo "$ac_cs_version"; exit ;;
  11702.   --config | --confi | --conf | --con | --co | --c )
  11703.     $as_echo "$ac_cs_config"; exit ;;
  11704.   --debug | --debu | --deb | --de | --d | -d )
  11705.     debug=: ;;
  11706.   --file | --fil | --fi | --f )
  11707.     $ac_shift
  11708.     case $ac_optarg in
  11709.     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11710.     esac
  11711.     as_fn_append CONFIG_FILES " '$ac_optarg'"
  11712.     ac_need_defaults=false;;
  11713.   --header | --heade | --head | --hea )
  11714.     $ac_shift
  11715.     case $ac_optarg in
  11716.     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11717.     esac
  11718.     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  11719.     ac_need_defaults=false;;
  11720.   --he | --h)
  11721.     # Conflict between --help and --header
  11722.     as_fn_error "ambiguous option: \`$1'
  11723. Try \`$0 --help' for more information.";;
  11724.   --help | --hel | -h )
  11725.     $as_echo "$ac_cs_usage"; exit ;;
  11726.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11727.   | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11728.     ac_cs_silent=: ;;
  11729.  
  11730.   # This is an error.
  11731.   -*) as_fn_error "unrecognized option: \`$1'
  11732. Try \`$0 --help' for more information." ;;
  11733.  
  11734.   *) as_fn_append ac_config_targets " $1"
  11735.      ac_need_defaults=false ;;
  11736.  
  11737.   esac
  11738.   shift
  11739. done
  11740.  
  11741. ac_configure_extra_args=
  11742.  
  11743. if $ac_cs_silent; then
  11744.   exec 6>/dev/null
  11745.   ac_configure_extra_args="$ac_configure_extra_args --silent"
  11746. fi
  11747.  
  11748. _ACEOF
  11749. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11750. if \$ac_cs_recheck; then
  11751.   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11752.   shift
  11753.   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  11754.   CONFIG_SHELL='$SHELL'
  11755.   export CONFIG_SHELL
  11756.   exec "\$@"
  11757. fi
  11758.  
  11759. _ACEOF
  11760. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11761. exec 5>>config.log
  11762. {
  11763.   echo
  11764.   sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
  11765. @%:@@%:@ Running $as_me. @%:@@%:@
  11766. _ASBOX
  11767.   $as_echo "$ac_log"
  11768. } >&5
  11769.  
  11770. _ACEOF
  11771. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11772. _ACEOF
  11773.  
  11774. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11775.  
  11776. # Handling of arguments.
  11777. for ac_config_target in $ac_config_targets
  11778. do
  11779.   case $ac_config_target in
  11780.     "pvfs2-config.h") CONFIG_HEADERS="$CONFIG_HEADERS pvfs2-config.h" ;;
  11781.     "include/pvfs2.h") CONFIG_FILES="$CONFIG_FILES include/pvfs2.h" ;;
  11782.     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11783.     "module.mk") CONFIG_FILES="$CONFIG_FILES module.mk" ;;
  11784.     "src/apps/admin/module.mk") CONFIG_FILES="$CONFIG_FILES src/apps/admin/module.mk" ;;
  11785.     "src/apps/admin/pvfs2-config") CONFIG_FILES="$CONFIG_FILES src/apps/admin/pvfs2-config" ;;
  11786.     "src/apps/devel/module.mk") CONFIG_FILES="$CONFIG_FILES src/apps/devel/module.mk" ;;
  11787.     "src/apps/karma/module.mk") CONFIG_FILES="$CONFIG_FILES src/apps/karma/module.mk" ;;
  11788.     "src/apps/vis/module.mk") CONFIG_FILES="$CONFIG_FILES src/apps/vis/module.mk" ;;
  11789.     "src/apps/fuse/module.mk") CONFIG_FILES="$CONFIG_FILES src/apps/fuse/module.mk" ;;
  11790.     "src/apps/kernel/linux/module.mk") CONFIG_FILES="$CONFIG_FILES src/apps/kernel/linux/module.mk" ;;
  11791.     "src/apps/user/module.mk") CONFIG_FILES="$CONFIG_FILES src/apps/user/module.mk" ;;
  11792.     "src/io/trove/module.mk") CONFIG_FILES="$CONFIG_FILES src/io/trove/module.mk" ;;
  11793.     "src/io/trove/trove-handle-mgmt/module.mk") CONFIG_FILES="$CONFIG_FILES src/io/trove/trove-handle-mgmt/module.mk" ;;
  11794.     "src/io/trove/trove-dbpf/module.mk") CONFIG_FILES="$CONFIG_FILES src/io/trove/trove-dbpf/module.mk" ;;
  11795.     "src/common/misc/module.mk") CONFIG_FILES="$CONFIG_FILES src/common/misc/module.mk" ;;
  11796.     "src/common/quickhash/module.mk") CONFIG_FILES="$CONFIG_FILES src/common/quickhash/module.mk" ;;
  11797.     "src/common/quicklist/module.mk") CONFIG_FILES="$CONFIG_FILES src/common/quicklist/module.mk" ;;
  11798.     "src/common/dotconf/module.mk") CONFIG_FILES="$CONFIG_FILES src/common/dotconf/module.mk" ;;
  11799.     "src/common/id-generator/module.mk") CONFIG_FILES="$CONFIG_FILES src/common/id-generator/module.mk" ;;
  11800.     "src/common/gossip/module.mk") CONFIG_FILES="$CONFIG_FILES src/common/gossip/module.mk" ;;
  11801.     "src/common/gen-locks/module.mk") CONFIG_FILES="$CONFIG_FILES src/common/gen-locks/module.mk" ;;
  11802.     "src/common/llist/module.mk") CONFIG_FILES="$CONFIG_FILES src/common/llist/module.mk" ;;
  11803.     "src/common/statecomp/module.mk") CONFIG_FILES="$CONFIG_FILES src/common/statecomp/module.mk" ;;
  11804.     "src/common/events/module.mk") CONFIG_FILES="$CONFIG_FILES src/common/events/module.mk" ;;
  11805.     "src/common/mgmt/module.mk") CONFIG_FILES="$CONFIG_FILES src/common/mgmt/module.mk" ;;
  11806.     "src/io/bmi/module.mk") CONFIG_FILES="$CONFIG_FILES src/io/bmi/module.mk" ;;
  11807.     "src/io/bmi/bmi_tcp/module.mk") CONFIG_FILES="$CONFIG_FILES src/io/bmi/bmi_tcp/module.mk" ;;
  11808.     "src/io/bmi/bmi_gm/module.mk") CONFIG_FILES="$CONFIG_FILES src/io/bmi/bmi_gm/module.mk" ;;
  11809.     "src/io/bmi/bmi_mx/module.mk") CONFIG_FILES="$CONFIG_FILES src/io/bmi/bmi_mx/module.mk" ;;
  11810.     "src/io/bmi/bmi_ib/module.mk") CONFIG_FILES="$CONFIG_FILES src/io/bmi/bmi_ib/module.mk" ;;
  11811.     "src/io/bmi/bmi_portals/module.mk") CONFIG_FILES="$CONFIG_FILES src/io/bmi/bmi_portals/module.mk" ;;
  11812.     "src/io/bmi/bmi_zoid/module.mk") CONFIG_FILES="$CONFIG_FILES src/io/bmi/bmi_zoid/module.mk" ;;
  11813.     "src/io/description/module.mk") CONFIG_FILES="$CONFIG_FILES src/io/description/module.mk" ;;
  11814.     "src/io/flow/module.mk") CONFIG_FILES="$CONFIG_FILES src/io/flow/module.mk" ;;
  11815.     "src/io/flow/flowproto-bmi-trove/module.mk") CONFIG_FILES="$CONFIG_FILES src/io/flow/flowproto-bmi-trove/module.mk" ;;
  11816.     "src/io/flow/flowproto-template/module.mk") CONFIG_FILES="$CONFIG_FILES src/io/flow/flowproto-template/module.mk" ;;
  11817.     "src/io/flow/flowproto-dump-offsets/module.mk") CONFIG_FILES="$CONFIG_FILES src/io/flow/flowproto-dump-offsets/module.mk" ;;
  11818.     "src/io/flow/flowproto-bmi-cache/module.mk") CONFIG_FILES="$CONFIG_FILES src/io/flow/flowproto-bmi-cache/module.mk" ;;
  11819.     "src/io/buffer/module.mk") CONFIG_FILES="$CONFIG_FILES src/io/buffer/module.mk" ;;
  11820.     "src/io/job/module.mk") CONFIG_FILES="$CONFIG_FILES src/io/job/module.mk" ;;
  11821.     "src/io/dev/module.mk") CONFIG_FILES="$CONFIG_FILES src/io/dev/module.mk" ;;
  11822.     "src/proto/module.mk") CONFIG_FILES="$CONFIG_FILES src/proto/module.mk" ;;
  11823.     "src/server/module.mk") CONFIG_FILES="$CONFIG_FILES src/server/module.mk" ;;
  11824.     "src/server/request-scheduler/module.mk") CONFIG_FILES="$CONFIG_FILES src/server/request-scheduler/module.mk" ;;
  11825.     "src/client/sysint/module.mk") CONFIG_FILES="$CONFIG_FILES src/client/sysint/module.mk" ;;
  11826.     "src/kernel/linux-2.6/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/linux-2.6/Makefile" ;;
  11827.     "src/kernel/linux-2.4/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/linux-2.4/Makefile" ;;
  11828.     "doc/module.mk") CONFIG_FILES="$CONFIG_FILES doc/module.mk" ;;
  11829.     "doc/coding/module.mk") CONFIG_FILES="$CONFIG_FILES doc/coding/module.mk" ;;
  11830.     "doc/design/module.mk") CONFIG_FILES="$CONFIG_FILES doc/design/module.mk" ;;
  11831.     "doc/random/module.mk") CONFIG_FILES="$CONFIG_FILES doc/random/module.mk" ;;
  11832.     "examples/pvfs2-server.rc") CONFIG_FILES="$CONFIG_FILES examples/pvfs2-server.rc" ;;
  11833.     "doc/doxygen/pvfs2-doxygen.conf") CONFIG_FILES="$CONFIG_FILES doc/doxygen/pvfs2-doxygen.conf" ;;
  11834.  
  11835.   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  11836.   esac
  11837. done
  11838.  
  11839.  
  11840. # If the user did not use the arguments to specify the items to instantiate,
  11841. # then the envvar interface is used.  Set only those that are not.
  11842. # We use the long form for the default assignment because of an extremely
  11843. # bizarre bug on SunOS 4.1.3.
  11844. if $ac_need_defaults; then
  11845.   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11846.   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11847. fi
  11848.  
  11849. # Have a temporary directory for convenience.  Make it in the build tree
  11850. # simply because there is no reason against having it here, and in addition,
  11851. # creating and moving files from /tmp can sometimes cause problems.
  11852. # Hook for its removal unless debugging.
  11853. # Note that there is a small window in which the directory will not be cleaned:
  11854. # after its creation but before its name has been assigned to `$tmp'.
  11855. $debug ||
  11856. {
  11857.   tmp=
  11858.   trap 'exit_status=$?
  11859.   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  11860. ' 0
  11861.   trap 'as_fn_exit 1' 1 2 13 15
  11862. }
  11863. # Create a (secure) tmp directory for tmp files.
  11864.  
  11865. {
  11866.   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  11867.   test -n "$tmp" && test -d "$tmp"
  11868. }  ||
  11869. {
  11870.   tmp=./conf$$-$RANDOM
  11871.   (umask 077 && mkdir "$tmp")
  11872. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  11873.  
  11874. # Set up the scripts for CONFIG_FILES section.
  11875. # No need to generate them if there are no CONFIG_FILES.
  11876. # This happens for instance with `./config.status config.h'.
  11877. if test -n "$CONFIG_FILES"; then
  11878.  
  11879.  
  11880. ac_cr=`echo X | tr X '\015'`
  11881. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  11882. # But we know of no other shell where ac_cr would be empty at this
  11883. # point, so we can use a bashism as a fallback.
  11884. if test "x$ac_cr" = x; then
  11885.   eval ac_cr=\$\'\\r\'
  11886. fi
  11887. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  11888. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  11889.   ac_cs_awk_cr='\r'
  11890. else
  11891.   ac_cs_awk_cr=$ac_cr
  11892. fi
  11893.  
  11894. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  11895. _ACEOF
  11896.  
  11897.  
  11898. {
  11899.   echo "cat >conf$$subs.awk <<_ACEOF" &&
  11900.   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  11901.   echo "_ACEOF"
  11902. } >conf$$subs.sh ||
  11903.   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  11904. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  11905. ac_delim='%!_!# '
  11906. for ac_last_try in false false false false false :; do
  11907.   . ./conf$$subs.sh ||
  11908.     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  11909.  
  11910.   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  11911.   if test $ac_delim_n = $ac_delim_num; then
  11912.     break
  11913.   elif $ac_last_try; then
  11914.     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  11915.   else
  11916.     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11917.   fi
  11918. done
  11919. rm -f conf$$subs.sh
  11920.  
  11921. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11922. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  11923. _ACEOF
  11924. sed -n '
  11925. h
  11926. s/^/S["/; s/!.*/"]=/
  11927. p
  11928. g
  11929. s/^[^!]*!//
  11930. :repl
  11931. t repl
  11932. s/'"$ac_delim"'$//
  11933. t delim
  11934. :nl
  11935. h
  11936. s/\(.\{148\}\)..*/\1/
  11937. t more1
  11938. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  11939. p
  11940. n
  11941. b repl
  11942. :more1
  11943. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11944. p
  11945. g
  11946. s/.\{148\}//
  11947. t nl
  11948. :delim
  11949. h
  11950. s/\(.\{148\}\)..*/\1/
  11951. t more2
  11952. s/["\\]/\\&/g; s/^/"/; s/$/"/
  11953. p
  11954. b
  11955. :more2
  11956. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11957. p
  11958. g
  11959. s/.\{148\}//
  11960. t delim
  11961. ' <conf$$subs.awk | sed '
  11962. /^[^""]/{
  11963.   N
  11964.   s/\n//
  11965. }
  11966. ' >>$CONFIG_STATUS || ac_write_fail=1
  11967. rm -f conf$$subs.awk
  11968. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11969. _ACAWK
  11970. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  11971.   for (key in S) S_is_set[key] = 1
  11972.   FS = ""
  11973.  
  11974. }
  11975. {
  11976.   line = $ 0
  11977.   nfields = split(line, field, "@")
  11978.   substed = 0
  11979.   len = length(field[1])
  11980.   for (i = 2; i < nfields; i++) {
  11981.     key = field[i]
  11982.     keylen = length(key)
  11983.     if (S_is_set[key]) {
  11984.       value = S[key]
  11985.       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  11986.       len += length(value) + length(field[++i])
  11987.       substed = 1
  11988.     } else
  11989.       len += 1 + keylen
  11990.   }
  11991.  
  11992.   print line
  11993. }
  11994.  
  11995. _ACAWK
  11996. _ACEOF
  11997. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11998. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  11999.   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  12000. else
  12001.   cat
  12002. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  12003.   || as_fn_error "could not setup config files machinery" "$LINENO" 5
  12004. _ACEOF
  12005.  
  12006. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  12007. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  12008. # trailing colons and then remove the whole line if VPATH becomes empty
  12009. # (actually we leave an empty line to preserve line numbers).
  12010. if test "x$srcdir" = x.; then
  12011.   ac_vpsub='/^[     ]*VPATH[     ]*=/{
  12012. s/:*\$(srcdir):*/:/
  12013. s/:*\${srcdir}:*/:/
  12014. s/:*@srcdir@:*/:/
  12015. s/^\([^=]*=[     ]*\):*/\1/
  12016. s/:*$//
  12017. s/^[^=]*=[     ]*$//
  12018. }'
  12019. fi
  12020.  
  12021. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12022. fi # test -n "$CONFIG_FILES"
  12023.  
  12024. # Set up the scripts for CONFIG_HEADERS section.
  12025. # No need to generate them if there are no CONFIG_HEADERS.
  12026. # This happens for instance with `./config.status Makefile'.
  12027. if test -n "$CONFIG_HEADERS"; then
  12028. cat >"$tmp/defines.awk" <<\_ACAWK ||
  12029. BEGIN {
  12030. _ACEOF
  12031.  
  12032. # Transform confdefs.h into an awk script `defines.awk', embedded as
  12033. # here-document in config.status, that substitutes the proper values into
  12034. # config.h.in to produce config.h.
  12035.  
  12036. # Create a delimiter string that does not exist in confdefs.h, to ease
  12037. # handling of long lines.
  12038. ac_delim='%!_!# '
  12039. for ac_last_try in false false :; do
  12040.   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  12041.   if test -z "$ac_t"; then
  12042.     break
  12043.   elif $ac_last_try; then
  12044.     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  12045.   else
  12046.     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12047.   fi
  12048. done
  12049.  
  12050. # For the awk script, D is an array of macro values keyed by name,
  12051. # likewise P contains macro parameters if any.  Preserve backslash
  12052. # newline sequences.
  12053.  
  12054. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  12055. sed -n '
  12056. s/.\{148\}/&'"$ac_delim"'/g
  12057. t rset
  12058. :rset
  12059. s/^[     ]*#[     ]*define[     ][     ]*/ /
  12060. t def
  12061. d
  12062. :def
  12063. s/\\$//
  12064. t bsnl
  12065. s/["\\]/\\&/g
  12066. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
  12067. D["\1"]=" \3"/p
  12068. s/^ \('"$ac_word_re"'\)[     ]*\(.*\)/D["\1"]=" \2"/p
  12069. d
  12070. :bsnl
  12071. s/["\\]/\\&/g
  12072. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
  12073. D["\1"]=" \3\\\\\\n"\\/p
  12074. t cont
  12075. s/^ \('"$ac_word_re"'\)[     ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  12076. t cont
  12077. d
  12078. :cont
  12079. n
  12080. s/.\{148\}/&'"$ac_delim"'/g
  12081. t clear
  12082. :clear
  12083. s/\\$//
  12084. t bsnlc
  12085. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  12086. d
  12087. :bsnlc
  12088. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  12089. b cont
  12090. ' <confdefs.h | sed '
  12091. s/'"$ac_delim"'/"\\\
  12092. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  12093.  
  12094. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12095.   for (key in D) D_is_set[key] = 1
  12096.   FS = ""
  12097. }
  12098. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  12099.   line = \$ 0
  12100.   split(line, arg, " ")
  12101.   if (arg[1] == "#") {
  12102.     defundef = arg[2]
  12103.     mac1 = arg[3]
  12104.   } else {
  12105.     defundef = substr(arg[1], 2)
  12106.     mac1 = arg[2]
  12107.   }
  12108.   split(mac1, mac2, "(") #)
  12109.   macro = mac2[1]
  12110.   prefix = substr(line, 1, index(line, defundef) - 1)
  12111.   if (D_is_set[macro]) {
  12112.     # Preserve the white space surrounding the "#".
  12113.     print prefix "define", macro P[macro] D[macro]
  12114.     next
  12115.   } else {
  12116.     # Replace #undef with comments.  This is necessary, for example,
  12117.     # in the case of _POSIX_SOURCE, which is predefined and required
  12118.     # on some systems where configure will not decide to define it.
  12119.     if (defundef == "undef") {
  12120.       print "/*", prefix defundef, macro, "*/"
  12121.       next
  12122.     }
  12123.   }
  12124. }
  12125. { print }
  12126. _ACAWK
  12127. _ACEOF
  12128. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12129.   as_fn_error "could not setup config headers machinery" "$LINENO" 5
  12130. fi # test -n "$CONFIG_HEADERS"
  12131.  
  12132.  
  12133. eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
  12134. shift
  12135. for ac_tag
  12136. do
  12137.   case $ac_tag in
  12138.   :[FHLC]) ac_mode=$ac_tag; continue;;
  12139.   esac
  12140.   case $ac_mode$ac_tag in
  12141.   :[FHL]*:*);;
  12142.   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  12143.   :[FH]-) ac_tag=-:-;;
  12144.   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  12145.   esac
  12146.   ac_save_IFS=$IFS
  12147.   IFS=:
  12148.   set x $ac_tag
  12149.   IFS=$ac_save_IFS
  12150.   shift
  12151.   ac_file=$1
  12152.   shift
  12153.  
  12154.   case $ac_mode in
  12155.   :L) ac_source=$1;;
  12156.   :[FH])
  12157.     ac_file_inputs=
  12158.     for ac_f
  12159.     do
  12160.       case $ac_f in
  12161.       -) ac_f="$tmp/stdin";;
  12162.       *) # Look for the file first in the build tree, then in the source tree
  12163.      # (if the path is not absolute).  The absolute path cannot be DOS-style,
  12164.      # because $ac_f cannot contain `:'.
  12165.      test -f "$ac_f" ||
  12166.        case $ac_f in
  12167.        [\\/$]*) false;;
  12168.        *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  12169.        esac ||
  12170.        as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  12171.       esac
  12172.       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  12173.       as_fn_append ac_file_inputs " '$ac_f'"
  12174.     done
  12175.  
  12176.     # Let's still pretend it is `configure' which instantiates (i.e., don't
  12177.     # use $as_me), people would be surprised to read:
  12178.     #    /* config.h.  Generated by config.status.  */
  12179.     configure_input='Generated from '`
  12180.       $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  12181.     `' by configure.'
  12182.     if test x"$ac_file" != x-; then
  12183.       configure_input="$ac_file.  $configure_input"
  12184.       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  12185. $as_echo "$as_me: creating $ac_file" >&6;}
  12186.     fi
  12187.     # Neutralize special characters interpreted by sed in replacement strings.
  12188.     case $configure_input in #(
  12189.     *\&* | *\|* | *\\* )
  12190.        ac_sed_conf_input=`$as_echo "$configure_input" |
  12191.        sed 's/[\\\\&|]/\\\\&/g'`;; #(
  12192.     *) ac_sed_conf_input=$configure_input;;
  12193.     esac
  12194.  
  12195.     case $ac_tag in
  12196.     *:-:* | *:-) cat >"$tmp/stdin" \
  12197.       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  12198.     esac
  12199.     ;;
  12200.   esac
  12201.  
  12202.   ac_dir=`$as_dirname -- "$ac_file" ||
  12203. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12204.      X"$ac_file" : 'X\(//\)[^/]' \| \
  12205.      X"$ac_file" : 'X\(//\)$' \| \
  12206.      X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  12207. $as_echo X"$ac_file" |
  12208.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12209.         s//\1/
  12210.         q
  12211.       }
  12212.       /^X\(\/\/\)[^/].*/{
  12213.         s//\1/
  12214.         q
  12215.       }
  12216.       /^X\(\/\/\)$/{
  12217.         s//\1/
  12218.         q
  12219.       }
  12220.       /^X\(\/\).*/{
  12221.         s//\1/
  12222.         q
  12223.       }
  12224.       s/.*/./; q'`
  12225.   as_dir="$ac_dir"; as_fn_mkdir_p
  12226.   ac_builddir=.
  12227.  
  12228. case "$ac_dir" in
  12229. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12230. *)
  12231.   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  12232.   # A ".." for each directory in $ac_dir_suffix.
  12233.   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  12234.   case $ac_top_builddir_sub in
  12235.   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12236.   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  12237.   esac ;;
  12238. esac
  12239. ac_abs_top_builddir=$ac_pwd
  12240. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  12241. # for backward compatibility:
  12242. ac_top_builddir=$ac_top_build_prefix
  12243.  
  12244. case $srcdir in
  12245.   .)  # We are building in place.
  12246.     ac_srcdir=.
  12247.     ac_top_srcdir=$ac_top_builddir_sub
  12248.     ac_abs_top_srcdir=$ac_pwd ;;
  12249.   [\\/]* | ?:[\\/]* )  # Absolute name.
  12250.     ac_srcdir=$srcdir$ac_dir_suffix;
  12251.     ac_top_srcdir=$srcdir
  12252.     ac_abs_top_srcdir=$srcdir ;;
  12253.   *) # Relative name.
  12254.     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  12255.     ac_top_srcdir=$ac_top_build_prefix$srcdir
  12256.     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  12257. esac
  12258. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  12259.  
  12260.  
  12261.   case $ac_mode in
  12262.   :F)
  12263.   #
  12264.   # CONFIG_FILE
  12265.   #
  12266.  
  12267.   case $INSTALL in
  12268.   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  12269.   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  12270.   esac
  12271. _ACEOF
  12272.  
  12273. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12274. # If the template does not know about datarootdir, expand it.
  12275. # FIXME: This hack should be removed a few years after 2.60.
  12276. ac_datarootdir_hack=; ac_datarootdir_seen=
  12277. ac_sed_dataroot='
  12278. /datarootdir/ {
  12279.   p
  12280.   q
  12281. }
  12282. /@datadir@/p
  12283. /@docdir@/p
  12284. /@infodir@/p
  12285. /@localedir@/p
  12286. /@mandir@/p'
  12287. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  12288. *datarootdir*) ac_datarootdir_seen=yes;;
  12289. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  12290.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  12291. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  12292. _ACEOF
  12293. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12294.   ac_datarootdir_hack='
  12295.   s&@datadir@&$datadir&g
  12296.   s&@docdir@&$docdir&g
  12297.   s&@infodir@&$infodir&g
  12298.   s&@localedir@&$localedir&g
  12299.   s&@mandir@&$mandir&g
  12300.   s&\\\${datarootdir}&$datarootdir&g' ;;
  12301. esac
  12302. _ACEOF
  12303.  
  12304. # Neutralize VPATH when `$srcdir' = `.'.
  12305. # Shell code in configure.ac might set extrasub.
  12306. # FIXME: do we really want to maintain this feature?
  12307. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12308. ac_sed_extra="$ac_vpsub
  12309. $extrasub
  12310. _ACEOF
  12311. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12312. :t
  12313. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12314. s|@configure_input@|$ac_sed_conf_input|;t t
  12315. s&@top_builddir@&$ac_top_builddir_sub&;t t
  12316. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  12317. s&@srcdir@&$ac_srcdir&;t t
  12318. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  12319. s&@top_srcdir@&$ac_top_srcdir&;t t
  12320. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  12321. s&@builddir@&$ac_builddir&;t t
  12322. s&@abs_builddir@&$ac_abs_builddir&;t t
  12323. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  12324. s&@INSTALL@&$ac_INSTALL&;t t
  12325. $ac_datarootdir_hack
  12326. "
  12327. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  12328.   || as_fn_error "could not create $ac_file" "$LINENO" 5
  12329.  
  12330. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  12331.   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  12332.   { ac_out=`sed -n '/^[     ]*datarootdir[     ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  12333.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12334. which seems to be undefined.  Please make sure it is defined." >&5
  12335. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12336. which seems to be undefined.  Please make sure it is defined." >&2;}
  12337.  
  12338.   rm -f "$tmp/stdin"
  12339.   case $ac_file in
  12340.   -) cat "$tmp/out" && rm -f "$tmp/out";;
  12341.   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  12342.   esac \
  12343.   || as_fn_error "could not create $ac_file" "$LINENO" 5
  12344.  ;;
  12345.   :H)
  12346.   #
  12347.   # CONFIG_HEADER
  12348.   #
  12349.   if test x"$ac_file" != x-; then
  12350.     {
  12351.       $as_echo "/* $configure_input  */" \
  12352.       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  12353.     } >"$tmp/config.h" \
  12354.       || as_fn_error "could not create $ac_file" "$LINENO" 5
  12355.     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  12356.       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  12357. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  12358.     else
  12359.       rm -f "$ac_file"
  12360.       mv "$tmp/config.h" "$ac_file" \
  12361.     || as_fn_error "could not create $ac_file" "$LINENO" 5
  12362.     fi
  12363.   else
  12364.     $as_echo "/* $configure_input  */" \
  12365.       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  12366.       || as_fn_error "could not create -" "$LINENO" 5
  12367.   fi
  12368.  ;;
  12369.   
  12370.   
  12371.   esac
  12372.  
  12373. done # for ac_tag
  12374.  
  12375.  
  12376. as_fn_exit 0
  12377. _ACEOF
  12378. ac_clean_files=$ac_clean_files_save
  12379.  
  12380. test $ac_write_fail = 0 ||
  12381.   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  12382.  
  12383.  
  12384. # configure is writing to config.log, and then calls config.status.
  12385. # config.status does its own redirection, appending to config.log.
  12386. # Unfortunately, on DOS this fails, as config.log is still kept open
  12387. # by configure, so config.status won't be able to write to it; its
  12388. # output is simply discarded.  So we exec the FD to /dev/null,
  12389. # effectively closing config.log, so it can be properly (re)opened and
  12390. # appended to by config.status.  When coming back to configure, we
  12391. # need to make the FD available again.
  12392. if test "$no_create" != yes; then
  12393.   ac_cs_success=:
  12394.   ac_config_status_args=
  12395.   test "$silent" = yes &&
  12396.     ac_config_status_args="$ac_config_status_args --quiet"
  12397.   exec 5>/dev/null
  12398.   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12399.   exec 5>>config.log
  12400.   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12401.   # would make configure fail if this is the last instruction.
  12402.   $ac_cs_success || as_fn_exit $?
  12403. fi
  12404. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  12405.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  12406. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  12407. fi
  12408.  
  12409.  
  12410. chmod +x $BUILD_ABSOLUTE_TOP/src/apps/admin/pvfs2-config
  12411.  
  12412. # print a summary of the configuration information
  12413. if test "x$BUILD_BMI_ONLY" = "x1" ; then
  12414.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
  12415. $as_echo "" >&6; }
  12416.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ***** Displaying BMI configuration information *****" >&5
  12417. $as_echo "***** Displaying BMI configuration information *****" >&6; }
  12418.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ----------------------------------------------------" >&5
  12419. $as_echo "----------------------------------------------------" >&6; }
  12420.     PKGSTR="BMI"
  12421. else
  12422.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
  12423. $as_echo "" >&6; }
  12424.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ***** Displaying PVFS Configuration Information *****" >&5
  12425. $as_echo "***** Displaying PVFS Configuration Information *****" >&6; }
  12426.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ------------------------------------------------------" >&5
  12427. $as_echo "------------------------------------------------------" >&6; }
  12428.     PKGSTR="PVFS2"
  12429. fi
  12430.  
  12431. # print PVFS configs (not used by BMI)
  12432. if test "x$BUILD_BMI_ONLY" != "x1" ; then
  12433.  
  12434. if test "x$BUILD_KARMA" = "x1" ; then
  12435.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: PVFS2 configured to build karma gui               : yes" >&5
  12436. $as_echo "PVFS2 configured to build karma gui               : yes" >&6; }
  12437. else
  12438.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: PVFS2 configured to build karma gui               :  no" >&5
  12439. $as_echo "PVFS2 configured to build karma gui               :  no" >&6; }
  12440. fi
  12441.  
  12442. if test "x$ENABLE_COVERAGE" = "x1" -a "x$BUILD_BMI_ONLY" != "x1"; then
  12443.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: PVFS2 configured to perform coverage analysis     : yes" >&5
  12444. $as_echo "PVFS2 configured to perform coverage analysis     : yes" >&6; }
  12445. else
  12446.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: PVFS2 configured to perform coverage analysis     :  no" >&5
  12447. $as_echo "PVFS2 configured to perform coverage analysis     :  no" >&6; }
  12448. fi
  12449.  
  12450. if test "x$MISC_TROVE_FLAGS" = "x" -a "x$BUILD_BMI_ONLY" != "x1"; then
  12451.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: PVFS2 configured for aio threaded callbacks       :  no" >&5
  12452. $as_echo "PVFS2 configured for aio threaded callbacks       :  no" >&6; }
  12453. else
  12454.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: PVFS2 configured for aio threaded callbacks       : yes" >&5
  12455. $as_echo "PVFS2 configured for aio threaded callbacks       : yes" >&6; }
  12456. fi
  12457.  
  12458. if test "x$BUILD_FUSE" = "x1" -a "x$BUILD_BMI_ONLY" != "x1"; then
  12459.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: PVFS2 configured to use FUSE                      : yes" >&5
  12460. $as_echo "PVFS2 configured to use FUSE                      : yes" >&6; }
  12461. else
  12462.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: PVFS2 configured to use FUSE                      :  no" >&5
  12463. $as_echo "PVFS2 configured to use FUSE                      :  no" >&6; }
  12464. fi
  12465.  
  12466. if test "x$LINUX_KERNEL_SRC" = "x" -a "x$BUILD_BMI_ONLY" != "x1"; then
  12467.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: PVFS2 configured for the 2.6.x kernel module      :  no" >&5
  12468. $as_echo "PVFS2 configured for the 2.6.x kernel module      :  no" >&6; }
  12469. else
  12470.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: PVFS2 configured for the 2.6.x kernel module      : yes" >&5
  12471. $as_echo "PVFS2 configured for the 2.6.x kernel module      : yes" >&6; }
  12472. fi
  12473.  
  12474. if test "x$LINUX24_KERNEL_SRC" = "x" -a "x$BUILD_BMI_ONLY" != "x1"; then
  12475.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: PVFS2 configured for the 2.4.x kernel module      :  no" >&5
  12476. $as_echo "PVFS2 configured for the 2.4.x kernel module      :  no" >&6; }
  12477. else
  12478.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: PVFS2 configured for the 2.4.x kernel module      : yes" >&5
  12479. $as_echo "PVFS2 configured for the 2.4.x kernel module      : yes" >&6; }
  12480. fi
  12481.  
  12482. if test "x$MMAP_RA_CACHE" = "x" -a "x$BUILD_BMI_ONLY" != "x1"; then
  12483.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: PVFS2 configured for using the mmap-ra-cache      :  no" >&5
  12484. $as_echo "PVFS2 configured for using the mmap-ra-cache      :  no" >&6; }
  12485. else
  12486.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: PVFS2 configured for using the mmap-ra-cache      : yes" >&5
  12487. $as_echo "PVFS2 configured for using the mmap-ra-cache      : yes" >&6; }
  12488. fi
  12489.  
  12490. if test "x$REDHAT_RELEASE" = "x" -a "x$BUILD_BMI_ONLY" != "x1"; then
  12491.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: PVFS2 will use workaround for redhat 2.4 kernels  :  no" >&5
  12492. $as_echo "PVFS2 will use workaround for redhat 2.4 kernels  :  no" >&6; }
  12493. else
  12494.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: PVFS2 will use workaround for redhat 2.4 kernels  : yes" >&5
  12495. $as_echo "PVFS2 will use workaround for redhat 2.4 kernels  : yes" >&6; }
  12496. fi
  12497.  
  12498. if test "x$NPTL_WORKAROUND" = "x" -a "x$BUILD_BMI_ONLY" != "x1"; then
  12499.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: PVFS2 will use workaround for buggy NPTL          :  no" >&5
  12500. $as_echo "PVFS2 will use workaround for buggy NPTL          :  no" >&6; }
  12501. else
  12502.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: PVFS2 will use workaround for buggy NPTL          : yes" >&5
  12503. $as_echo "PVFS2 will use workaround for buggy NPTL          : yes" >&6; }
  12504. fi
  12505.  
  12506. if test "x$BUILD_SERVER" = "x1" -a "x$BUILD_BMI_ONLY" != "x1"; then
  12507.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: PVFS2 server will be built                        : yes" >&5
  12508. $as_echo "PVFS2 server will be built                        : yes" >&6; }
  12509. else
  12510.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: PVFS2 server will be built                        :  no" >&5
  12511. $as_echo "PVFS2 server will be built                        :  no" >&6; }
  12512.  
  12513. fi
  12514.  
  12515. else
  12516.  
  12517. # print BMI and PVFS configs
  12518. if test "x$THREAD_LIB" = "x"; then
  12519.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGSTR configured for a thread-safe client library :  no" >&5
  12520. $as_echo "$PKGSTR configured for a thread-safe client library :  no" >&6; }
  12521. else
  12522.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGSTR configured for a thread-safe client library : yes" >&5
  12523. $as_echo "$PKGSTR configured for a thread-safe client library : yes" >&6; }
  12524. fi
  12525.  
  12526. if test "x$BUILD_EPOLL" = "x1" ; then
  12527.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGSTR configured to use epoll                     : yes" >&5
  12528. $as_echo "$PKGSTR configured to use epoll                     : yes" >&6; }
  12529. else
  12530.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGSTR configured to use epoll                     :  no" >&5
  12531. $as_echo "$PKGSTR configured to use epoll                     :  no" >&6; }
  12532. fi
  12533.  
  12534. if test "x$TRUSTED_CONNECTIONS" = "x" ; then
  12535.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGSTR configured for using trusted connections    :  no" >&5
  12536. $as_echo "$PKGSTR configured for using trusted connections    :  no" >&6; }
  12537. else
  12538.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGSTR configured for using trusted connections    : yes" >&5
  12539. $as_echo "$PKGSTR configured for using trusted connections    : yes" >&6; }
  12540. fi
  12541.  
  12542. fi # end of BMI/PVFS config display
  12543.  
  12544. if test "x$WARN_ABOUT_HOSTNAMES" = "xyes" ; then
  12545.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: WARNING: gethostbyname is not supported on this machine: ALL ADDRESSES MUST BE IN DOT NOTATION." >&5
  12546. $as_echo "WARNING: gethostbyname is not supported on this machine: ALL ADDRESSES MUST BE IN DOT NOTATION." >&6; }
  12547. fi
  12548.  
  12549.  
  12550. if test x$BUILD_GM = x1 -o x$BUILD_MX = x1 -o x$BUILD_IB = x1 -o \
  12551.     x$BUILD_OPENIB = x1 -o x$BUILD_PORTALS = x1 -o x$BUILD_ZOID = x1 ; then
  12552.     if test x$BUILD_BMI_TCP = x1 ; then
  12553.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have selected to build $PKGSTR to use a \"fast\" network
  12554.             interface, but have not disabled TCP.  The way this is
  12555.             currently implemented will lead to rather slow response
  12556.             times on the fast interface.  Suggest you configure with
  12557.             \"--without-bmi-tcp\" for the best performance." >&5
  12558. $as_echo "$as_me: WARNING: You have selected to build $PKGSTR to use a \"fast\" network
  12559.             interface, but have not disabled TCP.  The way this is
  12560.             currently implemented will lead to rather slow response
  12561.             times on the fast interface.  Suggest you configure with
  12562.             \"--without-bmi-tcp\" for the best performance." >&2;}
  12563.     fi
  12564. fi
  12565.  
  12566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
  12567. $as_echo "" >&6; }
  12568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGSTR version string: $PVFS2_VERSION" >&5
  12569. $as_echo "$PKGSTR version string: $PVFS2_VERSION" >&6; }
  12570.  
  12571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
  12572. $as_echo "" >&6; }
  12573.